Mercurial > projects > mde
comparison mde/gui/WidgetManager.d @ 114:b16a534f5302
Changes for tango r4201. Added override keyword in a lot of places.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 19 Dec 2008 15:15:06 +0000 |
parents | 9824bee909fd |
children | 1b1e2297e2fc |
comparison
equal
deleted
inserted
replaced
113:9824bee909fd | 114:b16a534f5302 |
---|---|
251 //END IWidgetManager methods | 251 //END IWidgetManager methods |
252 | 252 |
253 protected: | 253 protected: |
254 /* Second stage of widget loading. | 254 /* Second stage of widget loading. |
255 * Note: sizeEvent should be called with window size before this. */ | 255 * Note: sizeEvent should be called with window size before this. */ |
256 void createRootWidget () { | 256 final override void createRootWidget () { |
257 // The renderer needs to be created on the first load, but not after this. | 257 // The renderer needs to be created on the first load, but not after this. |
258 if (rend is null) | 258 if (rend is null) |
259 rend = createRenderer (rendName); | 259 rend = createRenderer (rendName); |
260 popups = new CircularList!(ActivePopup); | 260 popups = new CircularList!(ActivePopup); |
261 | 261 |
271 child.setWidth (w, -1); | 271 child.setWidth (w, -1); |
272 child.setHeight (h, -1); | 272 child.setHeight (h, -1); |
273 child.setPosition (0,0); | 273 child.setPosition (0,0); |
274 } | 274 } |
275 | 275 |
276 void preSave () { | 276 final override void preSave () { |
277 if (keyFocus) { | 277 if (keyFocus) { |
278 keyFocus.keyFocusLost; | 278 keyFocus.keyFocusLost; |
279 keyFocus = null; | 279 keyFocus = null; |
280 imde.input.setLetterCallback (null); | 280 imde.input.setLetterCallback (null); |
281 } | 281 } |
517 * necessarily). */ | 517 * necessarily). */ |
518 void preSave (); | 518 void preSave (); |
519 | 519 |
520 public: | 520 public: |
521 //BEGIN IWidgetManager methods | 521 //BEGIN IWidgetManager methods |
522 IChildWidget makeWidget (widgetID id, IContent content = null) { | 522 override IChildWidget makeWidget (widgetID id, IContent content = null) { |
523 debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); | 523 debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); |
524 return createWidget (this, id, curData[id], content); | 524 return createWidget (this, id, curData[id], content); |
525 } | 525 } |
526 IChildWidget makeWidget (widgetID id, WidgetData data, IContent content = null) { | 526 override IChildWidget makeWidget (widgetID id, WidgetData data, IContent content = null) { |
527 debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); | 527 debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); |
528 return createWidget (this, id, data, content); | 528 return createWidget (this, id, data, content); |
529 } | 529 } |
530 | 530 |
531 wdims dimData (widgetID id) { | 531 override wdims dimData (widgetID id) { |
532 return curData.dims (id); | 532 return curData.dims (id); |
533 } | 533 } |
534 void setData (widgetID id, WidgetData d) { | 534 override void setData (widgetID id, WidgetData d) { |
535 changes[id] = d; // also updates WidgetDataSet in data. | 535 changes[id] = d; // also updates WidgetDataSet in data. |
536 } | 536 } |
537 void setDimData (widgetID id, wdims d) { | 537 override void setDimData (widgetID id, wdims d) { |
538 changes.setDims(id, d); // also updates WidgetDataSet in data. | 538 changes.setDims(id, d); // also updates WidgetDataSet in data. |
539 } | 539 } |
540 //END IWidgetManager methods | 540 //END IWidgetManager methods |
541 | 541 |
542 protected: | 542 protected: |