Mercurial > projects > mde
comparison mde/content/Items.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 | c9843fbaac88 |
comparison
equal
deleted
inserted
replaced
124:a2ef6b549101 | 125:3e648bc53bde |
---|---|
61 h = head (item); | 61 h = head (item); |
62 if (h == "menu" && item is null) | 62 if (h == "menu" && item is null) |
63 return imde.menu; | 63 return imde.menu; |
64 else if (h == "quit" && item is null) | 64 else if (h == "quit" && item is null) |
65 return imde.quit; | 65 return imde.quit; |
66 else if (h == "sw" && item is null) | |
67 return imde.sw; | |
66 } | 68 } |
69 logger.warn ("Bad content specifier: {}",h); | |
67 return new ErrorContent ("Error: bad content specifier",h); | 70 return new ErrorContent ("Error: bad content specifier",h); |
68 } | 71 } |
69 | 72 |
70 /** Creates some content on first run (required by get()). | 73 /** Creates some content on first run (required by get()). |
71 * | 74 * |