[Y-devel] Proposing an UI module

Peter Prohaska pitrp at wg78.de
Wed Feb 25 17:47:22 GMT 2004


On Wed, Feb 25, 2004 at 07:07:26PM +0200, Niko Iivari wrote:
> 
> On Wed, 25 Feb 2004 08:51:14 -0500
> drizzt321 at phpfreaks.com wrote:
> 
> > Hmm...this might go along with something like what I just sent to the
> > list. Basically I was wondering if we might put a layer between the
> > theme, and the painter which would accept the themes specifics, font,
> > fontsize, colors, etc. so the theme itself wouldn't have to worry
> > about how to draw them on the screen, merely ask the next layer to do
> > it with X, Y, Z specifics. Your idea goes right along with it(I
> > think). It would basically have the theme say I want toolbar, with
> > this style arrow, at these points. Am i getting this right?
> > 
> > Aaron
> 
> I think it should be the other way around. I have no problem with the
> theme talking to the painter, as long as the theme does not decide the
> exact position or order of the "little bits" (skimming through the
> thesis, it seems that these "little bits" should be called gadgets) like
> scrollbar trough and the little arrows.
> The ui module would be before the theme instead.
> 
> ui module --> theme module --> painter
> 
> I keep reading your comment and get the feeling we are talking of very
> similiar things.
> 
> theme module --> 'next layer' --> painter ?
> 
> I see the ui module being used for compound widgets which work as bigger
> building blocks for the GUI than individual widgets. So a simple 'button
> with label' widget in a grid layout could be passed straight to the
> theme, while a toolbar would go through the ui module. The ui module
> would create a sub grid layout and arrange all toolbar buttons based on
> that particular ui modules preferences. Of course an ui module that
> reads user preferences from a configuration file could be made.
> 
> So the ui module would handle and arrange _user configurable_
> "?berwidgets"  with their own 'sub grid layout' to hold their widgets
> and gadgets.

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.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved