Mercurial > projects > mde
diff mde/gui/widget/textContent.d @ 105:08651e8a8c51
Quit button, big changes to content system.
Moved mde.gui.content to mde.content to reflect it's not only used by the gui.
Split Content module into Content and AStringContent.
New AContent and EventContent class.
Callbacks are now generic and implemented in AContent.
Renamed TextContent to StringContent and ValueContent to AStringContent.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 12:36:39 +0000 |
parents | 42e241e7be3e |
children | 1655693702fc |
line wrap: on
line diff
--- a/mde/gui/widget/textContent.d Wed Nov 26 13:07:46 2008 +0000 +++ b/mde/gui/widget/textContent.d Sat Nov 29 12:36:39 2008 +0000 @@ -21,7 +21,7 @@ import mde.gui.exception; import mde.gui.renderer.IRenderer; -import mde.gui.content.Content; +import mde.content.AStringContent; debug { import tango.util.log.Log : Log, Logger; @@ -42,16 +42,16 @@ super (mgr, id, data); } - protected: - IContent content; +protected: + IContent content; } /// Capable of editing any ValueContent class -class ValueContentWidget : ATextWidget +class AStringContentWidget : ATextWidget { this (IWidgetManager mgr, widgetID id, WidgetData data, IContent c) { WDMinCheck(data, 1); - content = cast(ValueContent) c; + content = cast(AStringContent) c; if (!content) //content = new TextContent (null, null); throw new ContentException (); adapter = mgr.renderer.getAdapter (content.toString(0)); @@ -78,5 +78,5 @@ } protected: - ValueContent content; + AStringContent content; }