aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ControlTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/ControlTuple.cs206
1 files changed, 103 insertions, 103 deletions
diff --git a/src/WixToolset.Data/Tuples/ControlTuple.cs b/src/WixToolset.Data/Tuples/ControlTuple.cs
index 165e40e2..732566d5 100644
--- a/src/WixToolset.Data/Tuples/ControlTuple.cs
+++ b/src/WixToolset.Data/Tuples/ControlTuple.cs
@@ -2,44 +2,44 @@
2 2
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using WixToolset.Data.Tuples; 5 using WixToolset.Data.Symbols;
6 6
7 public static partial class TupleDefinitions 7 public static partial class SymbolDefinitions
8 { 8 {
9 public static readonly IntermediateTupleDefinition Control = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition Control = new IntermediateSymbolDefinition(
10 TupleDefinitionType.Control, 10 SymbolDefinitionType.Control,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(ControlTupleFields.DialogRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(ControlSymbolFields.DialogRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ControlTupleFields.Control), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Control), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(ControlTupleFields.Type), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Type), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(ControlTupleFields.X), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(ControlSymbolFields.X), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(ControlTupleFields.Y), IntermediateFieldType.Number), 17 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Y), IntermediateFieldType.Number),
18 new IntermediateFieldDefinition(nameof(ControlTupleFields.Width), IntermediateFieldType.Number), 18 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Width), IntermediateFieldType.Number),
19 new IntermediateFieldDefinition(nameof(ControlTupleFields.Height), IntermediateFieldType.Number), 19 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Height), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(ControlTupleFields.Attributes), IntermediateFieldType.Number), 20 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Attributes), IntermediateFieldType.Number),
21 new IntermediateFieldDefinition(nameof(ControlTupleFields.Enabled), IntermediateFieldType.Bool), 21 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Enabled), IntermediateFieldType.Bool),
22 new IntermediateFieldDefinition(nameof(ControlTupleFields.Indirect), IntermediateFieldType.Bool), 22 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Indirect), IntermediateFieldType.Bool),
23 new IntermediateFieldDefinition(nameof(ControlTupleFields.Integer), IntermediateFieldType.Bool), 23 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Integer), IntermediateFieldType.Bool),
24 new IntermediateFieldDefinition(nameof(ControlTupleFields.LeftScroll), IntermediateFieldType.Bool), 24 new IntermediateFieldDefinition(nameof(ControlSymbolFields.LeftScroll), IntermediateFieldType.Bool),
25 new IntermediateFieldDefinition(nameof(ControlTupleFields.RightAligned), IntermediateFieldType.Bool), 25 new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightAligned), IntermediateFieldType.Bool),
26 new IntermediateFieldDefinition(nameof(ControlTupleFields.RightToLeft), IntermediateFieldType.Bool), 26 new IntermediateFieldDefinition(nameof(ControlSymbolFields.RightToLeft), IntermediateFieldType.Bool),
27 new IntermediateFieldDefinition(nameof(ControlTupleFields.Sunken), IntermediateFieldType.Bool), 27 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Sunken), IntermediateFieldType.Bool),
28 new IntermediateFieldDefinition(nameof(ControlTupleFields.Visible), IntermediateFieldType.Bool), 28 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Visible), IntermediateFieldType.Bool),
29 new IntermediateFieldDefinition(nameof(ControlTupleFields.Property), IntermediateFieldType.String), 29 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Property), IntermediateFieldType.String),
30 new IntermediateFieldDefinition(nameof(ControlTupleFields.Text), IntermediateFieldType.String), 30 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Text), IntermediateFieldType.String),
31 new IntermediateFieldDefinition(nameof(ControlTupleFields.NextControlRef), IntermediateFieldType.String), 31 new IntermediateFieldDefinition(nameof(ControlSymbolFields.NextControlRef), IntermediateFieldType.String),
32 new IntermediateFieldDefinition(nameof(ControlTupleFields.Help), IntermediateFieldType.String), 32 new IntermediateFieldDefinition(nameof(ControlSymbolFields.Help), IntermediateFieldType.String),
33 new IntermediateFieldDefinition(nameof(ControlTupleFields.TrackDiskSpace), IntermediateFieldType.Bool), 33 new IntermediateFieldDefinition(nameof(ControlSymbolFields.TrackDiskSpace), IntermediateFieldType.Bool),
34 new IntermediateFieldDefinition(nameof(ControlTupleFields.SourceFile), IntermediateFieldType.Path), 34 new IntermediateFieldDefinition(nameof(ControlSymbolFields.SourceFile), IntermediateFieldType.Path),
35 }, 35 },
36 typeof(ControlTuple)); 36 typeof(ControlSymbol));
37 } 37 }
38} 38}
39 39
40namespace WixToolset.Data.Tuples 40namespace WixToolset.Data.Symbols
41{ 41{
42 public enum ControlTupleFields 42 public enum ControlSymbolFields
43 { 43 {
44 DialogRef, 44 DialogRef,
45 Control, 45 Control,
@@ -65,239 +65,239 @@ namespace WixToolset.Data.Tuples
65 SourceFile, 65 SourceFile,
66 } 66 }
67 67
68 public class ControlTuple : IntermediateTuple 68 public class ControlSymbol : IntermediateSymbol
69 { 69 {
70 public ControlTuple() : base(TupleDefinitions.Control, null, null) 70 public ControlSymbol() : base(SymbolDefinitions.Control, null, null)
71 { 71 {
72 } 72 }
73 73
74 public ControlTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Control, sourceLineNumber, id) 74 public ControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Control, sourceLineNumber, id)
75 { 75 {
76 } 76 }
77 77
78 public IntermediateField this[ControlTupleFields index] => this.Fields[(int)index]; 78 public IntermediateField this[ControlSymbolFields index] => this.Fields[(int)index];
79 79
80 public string DialogRef 80 public string DialogRef
81 { 81 {
82 get => (string)this.Fields[(int)ControlTupleFields.DialogRef]; 82 get => (string)this.Fields[(int)ControlSymbolFields.DialogRef];
83 set => this.Set((int)ControlTupleFields.DialogRef, value); 83 set => this.Set((int)ControlSymbolFields.DialogRef, value);
84 } 84 }
85 85
86 public string Control 86 public string Control
87 { 87 {
88 get => (string)this.Fields[(int)ControlTupleFields.Control]; 88 get => (string)this.Fields[(int)ControlSymbolFields.Control];
89 set => this.Set((int)ControlTupleFields.Control, value); 89 set => this.Set((int)ControlSymbolFields.Control, value);
90 } 90 }
91 91
92 public string Type 92 public string Type
93 { 93 {
94 get => (string)this.Fields[(int)ControlTupleFields.Type]; 94 get => (string)this.Fields[(int)ControlSymbolFields.Type];
95 set => this.Set((int)ControlTupleFields.Type, value); 95 set => this.Set((int)ControlSymbolFields.Type, value);
96 } 96 }
97 97
98 public int X 98 public int X
99 { 99 {
100 get => (int)this.Fields[(int)ControlTupleFields.X]; 100 get => (int)this.Fields[(int)ControlSymbolFields.X];
101 set => this.Set((int)ControlTupleFields.X, value); 101 set => this.Set((int)ControlSymbolFields.X, value);
102 } 102 }
103 103
104 public int Y 104 public int Y
105 { 105 {
106 get => (int)this.Fields[(int)ControlTupleFields.Y]; 106 get => (int)this.Fields[(int)ControlSymbolFields.Y];
107 set => this.Set((int)ControlTupleFields.Y, value); 107 set => this.Set((int)ControlSymbolFields.Y, value);
108 } 108 }
109 109
110 public int Width 110 public int Width
111 { 111 {
112 get => (int)this.Fields[(int)ControlTupleFields.Width]; 112 get => (int)this.Fields[(int)ControlSymbolFields.Width];
113 set => this.Set((int)ControlTupleFields.Width, value); 113 set => this.Set((int)ControlSymbolFields.Width, value);
114 } 114 }
115 115
116 public int Height 116 public int Height
117 { 117 {
118 get => (int)this.Fields[(int)ControlTupleFields.Height]; 118 get => (int)this.Fields[(int)ControlSymbolFields.Height];
119 set => this.Set((int)ControlTupleFields.Height, value); 119 set => this.Set((int)ControlSymbolFields.Height, value);
120 } 120 }
121 121
122 public int? Attributes 122 public int? Attributes
123 { 123 {
124 get => (int?)this.Fields[(int)ControlTupleFields.Attributes]; 124 get => (int?)this.Fields[(int)ControlSymbolFields.Attributes];
125 set => this.Set((int)ControlTupleFields.Attributes, value); 125 set => this.Set((int)ControlSymbolFields.Attributes, value);
126 } 126 }
127 127
128 public bool Enabled 128 public bool Enabled
129 { 129 {
130 get => this.Fields[(int)ControlTupleFields.Enabled].AsBool(); 130 get => this.Fields[(int)ControlSymbolFields.Enabled].AsBool();
131 set => this.Set((int)ControlTupleFields.Enabled, value); 131 set => this.Set((int)ControlSymbolFields.Enabled, value);
132 } 132 }
133 133
134 public bool Indirect 134 public bool Indirect
135 { 135 {
136 get => this.Fields[(int)ControlTupleFields.Indirect].AsBool(); 136 get => this.Fields[(int)ControlSymbolFields.Indirect].AsBool();
137 set => this.Set((int)ControlTupleFields.Indirect, value); 137 set => this.Set((int)ControlSymbolFields.Indirect, value);
138 } 138 }
139 139
140 public bool Integer 140 public bool Integer
141 { 141 {
142 get => this.Fields[(int)ControlTupleFields.Integer].AsBool(); 142 get => this.Fields[(int)ControlSymbolFields.Integer].AsBool();
143 set => this.Set((int)ControlTupleFields.Integer, value); 143 set => this.Set((int)ControlSymbolFields.Integer, value);
144 } 144 }
145 /* 145 /*
146 /// <summary>PictureButton control</summary> 146 /// <summary>PictureButton control</summary>
147 public bool Bitmap 147 public bool Bitmap
148 { 148 {
149 get => this.Fields[(int)ControlTupleFields.Bitmap].AsBool(); 149 get => this.Fields[(int)ControlSymbolFields.Bitmap].AsBool();
150 set => this.Set((int)ControlTupleFields.Bitmap, value); 150 set => this.Set((int)ControlSymbolFields.Bitmap, value);
151 } 151 }
152 152
153 /// <summary>RadioButton control</summary> 153 /// <summary>RadioButton control</summary>
154 public bool Border 154 public bool Border
155 { 155 {
156 get => this.Fields[(int)ControlTupleFields.Border].AsBool(); 156 get => this.Fields[(int)ControlSymbolFields.Border].AsBool();
157 set => this.Set((int)ControlTupleFields.Border, value); 157 set => this.Set((int)ControlSymbolFields.Border, value);
158 } 158 }
159 159
160 /// <summary>ListBox and ComboBox control</summary> 160 /// <summary>ListBox and ComboBox control</summary>
161 public bool ComboList 161 public bool ComboList
162 { 162 {
163 get => this.Fields[(int)ControlTupleFields.ComboList].AsBool(); 163 get => this.Fields[(int)ControlSymbolFields.ComboList].AsBool();
164 set => this.Set((int)ControlTupleFields.ComboList, value); 164 set => this.Set((int)ControlSymbolFields.ComboList, value);
165 } 165 }
166 166
167 /// <summary>PushButton control</summary> 167 /// <summary>PushButton control</summary>
168 public bool ElevationShield 168 public bool ElevationShield
169 { 169 {
170 get => this.Fields[(int)ControlTupleFields.ElevationShield].AsBool(); 170 get => this.Fields[(int)ControlSymbolFields.ElevationShield].AsBool();
171 set => this.Set((int)ControlTupleFields.ElevationShield, value); 171 set => this.Set((int)ControlSymbolFields.ElevationShield, value);
172 } 172 }
173 173
174 /// <summary>PictureButton control</summary> 174 /// <summary>PictureButton control</summary>
175 public bool FixedSize 175 public bool FixedSize
176 { 176 {
177 get => this.Fields[(int)ControlTupleFields.FixedSize].AsBool(); 177 get => this.Fields[(int)ControlSymbolFields.FixedSize].AsBool();
178 set => this.Set((int)ControlTupleFields.FixedSize, value); 178 set => this.Set((int)ControlSymbolFields.FixedSize, value);
179 } 179 }
180 180
181 /// <summary>PictureButton control</summary> 181 /// <summary>PictureButton control</summary>
182 public bool Icon 182 public bool Icon
183 { 183 {
184 get => this.Fields[(int)ControlTupleFields.Icon].AsBool(); 184 get => this.Fields[(int)ControlSymbolFields.Icon].AsBool();
185 set => this.Set((int)ControlTupleFields.Icon, value); 185 set => this.Set((int)ControlSymbolFields.Icon, value);
186 } 186 }
187 187
188 /// <summary>PictureButton control</summary> 188 /// <summary>PictureButton control</summary>
189 public bool Icon16 189 public bool Icon16
190 { 190 {
191 get => this.Fields[(int)ControlTupleFields.Icon16].AsBool(); 191 get => this.Fields[(int)ControlSymbolFields.Icon16].AsBool();
192 set => this.Set((int)ControlTupleFields.Icon16, value); 192 set => this.Set((int)ControlSymbolFields.Icon16, value);
193 } 193 }
194 194
195 /// <summary>PictureButton control</summary> 195 /// <summary>PictureButton control</summary>
196 public bool Icon32 196 public bool Icon32
197 { 197 {
198 get => this.Fields[(int)ControlTupleFields.Icon32].AsBool(); 198 get => this.Fields[(int)ControlSymbolFields.Icon32].AsBool();
199 set => this.Set((int)ControlTupleFields.Icon32, value); 199 set => this.Set((int)ControlSymbolFields.Icon32, value);
200 } 200 }
201 201
202 /// <summary>PictureButton control</summary> 202 /// <summary>PictureButton control</summary>
203 public bool Icon48 203 public bool Icon48
204 { 204 {
205 get => this.Fields[(int)ControlTupleFields.Icon48].AsBool(); 205 get => this.Fields[(int)ControlSymbolFields.Icon48].AsBool();
206 set => this.Set((int)ControlTupleFields.Icon48, value); 206 set => this.Set((int)ControlSymbolFields.Icon48, value);
207 } 207 }
208 */ 208 */
209 public bool LeftScroll 209 public bool LeftScroll
210 { 210 {
211 get => this.Fields[(int)ControlTupleFields.LeftScroll].AsBool(); 211 get => this.Fields[(int)ControlSymbolFields.LeftScroll].AsBool();
212 set => this.Set((int)ControlTupleFields.LeftScroll, value); 212 set => this.Set((int)ControlSymbolFields.LeftScroll, value);
213 } 213 }
214 /* 214 /*
215 /// <summary>PictureButton control</summary> 215 /// <summary>PictureButton control</summary>
216 public bool PushLike 216 public bool PushLike
217 { 217 {
218 get => this.Fields[(int)ControlTupleFields.PushLike].AsBool(); 218 get => this.Fields[(int)ControlSymbolFields.PushLike].AsBool();
219 set => this.Set((int)ControlTupleFields.PushLike, value); 219 set => this.Set((int)ControlSymbolFields.PushLike, value);
220 } 220 }
221 221
222 /// <summary>Edit control</summary> 222 /// <summary>Edit control</summary>
223 public bool Mulitline 223 public bool Mulitline
224 { 224 {
225 get => this.Fields[(int)ControlTupleFields.Mulitline].AsBool(); 225 get => this.Fields[(int)ControlSymbolFields.Mulitline].AsBool();
226 set => this.Set((int)ControlTupleFields.Mulitline, value); 226 set => this.Set((int)ControlSymbolFields.Mulitline, value);
227 } 227 }
228 */ 228 */
229 public bool RightAligned 229 public bool RightAligned
230 { 230 {
231 get => this.Fields[(int)ControlTupleFields.RightAligned].AsBool(); 231 get => this.Fields[(int)ControlSymbolFields.RightAligned].AsBool();
232 set => this.Set((int)ControlTupleFields.RightAligned, value); 232 set => this.Set((int)ControlSymbolFields.RightAligned, value);
233 } 233 }
234 234
235 public bool RightToLeft 235 public bool RightToLeft
236 { 236 {
237 get => this.Fields[(int)ControlTupleFields.RightToLeft].AsBool(); 237 get => this.Fields[(int)ControlSymbolFields.RightToLeft].AsBool();
238 set => this.Set((int)ControlTupleFields.RightToLeft, value); 238 set => this.Set((int)ControlSymbolFields.RightToLeft, value);
239 } 239 }
240 /* 240 /*
241 /// <summary>VolumeCostList control</summary> 241 /// <summary>VolumeCostList control</summary>
242 public bool ShowRollbackCost 242 public bool ShowRollbackCost
243 { 243 {
244 get => this.Fields[(int)ControlTupleFields.ShowRollbackCost].AsBool(); 244 get => this.Fields[(int)ControlSymbolFields.ShowRollbackCost].AsBool();
245 set => this.Set((int)ControlTupleFields.ShowRollbackCost, value); 245 set => this.Set((int)ControlSymbolFields.ShowRollbackCost, value);
246 } 246 }
247 247
248 /// <summary>ListBox and ComboBox control</summary> 248 /// <summary>ListBox and ComboBox control</summary>
249 public bool Sorted 249 public bool Sorted
250 { 250 {
251 get => this.Fields[(int)ControlTupleFields.Sorted].AsBool(); 251 get => this.Fields[(int)ControlSymbolFields.Sorted].AsBool();
252 set => this.Set((int)ControlTupleFields.Sorted, value); 252 set => this.Set((int)ControlSymbolFields.Sorted, value);
253 } 253 }
254 */ 254 */
255 public bool Sunken 255 public bool Sunken
256 { 256 {
257 get => this.Fields[(int)ControlTupleFields.Sunken].AsBool(); 257 get => this.Fields[(int)ControlSymbolFields.Sunken].AsBool();
258 set => this.Set((int)ControlTupleFields.Sunken, value); 258 set => this.Set((int)ControlSymbolFields.Sunken, value);
259 } 259 }
260 260
261 public bool Visible 261 public bool Visible
262 { 262 {
263 get => this.Fields[(int)ControlTupleFields.Visible].AsBool(); 263 get => this.Fields[(int)ControlSymbolFields.Visible].AsBool();
264 set => this.Set((int)ControlTupleFields.Visible, value); 264 set => this.Set((int)ControlSymbolFields.Visible, value);
265 } 265 }
266 266
267 public string Property 267 public string Property
268 { 268 {
269 get => (string)this.Fields[(int)ControlTupleFields.Property]; 269 get => (string)this.Fields[(int)ControlSymbolFields.Property];
270 set => this.Set((int)ControlTupleFields.Property, value); 270 set => this.Set((int)ControlSymbolFields.Property, value);
271 } 271 }
272 272
273 public string Text 273 public string Text
274 { 274 {
275 get => (string)this.Fields[(int)ControlTupleFields.Text]; 275 get => (string)this.Fields[(int)ControlSymbolFields.Text];
276 set => this.Set((int)ControlTupleFields.Text, value); 276 set => this.Set((int)ControlSymbolFields.Text, value);
277 } 277 }
278 278
279 public string NextControlRef 279 public string NextControlRef
280 { 280 {
281 get => (string)this.Fields[(int)ControlTupleFields.NextControlRef]; 281 get => (string)this.Fields[(int)ControlSymbolFields.NextControlRef];
282 set => this.Set((int)ControlTupleFields.NextControlRef, value); 282 set => this.Set((int)ControlSymbolFields.NextControlRef, value);
283 } 283 }
284 284
285 public string Help 285 public string Help
286 { 286 {
287 get => (string)this.Fields[(int)ControlTupleFields.Help]; 287 get => (string)this.Fields[(int)ControlSymbolFields.Help];
288 set => this.Set((int)ControlTupleFields.Help, value); 288 set => this.Set((int)ControlSymbolFields.Help, value);
289 } 289 }
290 290
291 public bool TrackDiskSpace 291 public bool TrackDiskSpace
292 { 292 {
293 get => this.Fields[(int)ControlTupleFields.TrackDiskSpace].AsBool(); 293 get => this.Fields[(int)ControlSymbolFields.TrackDiskSpace].AsBool();
294 set => this.Set((int)ControlTupleFields.TrackDiskSpace, value); 294 set => this.Set((int)ControlSymbolFields.TrackDiskSpace, value);
295 } 295 }
296 296
297 public IntermediateFieldPathValue SourceFile 297 public IntermediateFieldPathValue SourceFile
298 { 298 {
299 get => this.Fields[(int)ControlTupleFields.SourceFile].AsPath(); 299 get => this.Fields[(int)ControlSymbolFields.SourceFile].AsPath();
300 set => this.Set((int)ControlTupleFields.SourceFile, value); 300 set => this.Set((int)ControlSymbolFields.SourceFile, value);
301 } 301 }
302 } 302 }
303} \ No newline at end of file 303} \ No newline at end of file