comparison mde/gui/widget/Floating.d @ 95:2a364c7d82c9

Boolean options can be adjusted from the gui now (using a very basic widget). Also some bug-fixes. Fixed a minor bug where layouts with the same id but without shared alignments would be messed up. Tracked down the "nothing trawn until a resize" bug (see jobs.txt). If widgets throw during creation they're now replaced by debug widgets. Function pointers are converted to delegates using a safer method.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 06 Nov 2008 11:07:18 +0000
parents 085f2ca31914
children dbf332403c6e
comparison
equal deleted inserted replaced
94:9520cc0448e5 95:2a364c7d82c9
51 * 51 *
52 * Data: Each string item is interpreted as a subwidget widgetID. 52 * Data: Each string item is interpreted as a subwidget widgetID.
53 * Ints supplied may consist of just the widget type or 53 * Ints supplied may consist of just the widget type or
54 * additionally an (x,y) coordinate for each subwidget (all x coords first, then all y coords). 54 * additionally an (x,y) coordinate for each subwidget (all x coords first, then all y coords).
55 */ 55 */
56 class FloatingAreaWidget : ParentWidget 56 class FloatingAreaWidget : AParentWidget
57 { 57 {
58 this (IWidgetManager mgr, widgetID id, WidgetData data) { 58 this (IWidgetManager mgr, widgetID id, WidgetData data) {
59 subWidgets.length = data.strings.length; 59 subWidgets.length = data.strings.length;
60 foreach (i,s; data.strings) 60 foreach (i,s; data.strings)
61 subWidgets[i] = mgr.makeWidget (s); 61 subWidgets[i] = mgr.makeWidget (s);