Mercurial > projects > mde
diff mde/gui/widget/miscContent.d @ 162:2476790223b8
First drag and drop support: can drag from AStringContentWidget to any content editable. No visual feedback while dragging.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 22 May 2009 19:59:22 +0200 |
parents | 17438f17bfb5 |
children | 24d77c52243f |
line wrap: on
line diff
--- a/mde/gui/widget/miscContent.d Thu May 21 22:15:40 2009 +0200 +++ b/mde/gui/widget/miscContent.d Fri May 22 19:59:22 2009 +0200 @@ -50,6 +50,12 @@ return content_; } + override bool dropContent (IContent content) { + if (content_.setContent (content)) + return true; + return parent.dropContent (content); + } + override void draw () { mgr.renderer.drawToggle (x,y, content_(), pushed); }