Mercurial > projects > mde
diff mde/gui/widget/Floating.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 | 1655693702fc |
children | 5b37d0400732 |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Fri Dec 19 10:32:28 2008 +0000 +++ b/mde/gui/widget/Floating.d Fri Dec 19 15:15:06 2008 +0000 @@ -60,7 +60,7 @@ super (mgr, id, data); } - bool setup (uint n, uint flags) { + override bool setup (uint n, uint flags) { foreach (i, ref d; sWData) with (d) { auto widg = subWidgets[i]; if (!widg.setup (n, flags) && n != 0 && !(flags & 1)) @@ -77,7 +77,7 @@ return false; // floating area size is not changed } - bool saveChanges () { + override bool saveChanges () { wdim[] dd = new wdim[sWData.length*4]; foreach (i, ref d; sWData) { subWidgets[i].saveChanges (); @@ -88,7 +88,7 @@ return true; } - void setWidth (wdim nw, int) { + override void setWidth (wdim nw, int) { w = nw; // check all floating widgets are visible foreach (i, ref d; sWData) with (d) { @@ -96,7 +96,7 @@ x = (w > this.w) ? 0 : this.w - w; } } - void setHeight (wdim nh, int) { + override void setHeight (wdim nh, int) { h = nh; foreach (i, ref d; sWData) with (d) { if (y + h > this.h) @@ -104,10 +104,10 @@ } } - bool isWSizable () { return true; } - bool isHSizable () { return true; } + override bool isWSizable () { return true; } + override bool isHSizable () { return true; } - void setPosition (wdim nx, wdim ny) { + override void setPosition (wdim nx, wdim ny) { x = nx; y = ny; @@ -116,7 +116,7 @@ subWidgets[i].setPosition (x + d.x + d.border.x1, y + d.y + d.border.y1); } - void draw () { + override void draw () { super.draw; mgr.renderer.restrict (x,y, w,h); @@ -128,7 +128,7 @@ mgr.renderer.relax; } - IChildWidget getWidget (wdim cx, wdim cy) { + override IChildWidget getWidget (wdim cx, wdim cy) { debug scope (failure) logger.warn ("getWidget: failure; values: click, pos, width - {}, {}, {} - {}, {}, {}", cx, x, w, cy, y, h); debug assert (cx >= x && cx < x + w && cy >= y && cy < y + h, "getWidget: not on widget (code error)"); @@ -153,7 +153,7 @@ return this; // no match } - int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) { + override int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) { if (event > subWidgets.length) return 0; if (b == 1 && state == true) { active = event;