diff mde/imde.d @ 113:9824bee909fd

Popup menu; works for simple menus except that clicking an item doesn't close it. Revised popup support a bit; EnumContentWidget is broken and due to be replaced.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 19 Dec 2008 10:32:28 +0000
parents 08651e8a8c51
children 1b1e2297e2fc
line wrap: on
line diff
--- a/mde/imde.d	Sat Dec 13 12:54:43 2008 +0000
+++ b/mde/imde.d	Fri Dec 19 10:32:28 2008 +0000
@@ -29,9 +29,14 @@
     quit = (new EventContent("quit")).addCallback ((AContent){
 	run = false;
     });
+    a = new EventContent("a");
+    b = new EventContent("b");
+    menu = new ContentList ("menu",[quit,a,b]);
 }
 
+ContentList menu;	/// Root menu for imde
 EventContent quit;	/// A content triggering mde to halt
+EventContent a,b;	/// Dummy items
 
 Scheduler mainSchedule; /// The schedule used by the main loop.