Mercurial > projects > mde
comparison 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 |
comparison
equal
deleted
inserted
replaced
124:a2ef6b549101 | 125:3e648bc53bde |
---|---|
18 module mde.imde; | 18 module mde.imde; |
19 | 19 |
20 import mde.input.Input; | 20 import mde.input.Input; |
21 import mde.scheduler.Scheduler; | 21 import mde.scheduler.Scheduler; |
22 import mde.content.miscContent; | 22 import mde.content.miscContent; |
23 import mde.content.AStringContent; //FIXME: for sw | |
23 | 24 |
24 static this () { | 25 static this () { |
25 // Make these available to all importing modules' static CTORs, as well as during init. | 26 // Make these available to all importing modules' static CTORs, as well as during init. |
26 input = new Input(); | 27 input = new Input(); |
27 mainSchedule = new Scheduler; | 28 mainSchedule = new Scheduler; |
34 new EventContent("a"), | 35 new EventContent("a"), |
35 new ContentList("subMenu",[ | 36 new ContentList("subMenu",[ |
36 new EventContent("b"), | 37 new EventContent("b"), |
37 new EventContent("c")]) | 38 new EventContent("c")]) |
38 ]); | 39 ]); |
40 | |
41 sw = new EnumContent ("switch", ["one", "two"]); | |
39 } | 42 } |
40 | 43 |
41 ContentList menu; /// Root menu for imde | 44 ContentList menu; /// Root menu for imde |
42 EventContent quit; /// A content triggering mde to halt | 45 EventContent quit; /// A content triggering mde to halt |
46 | |
47 EnumContent sw; | |
43 | 48 |
44 Scheduler mainSchedule; /// The schedule used by the main loop. | 49 Scheduler mainSchedule; /// The schedule used by the main loop. |
45 | 50 |
46 /** Some enums used by per request scheduled functions. */ | 51 /** Some enums used by per request scheduled functions. */ |
47 enum SCHEDULE : Scheduler.ID { | 52 enum SCHEDULE : Scheduler.ID { |