[Y-devel] Will Y enforce uniformity? Or just allow it?
Mark Thomas mark at www.y-windows.org
Tue Mar 9 21:00:44 GMT 2004
On Tue, 9 Mar 2004, Kris Van Hees wrote:
> Uniformity is a two-edged weapon.
No it isn't.
> It is great to ensure that things work in a
> very consistent way, and it enables people to not worry about the details of
> whether something will have the same L&F as everything else. But it causes
> innovation to be more difficult. What if someone wants to write an application
> that is best served with a very much custom widget? Yes, it can use a canvas,
> but then it also needs to do some magic to e.g. accept mouse operations on the
> content of that canvas. Or you might be able to fake the complex widget by
> creating it as a collecton of various other widgets, combined in just the right
> way to get the same effect.
You can do it either of these ways. Either can be correct depending on
the circumstances. Y custom widgets are no harder to write than X toolkit
custom widgets (since the API provided to them will be very similar). In
fact, we can make it easier for custom widget writers by providing them
with functions they can use to make their custom widget fit in better;
things like "draw button-like rectangle" and "get the default label font".
Y custom widget developers can sleep soundly knowing that their custom
widget will fit into any user's customised interface.
> What about also providing an API for allowing client-side widgets, to be used
> in the more rare cases where that is needed? Does it need to be as efficient
> as the core widgets in the server? Of course not! You wouldn't want that
> anyway, because the goal of course is to avoid people writing entire widget
> toolkits on the client side. But some may be needed.
The idea is not to disallow people to write client-side widgets, but to
make them think carefully about doing it. Do you *really* need to write
your own whizzbangbutton when you can use:
Y::Button *button = new Y::Button ();
and that will be faster, and more consistent with the user's experience.
Programmers are generally lazy (it's a form of efficiency) so I think they
are likely to opt for the standard toolkit when it is obviously superior
to use it.
Of course, people can still be morons and implement their own whizzbangTk
using lots of Y canvases. I wouldn't be surprised if people laughed at
them and didn't use their application, though.
> This may also open the opportunity to build in some flexibility for version
> differences between clients and servers. I do not know how feasible it will
> be, but...
>
> <dream-style>
> If the client libraries could have two components for widgets (dynamically
> loadable of course, as needed): a client-side implementation, and the code
> to interface with the server-side widget. That way, if the client library
> is of a newer version than the server, it could switch to using the (less
> efficient) client-side implementation of the widget rather than using the
> accelerated server-side widget.
> </dream-style>
You could do that. It's not even hard.
> > And there are real problems too... I may have a personal usability guideline
> > where all buttons must be bigger than 30x30. Suppose the scroolbar widget
> > supplied by Y has smaller buttons. What can I do? write my own widget? But
> > then I rewrite all the widget, and it is as if I were using another toolkit.
> >
> > (Actually, I do have such a guideline: https://segusoland.sourceforge.net,
> > Human Interface Guidelines)
>
> Wouldn't that mainly be a theme issue. As long as there is a highly
> customizable theme available, that can be supported by a client application to
> 'load' your settings into the theme module, you ought to be set.
Yes. If no theme lets you specify that constraint, you can write one that
does. (Or pay someone to write it for you ;o).
Regards,
Mark.
--
|| Mark Thomas
|| efaref.net
||
|| Calm down! It's only zeros and ones.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved