comparison mde/gui/widget/createWidget.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
comparison
equal deleted inserted replaced
100:0ea4a3e651ae 101:71f0f1f83620
104 104
105 // content editables: 0x30 105 // content editables: 0x30
106 editContent = FUNCTION | TAKES_CONTENT | 0x30, 106 editContent = FUNCTION | TAKES_CONTENT | 0x30,
107 DisplayContent = TAKES_CONTENT | 0x30, 107 DisplayContent = TAKES_CONTENT | 0x30,
108 BoolContent = TAKES_CONTENT | 0x31, 108 BoolContent = TAKES_CONTENT | 0x31,
109 TextContent = TAKES_CONTENT | 0x32, 109 ValueContent = TAKES_CONTENT | 0x32,
110 110
111 GridLayout = TAKES_CONTENT | PARENT | 0x100, 111 GridLayout = TAKES_CONTENT | PARENT | 0x100,
112 TrialContentLayout = PARENT | 0x110, 112 TrialContentLayout = PARENT | 0x110,
113 113
114 FloatingArea = PARENT | 0x200, 114 FloatingArea = PARENT | 0x200,
124 "Button", 124 "Button",
125 "TextLabel", 125 "TextLabel",
126 "ContentLabel", 126 "ContentLabel",
127 "DisplayContent", 127 "DisplayContent",
128 "BoolContent", 128 "BoolContent",
129 "TextContent", 129 "ValueContent",
130 "editContent", 130 "editContent",
131 "TrialContentLayout", 131 "TrialContentLayout",
132 "FloatingArea", 132 "FloatingArea",
133 "GridLayout"]; 133 "GridLayout"];
134 134