Mercurial > projects > mde
diff mde/gui/widget/Ifaces.d @ 78:79a1809421aa
Widget data saving reimplemented for the new data system. (Now grid layout widgets remember their row & column sizes.)
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 29 Jul 2008 18:14:53 +0100 |
parents | 3dfd934100f7 |
children | ea58f277f487 |
line wrap: on
line diff
--- a/mde/gui/widget/Ifaces.d Tue Jul 29 17:11:22 2008 +0100 +++ b/mde/gui/widget/Ifaces.d Tue Jul 29 18:14:53 2008 +0100 @@ -174,6 +174,14 @@ interface IChildWidget : IWidget { //BEGIN Load and save + /** When this is called, if the widget has any changed data to save it should call + * IWidgetManager.setData (id, data) to set it and return true. Otherwise it should return + * false. + * + * If the widget has subwidgets, it should also be recursively called on these (passing their + * ids). */ + bool saveChanges (widgetID id); + /** Called when the renderer is changed (at least when the changes affect dimensions). * Also called after widget creation, before any other methods are called. *