Mercurial > projects > mde
diff mde/gui/widget/TextWidget.d @ 112:fe061009029d
EnumContent; log level can be selected from a popup list.
New EnumContent, with code to load translations in Items. Editable as an AStringContent.
Hacked OptionsMisc to use an EnumContent.
Implemented a EnumContentWidget providing a pop-up list to select from (still needs improving).
Moved IContent to its own module.
ContentExceptions thrown via WDCCheck now.
Fixed a small bug with reloading translations.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 12:54:43 +0000 |
parents | 1655693702fc |
children | b16a534f5302 |
line wrap: on
line diff
--- a/mde/gui/widget/TextWidget.d Sat Dec 06 17:41:42 2008 +0000 +++ b/mde/gui/widget/TextWidget.d Sat Dec 13 12:54:43 2008 +0000 @@ -85,9 +85,8 @@ class ContentLabelWidget : ATextWidget { this (IWidgetManager mgr, widgetID id, WidgetData data, IContent c) { - WDCheck (data, 3, 0); - content = c; - if (!content) throw new ContentException (); + content = c; + WDCCheck (data, 3, 0, content); index = data.ints[1]; adapter = mgr.renderer.getAdapter (data.ints[2]); super (mgr, id,data);