Mercurial > projects > mde
comparison mde/gui/widget/createWidget.d @ 108:c9fc2d303178
Added capability for border-less pop-up widgets. Simple pop-up menu.
Removed grid-layout spacing (may allow any widget to provide spacing later).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 03 Dec 2008 19:37:32 +0000 |
parents | 08651e8a8c51 |
children | fe061009029d |
comparison
equal
deleted
inserted
replaced
107:20f7d813bb0f | 108:c9fc2d303178 |
---|---|
28 import mde.gui.widget.miscWidgets; | 28 import mde.gui.widget.miscWidgets; |
29 import mde.gui.widget.TextWidget; | 29 import mde.gui.widget.TextWidget; |
30 import mde.gui.widget.miscContent; | 30 import mde.gui.widget.miscContent; |
31 import mde.gui.widget.textContent; | 31 import mde.gui.widget.textContent; |
32 import mde.gui.widget.Floating; | 32 import mde.gui.widget.Floating; |
33 import mde.gui.widget.Popup; | |
33 import tango.util.log.Log : Log, Logger; | 34 import tango.util.log.Log : Log, Logger; |
34 | 35 |
35 private Logger logger; | 36 private Logger logger; |
36 static this () { | 37 static this () { |
37 logger = Log.getLogger ("mde.gui.widget.createWidget"); | 38 logger = Log.getLogger ("mde.gui.widget.createWidget"); |
95 SizableBlank = 0x2, | 96 SizableBlank = 0x2, |
96 Debug = 0xF, | 97 Debug = 0xF, |
97 | 98 |
98 // buttons: 0x10 | 99 // buttons: 0x10 |
99 Button = 0x10, | 100 Button = 0x10, |
101 PopupButton = TAKES_CONTENT | PARENT | 0x11, | |
100 | 102 |
101 // labels: 0x20 | 103 // labels: 0x20 |
102 ContentLabel = TAKES_CONTENT | 0x20, | 104 ContentLabel = TAKES_CONTENT | 0x20, |
103 TextLabel = 0x21, | 105 TextLabel = 0x21, |
104 | 106 |
133 "BoolContent", | 135 "BoolContent", |
134 "AStringContent", | 136 "AStringContent", |
135 "ButtonContent", | 137 "ButtonContent", |
136 "editContent", | 138 "editContent", |
137 "FloatingArea", | 139 "FloatingArea", |
140 "PopupButton", | |
138 "GridLayout", | 141 "GridLayout", |
139 "ContentList"]; | 142 "ContentList"]; |
140 | 143 |
141 /* Generates a binary search algorithm. */ | 144 /* Generates a binary search algorithm. */ |
142 char[] binarySearch (char[] var, char[][] consts) { | 145 char[] binarySearch (char[] var, char[][] consts) { |