comparison 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
comparison
equal deleted inserted replaced
77:3dfd934100f7 78:79a1809421aa
172 *************************************************************************************************/ 172 *************************************************************************************************/
173 //NOTE: add another this() without the data for default initialization, for the GUI editor? 173 //NOTE: add another this() without the data for default initialization, for the GUI editor?
174 interface IChildWidget : IWidget 174 interface IChildWidget : IWidget
175 { 175 {
176 //BEGIN Load and save 176 //BEGIN Load and save
177 /** When this is called, if the widget has any changed data to save it should call
178 * IWidgetManager.setData (id, data) to set it and return true. Otherwise it should return
179 * false.
180 *
181 * If the widget has subwidgets, it should also be recursively called on these (passing their
182 * ids). */
183 bool saveChanges (widgetID id);
184
177 /** Called when the renderer is changed (at least when the changes affect dimensions). 185 /** Called when the renderer is changed (at least when the changes affect dimensions).
178 * Also called after widget creation, before any other methods are called. 186 * Also called after widget creation, before any other methods are called.
179 * 187 *
180 * Returns: true when widget's dimensions (may) have changed. 188 * Returns: true when widget's dimensions (may) have changed.
181 * 189 *