Mercurial > projects > mde
diff mde/gui/widget/Floating.d @ 91:4d5d53e4f881
Shared alignment for dynamic content lists - finally implemented! Lots of smaller changes too.
Some debugging improvements.
When multiple .mtt files are read for merging, files with invalid headers are ignored and no error is thrown so long as at least one file os valid.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 16 Oct 2008 17:43:48 +0100 |
parents | b525ff28774b |
children | 085f2ca31914 |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Wed Oct 01 23:37:51 2008 +0100 +++ b/mde/gui/widget/Floating.d Thu Oct 16 17:43:48 2008 +0100 @@ -55,7 +55,7 @@ */ class FloatingAreaWidget : SizableWidget { - this (IWidgetManager mgr, WidgetData data) { + this (IWidgetManager mgr, widgetID id, WidgetData data) { subWidgets.length = data.strings.length; foreach (i,s; data.strings) subWidgets[i] = mgr.makeWidget (s); @@ -63,7 +63,7 @@ if (data.ints.length != 1) { if (data.ints.length != 2*subWidgets.length + 1) { - throw new WidgetDataException; + throw new WidgetDataException (this); } foreach (i, ref c; sWCoords) { c.x = cast(wdim) data.ints[i + 1]; @@ -71,7 +71,7 @@ } } - super (mgr, data); + super (mgr, id, data); foreach (w; subWidgets) { //FIXME: set default size