Mercurial > projects > mde
comparison mde/gui/widget/Widget.d @ 110:6acd96f8685f
Translation reloading as far as AContent name/desc supported. Limited & crude support for updating gui.
Gave AContent support for multiple callbacks.
New locale: "en".
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 05 Dec 2008 11:29:39 +0000 |
parents | 42e241e7be3e |
children | 1655693702fc |
comparison
equal
deleted
inserted
replaced
109:2a1428ec5344 | 110:6acd96f8685f |
---|---|
68 } | 68 } |
69 | 69 |
70 // Very basic implementation which assumes the renderer cannot affect the widget's size. | 70 // Very basic implementation which assumes the renderer cannot affect the widget's size. |
71 bool rendererChanged () { | 71 bool rendererChanged () { |
72 return false; | 72 return false; |
73 } | |
74 | |
75 // Widgets displaying strings will need this. | |
76 bool reloadStrings () { | |
77 return false; | |
73 } | 78 } |
74 //END Load and save | 79 //END Load and save |
75 | 80 |
76 //BEGIN Size and position | 81 //BEGIN Size and position |
77 bool isWSizable () { return false; } | 82 bool isWSizable () { return false; } |
175 { | 180 { |
176 this (IWidgetManager mgr, widgetID id, WidgetData data) { | 181 this (IWidgetManager mgr, widgetID id, WidgetData data) { |
177 super (mgr, id, data); | 182 super (mgr, id, data); |
178 } | 183 } |
179 | 184 |
185 // Tells all subWidgets to reload strings, but cannot adjust size of self, so not ultimately useful. | |
186 bool reloadStrings () { | |
187 foreach (widg; subWidgets) | |
188 widg.reloadStrings; | |
189 return false; | |
190 } | |
191 | |
180 IChildWidget[] children () { | 192 IChildWidget[] children () { |
181 return subWidgets; | 193 return subWidgets; |
182 } | 194 } |
183 | 195 |
184 bool saveChanges () { | 196 bool saveChanges () { |