Mercurial > projects > mde
diff mde/imde.d @ 125:3e648bc53bde
Added a simple switch/tab widget (depends on existing EnumContent).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 06 Jan 2009 16:54:04 +0000 |
parents | d3b2cefd46c9 |
children | 41582439a42b |
line wrap: on
line diff
--- a/mde/imde.d Mon Jan 05 12:43:27 2009 +0000 +++ b/mde/imde.d Tue Jan 06 16:54:04 2009 +0000 @@ -20,6 +20,7 @@ import mde.input.Input; import mde.scheduler.Scheduler; import mde.content.miscContent; +import mde.content.AStringContent; //FIXME: for sw static this () { // Make these available to all importing modules' static CTORs, as well as during init. @@ -36,11 +37,15 @@ new EventContent("b"), new EventContent("c")]) ]); + + sw = new EnumContent ("switch", ["one", "two"]); } ContentList menu; /// Root menu for imde EventContent quit; /// A content triggering mde to halt +EnumContent sw; + Scheduler mainSchedule; /// The schedule used by the main loop. /** Some enums used by per request scheduled functions. */