[Y-devel] GUI design docs

Brent Gulanowski brentg at magma.ca
Wed Feb 25 21:17:28 GMT 2004


On Feb 25, 2004, at 2:52 PM, Jay Sprenkle wrote:

>
> --- Brent Gulanowski <brentg at magma.ca> wrote:
>>
>>
>>> * Allow controls to be 'pinned' to one or more
>>> edges of the container they are within. This
>>> makes a control into a 'docking tool bar'. Allow
>>> a distance from each edge to be specified so
>>> they can float near the edge.
>>
>> should feature something that Adobe has added to
>> their apps: user
>> draggable palettes or what might be called floating
>> tab views.
>
> When I do 3d modeling work I have two monitors.
> I put the view of the object being edited on one
> monitor and the dialog box that allows me to select
> editing options in the other. This helps a LOT
> since I can get the object I'm drawing zoomed enough
> I can actually see details. If the GUI limited the
> child dialog boxes to being within the bounds of
> the parent I couldn't do this.

Well when you speak of dialog boxes, these are siblings (all children 
of screen window), so they do not constrain one another in any case. 
But the tool palettes in Adobe Photoshop create and destroy parent 
windows as necessary (or have parent windows created for them) so that 
they can be separated from one another or combined together.
>
> So, I think we can also allow negative values
> for the position of the child in relation
> to the edge of the parent. If you resize a window
> your palette (or whatever) could optionally move too.

Well, if the solution is that general purpose, it could lead to some 
problems with controls all over the place. I was thinking something 
more limited in terms of a dedicated window pane class. You could 
arbitrarily put panes together and they would merge into one window, 
and they could be either side-by-side, or layered on top of one another 
with tabs to switch between them.

It would need some careful thought to do it so that it was intuitive 
and useful. It may have limited value. The idea is just to give the 
user a bit more control of the layout of these palettes or panes or 
whatever they might be called. I'm not sure the best terminology.
>
>
>> according to the user's needs. Most users might not
>> want the U.I. to be
>> changeable (lest they change it by accident and not
>> know how to restore
>> it), but you could turn the feature on and off per
>> system and per
>> application (letting individual applications
>> over-ride it).
>
> Oh yes. I recall the "let users change the colors
> of UI elements" problem we saw once. A user set
> his background color to black and his text color
> to black. ;)
>
> We decided at the time "themes' were better than
> individual parameter controls. It enforced non
> conflicting choices but still allows customizability.
>

Yeah, that's always a danger. I suppose one could define pairs or 
larger groups of settings that would have to have distinct values, to 
prevent this kind of problem. Not everything should be completely 
orthogonal. Another example would be if you could toggle locations of 
scroll bar buttons independently and inadvertently turn them all off. 
Of course I've never seen anyone make that mistake in a GUI 
customization set up.
>
>>>
>> BTW, any thoughts on defining interface layout using
>> external
>> resources, as an alternate to programmatically? The
>> classic Mac OS used
>> resource files that were parsed by functions in
>> order to generate a
>> U.I. layout (so, you'd tell the window manager, with
>> a function, to
>> create a new window with resource ID such and such).
>> OS X actually
>> creates archives of U.I. objects (they call it
>> "freeze drying") which
>> are "woken up" when an owner object requests the
>> archive (a "nib" file)
>> be opened. It's really awesome. Interface Builder is
>> the tool for
>> constructing user interfaces and it saves these
>> nibs, allowing the
>> developer to specify "outlets" -- ivars which point
>> to other objects.
>> Because a nib is an object archive, it can even
>> contain instances of non-U.I. classes.
>
> If I followed what you said (I'm feeling a bit
> dull today) we need to have table driven layouts
> for forms/windows/control placement?

Not sure what you mean by "table driven" in this context. I just mean 
that it's nice to say "read this file of U.I. layout specs" instead of 
having to call a hundred functions to do the same thing. You can change 
the file without recompiling. An interactive layout tool is the 
ultimate.
>
> Now I'm thinking we should also have the ability
> to have the window manager save and restore window
> placement. One of the first things a lot of
> people do when writing a windows app is to put
> in code to restore the window position and size
> when the application is started.

Yeah, users like when programs remember the state of windows between 
runs.
>
>>>
>>> * We should add transparency as a property of
>>> controls/windows. For pretty desktops and shadows.
>>>
>>> * If we design it right we can take advantage of
>>> hardware acceleration and hardware video decoding.
>>> Push the implementation of the control rendering
>>> down to modular plugins, it can be done by talking
>>> to hardware and requesting it to do it, or good
>>> 'ole software rendering.
>>
>> You might have sets of U.I. candy that have minimal
>> system resource
>> requirements, and fallback to a default if the
>> requirements are not
>> met. Apple does this with features like the fast
>> user switching
>> rotating box animation. Basically they have the
>> Quartz Extreme version
>> of some things and the Quartz fallback version.
>
> I assume the "theme" would control how visual
> presentation is done. So we'd have on the fly
> theme changes/switches based on system resources?

I'm not sure. At this point, a document which specifies the behaviour 
of the U.I. and design of the U.I. engines would be nice. Someone might 
want to add that as a task. In fact, specifying the user interface 
behaviour and setting standards is a significant and important 
sub-project in itself.

--
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/c1f1e848/smime.bin


More information about the Y-devel mailing list









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