comparison mde/gui/widget/createWidget.d @ 72:159775502bb4

The first dynamically generated widget lists, based on Options, are here!
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 05 Jul 2008 18:27:46 +0100
parents 7cab2af4ba21
children 25cb7420dc91
comparison
equal deleted inserted replaced
71:77c7d3235114 72:159775502bb4
67 67
68 // content: 0x20 68 // content: 0x20
69 Text = 0x21, 69 Text = 0x21,
70 Int = 0x22, 70 Int = 0x22,
71 71
72 GridLayout = LAYOUT | WSIZABLE | HSIZABLE | 0x4 72 GridLayout = LAYOUT | WSIZABLE | HSIZABLE | 0x4,
73 TrialContentLayout = LAYOUT | WSIZABLE | HSIZABLE | 0x5
73 } 74 }
74 75
75 //const char[][int] WIDGET_NAMES; 76 //const char[][int] WIDGET_NAMES;
76 77
77 // Only used for binarySearch algorithm generation; must be ordered by numerical values. 78 // Only used for binarySearch algorithm generation; must be ordered by numerical values.
79 "FixedBlank", 80 "FixedBlank",
80 "Text", 81 "Text",
81 "Int", 82 "Int",
82 "SizableBlank", 83 "SizableBlank",
83 "Button", 84 "Button",
84 "GridLayout" ]; 85 "GridLayout",
86 "TrialContentLayout"];
85 87
86 // Purely to add indentation. Could just return "" without affecting functionality. 88 // Purely to add indentation. Could just return "" without affecting functionality.
87 static char[] indent (uint i) { 89 static char[] indent (uint i) {
88 char[] ret; 90 char[] ret;
89 for (; i > 0; --i) ret ~= " "; 91 for (; i > 0; --i) ret ~= " ";