Mercurial > projects > mde
diff mde/gui/widget/Floating.d @ 90:b525ff28774b
Widgets generated dynamically from a list can now be standard widgets selected from data files.
Started on allowing alignment to be shared between instances of a layout widget in a dynamic list (to allow column alignment of list's rows).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 01 Oct 2008 23:37:51 +0100 |
parents | ac1e3fd07275 |
children | 4d5d53e4f881 |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Mon Sep 29 18:27:17 2008 +0100 +++ b/mde/gui/widget/Floating.d Wed Oct 01 23:37:51 2008 +0100 @@ -53,12 +53,12 @@ * Ints supplied may consist of just the widget type or * additionally an (x,y) coordinate for each subwidget (all x coords first, then all y coords). */ -class FloatingAreaWidget : SizableWidget, IParentWidget +class FloatingAreaWidget : SizableWidget { this (IWidgetManager mgr, WidgetData data) { subWidgets.length = data.strings.length; foreach (i,s; data.strings) - subWidgets[i] = mgr.makeWidget (s, this); + subWidgets[i] = mgr.makeWidget (s); sWCoords.length = subWidgets.length; if (data.ints.length != 1) {