aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ControlTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/ControlTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/ControlTuple.cs173
1 files changed, 172 insertions, 1 deletions
diff --git a/src/WixToolset.Data/Tuples/ControlTuple.cs b/src/WixToolset.Data/Tuples/ControlTuple.cs
index 82de917c..f77c3689 100644
--- a/src/WixToolset.Data/Tuples/ControlTuple.cs
+++ b/src/WixToolset.Data/Tuples/ControlTuple.cs
@@ -18,10 +18,20 @@ namespace WixToolset.Data
18 new IntermediateFieldDefinition(nameof(ControlTupleFields.Width), IntermediateFieldType.Number), 18 new IntermediateFieldDefinition(nameof(ControlTupleFields.Width), IntermediateFieldType.Number),
19 new IntermediateFieldDefinition(nameof(ControlTupleFields.Height), IntermediateFieldType.Number), 19 new IntermediateFieldDefinition(nameof(ControlTupleFields.Height), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(ControlTupleFields.Attributes), IntermediateFieldType.Number), 20 new IntermediateFieldDefinition(nameof(ControlTupleFields.Attributes), IntermediateFieldType.Number),
21 new IntermediateFieldDefinition(nameof(ControlTupleFields.Enabled), IntermediateFieldType.Bool),
22 new IntermediateFieldDefinition(nameof(ControlTupleFields.Indirect), IntermediateFieldType.Bool),
23 new IntermediateFieldDefinition(nameof(ControlTupleFields.Integer), IntermediateFieldType.Bool),
24 new IntermediateFieldDefinition(nameof(ControlTupleFields.LeftScroll), IntermediateFieldType.Bool),
25 new IntermediateFieldDefinition(nameof(ControlTupleFields.RightAligned), IntermediateFieldType.Bool),
26 new IntermediateFieldDefinition(nameof(ControlTupleFields.RightToLeft), IntermediateFieldType.Bool),
27 new IntermediateFieldDefinition(nameof(ControlTupleFields.Sunken), IntermediateFieldType.Bool),
28 new IntermediateFieldDefinition(nameof(ControlTupleFields.Visible), IntermediateFieldType.Bool),
21 new IntermediateFieldDefinition(nameof(ControlTupleFields.Property), IntermediateFieldType.String), 29 new IntermediateFieldDefinition(nameof(ControlTupleFields.Property), IntermediateFieldType.String),
22 new IntermediateFieldDefinition(nameof(ControlTupleFields.Text), IntermediateFieldType.String), 30 new IntermediateFieldDefinition(nameof(ControlTupleFields.Text), IntermediateFieldType.String),
23 new IntermediateFieldDefinition(nameof(ControlTupleFields.Control_Next), IntermediateFieldType.String), 31 new IntermediateFieldDefinition(nameof(ControlTupleFields.Control_Next), IntermediateFieldType.String),
24 new IntermediateFieldDefinition(nameof(ControlTupleFields.Help), IntermediateFieldType.String), 32 new IntermediateFieldDefinition(nameof(ControlTupleFields.Help), IntermediateFieldType.String),
33 new IntermediateFieldDefinition(nameof(ControlTupleFields.TrackDiskSpace), IntermediateFieldType.Bool),
34 new IntermediateFieldDefinition(nameof(ControlTupleFields.SourceFile), IntermediateFieldType.Path),
25 }, 35 },
26 typeof(ControlTuple)); 36 typeof(ControlTuple));
27 } 37 }
@@ -39,10 +49,20 @@ namespace WixToolset.Data.Tuples
39 Width, 49 Width,
40 Height, 50 Height,
41 Attributes, 51 Attributes,
52 Enabled,
53 Indirect,
54 Integer,
55 LeftScroll,
56 RightAligned,
57 RightToLeft,
58 Sunken,
59 Visible,
42 Property, 60 Property,
43 Text, 61 Text,
44 Control_Next, 62 Control_Next,
45 Help, 63 Help,
64 TrackDiskSpace,
65 SourceFile,
46 } 66 }
47 67
48 public class ControlTuple : IntermediateTuple 68 public class ControlTuple : IntermediateTuple
@@ -101,10 +121,149 @@ namespace WixToolset.Data.Tuples
101 121
102 public int Attributes 122 public int Attributes
103 { 123 {
104 get => (int)this.Fields[(int)ControlTupleFields.Attributes]?.Value; 124 get => this.Fields[(int)ControlTupleFields.Attributes].AsNumber();
105 set => this.Set((int)ControlTupleFields.Attributes, value); 125 set => this.Set((int)ControlTupleFields.Attributes, value);
106 } 126 }
107 127
128 public bool Enabled
129 {
130 get => this.Fields[(int)ControlTupleFields.Enabled].AsBool();
131 set => this.Set((int)ControlTupleFields.Enabled, value);
132 }
133
134 public bool Indirect
135 {
136 get => this.Fields[(int)ControlTupleFields.Indirect].AsBool();
137 set => this.Set((int)ControlTupleFields.Indirect, value);
138 }
139
140 public bool Integer
141 {
142 get => this.Fields[(int)ControlTupleFields.Integer].AsBool();
143 set => this.Set((int)ControlTupleFields.Integer, value);
144 }
145 /*
146 /// <summary>PictureButton control</summary>
147 public bool Bitmap
148 {
149 get => this.Fields[(int)ControlTupleFields.Bitmap].AsBool();
150 set => this.Set((int)ControlTupleFields.Bitmap, value);
151 }
152
153 /// <summary>RadioButton control</summary>
154 public bool Border
155 {
156 get => this.Fields[(int)ControlTupleFields.Border].AsBool();
157 set => this.Set((int)ControlTupleFields.Border, value);
158 }
159
160 /// <summary>ListBox and ComboBox control</summary>
161 public bool ComboList
162 {
163 get => this.Fields[(int)ControlTupleFields.ComboList].AsBool();
164 set => this.Set((int)ControlTupleFields.ComboList, value);
165 }
166
167 /// <summary>PushButton control</summary>
168 public bool ElevationShield
169 {
170 get => this.Fields[(int)ControlTupleFields.ElevationShield].AsBool();
171 set => this.Set((int)ControlTupleFields.ElevationShield, value);
172 }
173
174 /// <summary>PictureButton control</summary>
175 public bool FixedSize
176 {
177 get => this.Fields[(int)ControlTupleFields.FixedSize].AsBool();
178 set => this.Set((int)ControlTupleFields.FixedSize, value);
179 }
180
181 /// <summary>PictureButton control</summary>
182 public bool Icon
183 {
184 get => this.Fields[(int)ControlTupleFields.Icon].AsBool();
185 set => this.Set((int)ControlTupleFields.Icon, value);
186 }
187
188 /// <summary>PictureButton control</summary>
189 public bool Icon16
190 {
191 get => this.Fields[(int)ControlTupleFields.Icon16].AsBool();
192 set => this.Set((int)ControlTupleFields.Icon16, value);
193 }
194
195 /// <summary>PictureButton control</summary>
196 public bool Icon32
197 {
198 get => this.Fields[(int)ControlTupleFields.Icon32].AsBool();
199 set => this.Set((int)ControlTupleFields.Icon32, value);
200 }
201
202 /// <summary>PictureButton control</summary>
203 public bool Icon48
204 {
205 get => this.Fields[(int)ControlTupleFields.Icon48].AsBool();
206 set => this.Set((int)ControlTupleFields.Icon48, value);
207 }
208 */
209 public bool LeftScroll
210 {
211 get => this.Fields[(int)ControlTupleFields.LeftScroll].AsBool();
212 set => this.Set((int)ControlTupleFields.LeftScroll, value);
213 }
214 /*
215 /// <summary>PictureButton control</summary>
216 public bool PushLike
217 {
218 get => this.Fields[(int)ControlTupleFields.PushLike].AsBool();
219 set => this.Set((int)ControlTupleFields.PushLike, value);
220 }
221
222 /// <summary>Edit control</summary>
223 public bool Mulitline
224 {
225 get => this.Fields[(int)ControlTupleFields.Mulitline].AsBool();
226 set => this.Set((int)ControlTupleFields.Mulitline, value);
227 }
228 */
229 public bool RightAligned
230 {
231 get => this.Fields[(int)ControlTupleFields.RightAligned].AsBool();
232 set => this.Set((int)ControlTupleFields.RightAligned, value);
233 }
234
235 public bool RightToLeft
236 {
237 get => this.Fields[(int)ControlTupleFields.RightToLeft].AsBool();
238 set => this.Set((int)ControlTupleFields.RightToLeft, value);
239 }
240 /*
241 /// <summary>VolumeCostList control</summary>
242 public bool ShowRollbackCost
243 {
244 get => this.Fields[(int)ControlTupleFields.ShowRollbackCost].AsBool();
245 set => this.Set((int)ControlTupleFields.ShowRollbackCost, value);
246 }
247
248 /// <summary>ListBox and ComboBox control</summary>
249 public bool Sorted
250 {
251 get => this.Fields[(int)ControlTupleFields.Sorted].AsBool();
252 set => this.Set((int)ControlTupleFields.Sorted, value);
253 }
254 */
255 public bool Sunken
256 {
257 get => this.Fields[(int)ControlTupleFields.Sunken].AsBool();
258 set => this.Set((int)ControlTupleFields.Sunken, value);
259 }
260
261 public bool Visible
262 {
263 get => this.Fields[(int)ControlTupleFields.Visible].AsBool();
264 set => this.Set((int)ControlTupleFields.Visible, value);
265 }
266
108 public string Property 267 public string Property
109 { 268 {
110 get => (string)this.Fields[(int)ControlTupleFields.Property]?.Value; 269 get => (string)this.Fields[(int)ControlTupleFields.Property]?.Value;
@@ -128,5 +287,17 @@ namespace WixToolset.Data.Tuples
128 get => (string)this.Fields[(int)ControlTupleFields.Help]?.Value; 287 get => (string)this.Fields[(int)ControlTupleFields.Help]?.Value;
129 set => this.Set((int)ControlTupleFields.Help, value); 288 set => this.Set((int)ControlTupleFields.Help, value);
130 } 289 }
290
291 public bool TrackDiskSpace
292 {
293 get => this.Fields[(int)ControlTupleFields.TrackDiskSpace].AsBool();
294 set => this.Set((int)ControlTupleFields.TrackDiskSpace, value);
295 }
296
297 public string SourceFile
298 {
299 get => (string)this.Fields[(int)ControlTupleFields.SourceFile]?.Value;
300 set => this.Set((int)ControlTupleFields.SourceFile, value);
301 }
131 } 302 }
132} \ No newline at end of file 303} \ No newline at end of file