comparison mde/gui/widget/Widget.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
54 { 54 {
55 //BEGIN Load and save 55 //BEGIN Load and save
56 // Base this() for child Widgets. 56 // Base this() for child Widgets.
57 this (IWidgetManager mgr, WidgetData data) { 57 this (IWidgetManager mgr, WidgetData data) {
58 this.mgr = mgr; 58 this.mgr = mgr;
59 }
60
61 // Don't save any data: fine for many widgets.
62 bool saveChanges (widgetID) {
63 return false;
59 } 64 }
60 65
61 // Very basic implementation which assumes the renderer cannot affect the widget's size. 66 // Very basic implementation which assumes the renderer cannot affect the widget's size.
62 bool rendererChanged () { 67 bool rendererChanged () {
63 return false; 68 return false;