diff mde/gui/widget/createWidget.d @ 117:aba2dd815a1f

Some tweaks to popup events and widgets. Moved gui.mtt to guiDemo.mtt Changed handling of clicks with popups. Made some of the popup widgets use usual from widget data construction.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 26 Dec 2008 12:07:38 +0000
parents 5ee69b3ed9c9
children d28aea50c6da
line wrap: on
line diff
--- a/mde/gui/widget/createWidget.d	Sun Dec 21 12:03:50 2008 +0000
+++ b/mde/gui/widget/createWidget.d	Fri Dec 26 12:07:38 2008 +0000
@@ -105,8 +105,9 @@
     SizableBlank	= 0x2,
     Debug		= 0xF,
     
-    // buttons: 0x10
+    // popup widgets: 0x10
     PopupMenu		= TAKES_CONTENT | 0x11,
+    SubMenu		= TAKES_CONTENT | 0x12,
     
     // labels: 0x20
     ContentLabel	= TAKES_CONTENT | 0x20,
@@ -115,12 +116,15 @@
     // content functions: 0x30
     editContent		= FUNCTION | TAKES_CONTENT | SAFE_RECURSION | 0x30,
     addContent		= FUNCTION | 0x31,
+    flatMenuContent	= FUNCTION | TAKES_CONTENT | SAFE_RECURSION | 0x32,
+    subMenuContent	= FUNCTION | TAKES_CONTENT | 0x33,
     
     // content widgets: 0x40
     DisplayContent	= TAKES_CONTENT | 0x40,
     BoolContent		= TAKES_CONTENT | 0x41,
     AStringContent	= TAKES_CONTENT | 0x42,
     ButtonContent	= TAKES_CONTENT | 0x43,
+    MenuButtonContent	= TAKES_CONTENT | 0x44,
     
     GridLayout		= TAKES_CONTENT | 0x100,
     ContentList		= TAKES_CONTENT | SAFE_RECURSION | 0x110,
@@ -139,14 +143,18 @@
 	"FloatingArea",
 	"addContent",
 	"PopupMenu",
+	"SubMenu",
 	"ContentLabel",
         "DisplayContent",
         "BoolContent",
 	"AStringContent",
 	"ButtonContent",
+	"MenuButtonContent",
 	"GridLayout",
+	"subMenuContent",
 	"ContentList",
-	"editContent"];
+	"editContent",
+	"flatMenuContent"];
 
 /* Generates a binary search algorithm. */
 char[] binarySearch (char[] var, char[][] consts) {