Mercurial > projects > mde
diff mde/gui/WidgetDataSet.d @ 144:66c58e5b0062
Added a BoolContent-based collapsible widget.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 10 Feb 2009 12:57:09 +0000 |
parents | 9f035cd139c6 |
children | 1048b5c7cab1 |
line wrap: on
line diff
--- a/mde/gui/WidgetDataSet.d Mon Feb 09 23:27:41 2009 +0000 +++ b/mde/gui/WidgetDataSet.d Tue Feb 10 12:57:09 2009 +0000 @@ -54,8 +54,9 @@ widgetData[id] = deserialize!(WidgetData) (dt); } else if (tp == "WDims" && (id in dimData) is null) { dimData[id] = cast(wdims) deserialize!(int[]) (dt); + } else if (tp == "BoolContent" && (id in Content.allContent) is null) { + new BoolContent (id); } else if (tp == "EnumContent" && (id in Content.allContent) is null) { - // Add dynamic content. new EnumContent (id, deserialize!(char[][]) (dt)); } }