diff mde/gui/widget/miscContent.d @ 101:71f0f1f83620

Some path adjustments for windows (untested) and fonts. All types of option can be edited. paths: support for getting the full path for a font when just the file name is entered, in order to unify usage on windows and linux. paths: Used getSpecialPath for some windows paths; needs testing. Content: Moved line-editing code to abstract ValueContent class and added some conversion functions, so that any type of ValueContent can be edited as text.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 16 Nov 2008 17:03:47 +0000
parents 5de5810e3516
children 42e241e7be3e
line wrap: on
line diff
--- a/mde/gui/widget/miscContent.d	Sat Nov 15 17:39:14 2008 +0000
+++ b/mde/gui/widget/miscContent.d	Sun Nov 16 17:03:47 2008 +0000
@@ -28,8 +28,8 @@
 IChildWidget editContent (IWidgetManager mgr, widgetID id, WidgetData data, IContent c) {
     if (cast(BoolContent) c)
         return new BoolContentWidget(mgr,id,data,c);
-    else if (cast(TextContent) c)
-	return new TextContentWidget(mgr,id,data,c);
+    else if (cast(ValueContent) c)
+	return new ValueContentWidget(mgr,id,data,c);
     else        // generic uneditable option
         return new DisplayContentWidget(mgr,id,data,c);
 }