Mercurial > projects > mde
comparison mde/gui/widget/createWidget.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 | c9fc2d303178 |
children | 9824bee909fd |
comparison
equal
deleted
inserted
replaced
111:1655693702fc | 112:fe061009029d |
---|---|
19 * tidier. */ | 19 * tidier. */ |
20 module mde.gui.widget.createWidget; | 20 module mde.gui.widget.createWidget; |
21 | 21 |
22 import mde.gui.widget.Ifaces; | 22 import mde.gui.widget.Ifaces; |
23 import mde.gui.exception : WidgetDataException; | 23 import mde.gui.exception : WidgetDataException; |
24 import mde.content.Content; | 24 import mde.content.IContent; |
25 | 25 |
26 // Widgets to create: | 26 // Widgets to create: |
27 import mde.gui.widget.layout; | 27 import mde.gui.widget.layout; |
28 import mde.gui.widget.miscWidgets; | 28 import mde.gui.widget.miscWidgets; |
29 import mde.gui.widget.TextWidget; | 29 import mde.gui.widget.TextWidget; |
111 // content widgets: 0x40 | 111 // content widgets: 0x40 |
112 DisplayContent = TAKES_CONTENT | 0x40, | 112 DisplayContent = TAKES_CONTENT | 0x40, |
113 BoolContent = TAKES_CONTENT | 0x41, | 113 BoolContent = TAKES_CONTENT | 0x41, |
114 AStringContent = TAKES_CONTENT | 0x42, | 114 AStringContent = TAKES_CONTENT | 0x42, |
115 ButtonContent = TAKES_CONTENT | 0x43, | 115 ButtonContent = TAKES_CONTENT | 0x43, |
116 EnumContent = TAKES_CONTENT | 0x44, | |
116 | 117 |
117 GridLayout = TAKES_CONTENT | PARENT | 0x100, | 118 GridLayout = TAKES_CONTENT | PARENT | 0x100, |
118 ContentList = TAKES_CONTENT | PARENT | 0x110, | 119 ContentList = TAKES_CONTENT | PARENT | 0x110, |
119 | 120 |
120 FloatingArea = PARENT | 0x200, | 121 FloatingArea = PARENT | 0x200, |
133 "ContentLabel", | 134 "ContentLabel", |
134 "DisplayContent", | 135 "DisplayContent", |
135 "BoolContent", | 136 "BoolContent", |
136 "AStringContent", | 137 "AStringContent", |
137 "ButtonContent", | 138 "ButtonContent", |
139 "EnumContent", | |
138 "editContent", | 140 "editContent", |
139 "FloatingArea", | 141 "FloatingArea", |
140 "PopupButton", | 142 "PopupButton", |
141 "GridLayout", | 143 "GridLayout", |
142 "ContentList"]; | 144 "ContentList"]; |