Mercurial > projects > mde
diff mde/gui/widget/TextWidget.d @ 174:3d58adc17d20
Temporary commit to allow backup
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 13:54:23 +0200 |
parents | 0dd49f333189 |
children | 1cbde9807293 |
line wrap: on
line diff
--- a/mde/gui/widget/TextWidget.d Sat Aug 08 15:53:10 2009 +0200 +++ b/mde/gui/widget/TextWidget.d Mon Aug 31 13:54:23 2009 +0200 @@ -70,7 +70,8 @@ /** Constructor for a widget containing [fixed] content. * * Widget uses the initialisation data: - * [widgetID, contentID, colour] + * ints: [widgetID, colour] + * strings: [text] * where contentID is an ID for the string ID of the contained content * and colour is an 8-bit-per-channel RGB colour of the form 0xRRGGBB. */ this (IWidgetManager mgr, IParentWidget parent, widgetID id, WidgetData data) { @@ -186,7 +187,7 @@ return false; } - override void keyEvent (ushort s, char[] i) { + public override void keyEvent (ushort s, char[] i) { adapter.text = content_.keyStroke (s, i); adapter.index = content_.editIndex; wdim omw = mw, omh = mh; @@ -197,7 +198,7 @@ parent.minHChange (this, mh); mgr.requestRedraw; } - override void keyFocusLost () { + public override void keyFocusLost () { content_.endEdit; adapter.text = content_.toString (0); adapter.index;