[Y-devel] Proposing an UI module
Brent Gulanowski brentg at magma.ca
Wed Feb 25 21:49:52 GMT 2004
On Feb 25, 2004, at 3:04 PM, Niko Iivari wrote:
> On Wed, 25 Feb 2004 18:47:22 +0100
> pitrp at wg78.de (Peter Prohaska) wrote:
>
>> That idea of a module stack sounds great. Some cracy idea just popped
>> into my mind. Imagine a "uberwidget" module that adds a "enable edit
>> module" button to the titlebar of a window. If you press it, you can
>> popup a representation of the wigdet tree and allow adjusting of
>> configuration parameters. If you are finished, you can save a diff
>> containing the users preferences. Think of it a "glade" in a module
>> for editing a running apps gui.
>>
>> peter.
>>
>
> Umm, I wasn't exactly thinking about users saving diffs of user
> interfaces... ;-)
So there is a question of what can be extracted as system data or user
data, and what has to be in code. Widgets have to be coded, but are you
changing widgets or just the way they appear?
>
> To sum it up, I guess I was just thinking about server side user
> interface components. It would kind of be the next step from server
> side
> widgets. In fact it could have led to server side desktop
> environments...
How does a "user interface component" differ from a widget?
>
> But perhaps in real life user interface components (aka überwidgets)
> belong in client side libraries after all. Besides, having them client
> side means we can have lots of competing desktop environments (yay!).
> They'll just all be using the same widgets.
>
> Seriously, I still think the theme should only be drawing gadgets, and
> there should be a layer above that witch combines the gadgets into
> widgets. Changing the theme should not affect the UI.
I'm not sure that Mark's term "gadget" is really that helpful in
distinguishing between elements of the user interface. Maybe I don't
quite get it. In Mac OS, every control is a view and draws itself (I'm
oversimplifying). A button may have many possible appearances, and may
or may not have a text label. It's still a button, and the appearance
is just some bitmap data. A window close button is still a button,
i.e.: a control (aka widget in X11). What's analogous to a gadget here?
A distinct contrast in Mac OS X vs X11 is the "window" in OS X, a
window is not a control, nor is a control a window. Windows cannot draw
anything inside themselves -- they have to appoint a content view
object to do that. Every control is a subclass of the "abstract" view
class. In X11, every widget is a window -- even the screen is a window.
The class hierarchies have some important differences.
For Y, it looks like it's sort of following X11, in that windows are
subclasses of widgets. However windows are special cases for some
reason that I don't understand -- what is the benefit of a distinct
window-level layout widget? Why shouldn't all widgets have integrated
layout capabilities?
--
Brent Gulanowski brentg at magma.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2359 bytes
Desc: not available
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040225/ed5500cc/smime.bin
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved