comparison mde/gui/widget/Popup.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
comparison
equal deleted inserted replaced
111:1655693702fc 112:fe061009029d
15 15
16 /// Pop-up widgets. 16 /// Pop-up widgets.
17 module mde.gui.widget.Popup; 17 module mde.gui.widget.Popup;
18 18
19 import mde.gui.widget.Widget; 19 import mde.gui.widget.Widget;
20 import mde.content.Content; 20 import mde.content.IContent;
21 21
22 /** Shows a "pop-up" widget tree when clicked. */ 22 /** Shows a "pop-up" widget tree when clicked. */
23 class PopupButtonWidget : AButtonWidget 23 class PopupButtonWidget : AButtonWidget
24 { 24 {
25 this (IWidgetManager mgr, widgetID id, WidgetData data, IContent content) { 25 this (IWidgetManager mgr, widgetID id, WidgetData data, IContent content) {