Mercurial > projects > mde
diff 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 |
line wrap: on
line diff
--- a/mde/gui/widget/Widget.d Thu Dec 04 10:32:20 2008 +0000 +++ b/mde/gui/widget/Widget.d Fri Dec 05 11:29:39 2008 +0000 @@ -71,6 +71,11 @@ bool rendererChanged () { return false; } + + // Widgets displaying strings will need this. + bool reloadStrings () { + return false; + } //END Load and save //BEGIN Size and position @@ -177,6 +182,13 @@ super (mgr, id, data); } + // Tells all subWidgets to reload strings, but cannot adjust size of self, so not ultimately useful. + bool reloadStrings () { + foreach (widg; subWidgets) + widg.reloadStrings; + return false; + } + IChildWidget[] children () { return subWidgets; }