Mercurial > projects > mde
diff mde/gui/widget/createWidget.d @ 77:3dfd934100f7
Continuing widget data changes started in last commit: all previous widgets work again now (but lacking saving).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 29 Jul 2008 17:11:22 +0100 |
parents | 25cb7420dc91 |
children | ea58f277f487 |
line wrap: on
line diff
--- a/mde/gui/widget/createWidget.d Mon Jul 28 18:49:18 2008 +0100 +++ b/mde/gui/widget/createWidget.d Tue Jul 29 17:11:22 2008 +0100 @@ -20,9 +20,9 @@ import mde.gui.exception : WidgetDataException; // Widgets to create: -//import mde.gui.widget.layout; +import mde.gui.widget.layout; import mde.gui.widget.miscWidgets; -//import mde.gui.widget.TextWidget; +import mde.gui.widget.TextWidget; /** Create a widget of type data[0] (see enum WIDGET_TYPES) under manager mgr, with initialisation * data [1..$]. */ @@ -56,6 +56,7 @@ LAYOUT = 0x8000, // is a layout widget (i.e. has sub-widgets)? // Use widget names rather than usual capitals convention + Unnamed = 0x0, // Only for use by widgets not created with createWidget // blank: 0x1 FixedBlank = 0x1, @@ -77,12 +78,12 @@ // Only used for binarySearch algorithm generation; must be ordered by numerical values. const char[][] WIDGETS = [ "FixedBlank", - //"Text", - //"Int", + "Text", + "Int", "SizableBlank", "Button", - //"GridLayout", - /+"TrialContentLayout"+/]; + "GridLayout", + "TrialContentLayout"]; /* Generates a binary search algorithm. */ char[] binarySearch (char[] var, char[][] consts) {