diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/DialogTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/DialogTuple.cs | 98 |
1 files changed, 85 insertions, 13 deletions
diff --git a/src/WixToolset.Data/Tuples/DialogTuple.cs b/src/WixToolset.Data/Tuples/DialogTuple.cs index b8bb2361..d66c3b19 100644 --- a/src/WixToolset.Data/Tuples/DialogTuple.cs +++ b/src/WixToolset.Data/Tuples/DialogTuple.cs | |||
@@ -10,12 +10,21 @@ namespace WixToolset.Data | |||
10 | TupleDefinitionType.Dialog, | 10 | TupleDefinitionType.Dialog, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Dialog), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(DialogTupleFields.HCentering), IntermediateFieldType.Number), | 13 | new IntermediateFieldDefinition(nameof(DialogTupleFields.HCentering), IntermediateFieldType.Number), |
15 | new IntermediateFieldDefinition(nameof(DialogTupleFields.VCentering), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(DialogTupleFields.VCentering), IntermediateFieldType.Number), |
16 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Width), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Width), IntermediateFieldType.Number), |
17 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Height), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Height), IntermediateFieldType.Number), |
18 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Attributes), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(DialogTupleFields.CustomPalette), IntermediateFieldType.Bool), |
18 | new IntermediateFieldDefinition(nameof(DialogTupleFields.ErrorDialog), IntermediateFieldType.Bool), | ||
19 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Visible), IntermediateFieldType.Bool), | ||
20 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Modal), IntermediateFieldType.Bool), | ||
21 | new IntermediateFieldDefinition(nameof(DialogTupleFields.KeepModeless), IntermediateFieldType.Bool), | ||
22 | new IntermediateFieldDefinition(nameof(DialogTupleFields.LeftScroll), IntermediateFieldType.Bool), | ||
23 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Minimize), IntermediateFieldType.Bool), | ||
24 | new IntermediateFieldDefinition(nameof(DialogTupleFields.RightAligned), IntermediateFieldType.Bool), | ||
25 | new IntermediateFieldDefinition(nameof(DialogTupleFields.RightToLeft), IntermediateFieldType.Bool), | ||
26 | new IntermediateFieldDefinition(nameof(DialogTupleFields.SystemModal), IntermediateFieldType.Bool), | ||
27 | new IntermediateFieldDefinition(nameof(DialogTupleFields.TrackDiskSpace), IntermediateFieldType.Bool), | ||
19 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Title), IntermediateFieldType.String), | 28 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Title), IntermediateFieldType.String), |
20 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Control_First), IntermediateFieldType.String), | 29 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Control_First), IntermediateFieldType.String), |
21 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Control_Default), IntermediateFieldType.String), | 30 | new IntermediateFieldDefinition(nameof(DialogTupleFields.Control_Default), IntermediateFieldType.String), |
@@ -29,12 +38,21 @@ namespace WixToolset.Data.Tuples | |||
29 | { | 38 | { |
30 | public enum DialogTupleFields | 39 | public enum DialogTupleFields |
31 | { | 40 | { |
32 | Dialog, | ||
33 | HCentering, | 41 | HCentering, |
34 | VCentering, | 42 | VCentering, |
35 | Width, | 43 | Width, |
36 | Height, | 44 | Height, |
37 | Attributes, | 45 | CustomPalette, |
46 | ErrorDialog, | ||
47 | Visible, | ||
48 | Modal, | ||
49 | KeepModeless, | ||
50 | LeftScroll, | ||
51 | Minimize, | ||
52 | RightAligned, | ||
53 | RightToLeft, | ||
54 | SystemModal, | ||
55 | TrackDiskSpace, | ||
38 | Title, | 56 | Title, |
39 | Control_First, | 57 | Control_First, |
40 | Control_Default, | 58 | Control_Default, |
@@ -53,12 +71,6 @@ namespace WixToolset.Data.Tuples | |||
53 | 71 | ||
54 | public IntermediateField this[DialogTupleFields index] => this.Fields[(int)index]; | 72 | public IntermediateField this[DialogTupleFields index] => this.Fields[(int)index]; |
55 | 73 | ||
56 | public string Dialog | ||
57 | { | ||
58 | get => (string)this.Fields[(int)DialogTupleFields.Dialog]?.Value; | ||
59 | set => this.Set((int)DialogTupleFields.Dialog, value); | ||
60 | } | ||
61 | |||
62 | public int HCentering | 74 | public int HCentering |
63 | { | 75 | { |
64 | get => (int)this.Fields[(int)DialogTupleFields.HCentering]?.Value; | 76 | get => (int)this.Fields[(int)DialogTupleFields.HCentering]?.Value; |
@@ -83,10 +95,70 @@ namespace WixToolset.Data.Tuples | |||
83 | set => this.Set((int)DialogTupleFields.Height, value); | 95 | set => this.Set((int)DialogTupleFields.Height, value); |
84 | } | 96 | } |
85 | 97 | ||
86 | public int Attributes | 98 | public bool CustomPalette |
99 | { | ||
100 | get => this.Fields[(int)DialogTupleFields.CustomPalette].AsBool(); | ||
101 | set => this.Set((int)DialogTupleFields.CustomPalette, value); | ||
102 | } | ||
103 | |||
104 | public bool ErrorDialog | ||
105 | { | ||
106 | get => this.Fields[(int)DialogTupleFields.ErrorDialog].AsBool(); | ||
107 | set => this.Set((int)DialogTupleFields.ErrorDialog, value); | ||
108 | } | ||
109 | |||
110 | public bool Visible | ||
111 | { | ||
112 | get => this.Fields[(int)DialogTupleFields.Visible].AsBool(); | ||
113 | set => this.Set((int)DialogTupleFields.Visible, value); | ||
114 | } | ||
115 | |||
116 | public bool Modal | ||
117 | { | ||
118 | get => this.Fields[(int)DialogTupleFields.Modal].AsBool(); | ||
119 | set => this.Set((int)DialogTupleFields.Modal, value); | ||
120 | } | ||
121 | |||
122 | public bool KeepModeless | ||
123 | { | ||
124 | get => this.Fields[(int)DialogTupleFields.KeepModeless].AsBool(); | ||
125 | set => this.Set((int)DialogTupleFields.KeepModeless, value); | ||
126 | } | ||
127 | |||
128 | public bool LeftScroll | ||
129 | { | ||
130 | get => this.Fields[(int)DialogTupleFields.LeftScroll].AsBool(); | ||
131 | set => this.Set((int)DialogTupleFields.LeftScroll, value); | ||
132 | } | ||
133 | |||
134 | public bool Minimize | ||
135 | { | ||
136 | get => this.Fields[(int)DialogTupleFields.Minimize].AsBool(); | ||
137 | set => this.Set((int)DialogTupleFields.Minimize, value); | ||
138 | } | ||
139 | |||
140 | public bool RightAligned | ||
141 | { | ||
142 | get => this.Fields[(int)DialogTupleFields.RightAligned].AsBool(); | ||
143 | set => this.Set((int)DialogTupleFields.RightAligned, value); | ||
144 | } | ||
145 | |||
146 | public bool RightToLeft | ||
147 | { | ||
148 | get => this.Fields[(int)DialogTupleFields.RightToLeft].AsBool(); | ||
149 | set => this.Set((int)DialogTupleFields.RightToLeft, value); | ||
150 | } | ||
151 | |||
152 | public bool TrackDiskSpace | ||
153 | { | ||
154 | get => this.Fields[(int)DialogTupleFields.TrackDiskSpace].AsBool(); | ||
155 | set => this.Set((int)DialogTupleFields.TrackDiskSpace, value); | ||
156 | } | ||
157 | |||
158 | public bool SystemModal | ||
87 | { | 159 | { |
88 | get => (int)this.Fields[(int)DialogTupleFields.Attributes]?.Value; | 160 | get => this.Fields[(int)DialogTupleFields.SystemModal].AsBool(); |
89 | set => this.Set((int)DialogTupleFields.Attributes, value); | 161 | set => this.Set((int)DialogTupleFields.SystemModal, value); |
90 | } | 162 | } |
91 | 163 | ||
92 | public string Title | 164 | public string Title |