Mercurial > projects > mde
diff mde/gui/widget/layout.d @ 115:1b1e2297e2fc
Enums handled more generically now via either a popup list or flat list of BoolContentWidgets.
EnumContent is an IContentList with BoolContent sub-contents.
Content modules moved around (again).
ContentListWidget can now list horizontally.
Log-level setting callback.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 20 Dec 2008 17:57:05 +0000 |
parents | b16a534f5302 |
children | 9ac208b53582 |
line wrap: on
line diff
--- a/mde/gui/widget/layout.d Fri Dec 19 15:15:06 2008 +0000 +++ b/mde/gui/widget/layout.d Sat Dec 20 17:57:05 2008 +0000 @@ -19,7 +19,7 @@ import mde.gui.widget.Widget; import mde.gui.exception; -import mde.content.Content; +import mde.content.miscContent; import tango.util.container.HashMap; @@ -99,7 +99,7 @@ class ContentListWidget : GridWidget { this (IWidgetManager mgr, widgetID id, WidgetData data, IContent content) { - cList = cast(ContentList) content; + cList = cast(IContentList) content; WDCCheck (data, 2, 1, cList); cols = 1; @@ -112,6 +112,10 @@ rows = 1; subWidgets = [mgr.makeWidget (data.strings[0], new ErrorContent ("<empty list>"))]; } + if (data.ints[1] & 8) { // orient horizontally + cols = rows; + rows = 1; + } super (mgr, id, data); } @@ -123,7 +127,7 @@ } private: - ContentList cList; + IContentList cList; }