Am 22.08.2008 um 20:03 schrieb Chris Banford:
Assuming I can get this layout to a usable stage, what are the
requirements for such a beast?
This is what I can think of off-hand:
The layout should respect any padding added to the elements it
manages.
That's automatically done for you. This is part of each widget :)
What you need to support for a full-supported layout is margins and
alignments (all of them are implemented through LayoutItem) and should
be respected by every layout.
In a flow layout only alignY makes sense as the x-position is given
through the flow. AlignY can move the widget in the area for this
widget from top to bottom or in the middle etc. But I do not think
that this is too important in a Flow Layout.
More interesting is the support for margins. There are a few helper
methods for computing the sum of all gaps etc. in qx.ui.layout.Util,
but I do not now how valid they are because of the floating to the
next row.
A spacing property on the layout, not on the widgets, would also be a
good idea. Often it's useful to have the same distance from each other
applied to all widgets. This could be implemented as two properties:
spacingX and spacingY. You can see it done this way in the "Dock"
layout.
Each wrap of elements should to a new 'row' should clear all
elements above it (see how button #6 drops under button #3 in the
attached screen shot).
Left, Right & Center alignment of the flow.
Do you mean alignX for the whole flow layout? This maybe an option.
The HBox allows the same.
Sebastian
Anything else obvious that I'm missing?
Cheers,
-Chris
<Flow layout
2
.jpg
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel