Debian Codegraph @

gui/dialogs/location-of-tower.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <PropertyList>
3 <name>location-of-tower</name>
4 <layout>vbox</layout>
5
6
7 <group>
8 <layout>hbox</layout>
9
10 <text>
11 <label>Tower Position</label>
12 </text>
13
14 <empty><stretch>1</stretch></empty>
15
16 <button>
17 <legend>X</legend>
18 <key>Esc</key>
19 <pref-width>20</pref-width>
20 <pref-height>20</pref-height>
21 <binding>
22 <command>dialog-close</command>
23 </binding>
24 </button>
25 </group>
26
27 <hrule/>
28
29 <text>
30 <label> Select Position of Tower for the Tower Views </label>
31 </text>
32
33 <group>
34 <layout>table</layout>
35
36 <checkbox>
37 <name>auto-tower</name>
38 <row>0</row>
39 <col>0</col>
40 <colspan>2</colspan>
41 <label>Always use nearest tower</label>
42 <property>/sim/tower/auto-position</property>
43 <live>true</live>
44 <binding>
45 <command>dialog-apply</command>
46 <object-name>auto-tower</object-name>
47 </binding>
48 </checkbox>
49
50 <text>
51 <visible>
52 <property>/sim/tower/auto-position</property>
53 </visible>
54 <row>0</row>
55 <col>2</col>
56 <halign>right</halign>
57 <label>xxxxxxxx</label>
58 <live>true</live>
59 <format>(%s)</format>
60 <property>/sim/tower/airport-id</property>
61 </text>
62
63 <text>
64 <row>1</row>
65 <col>0</col>
66 <halign>right</halign>
67 <label>Airport ID:</label>
68 <visible>
69 <not>
70 <property>/sim/tower/auto-position</property>
71 </not>
72 </visible>
73 </text>
74 <input>
75 <name>airport-id</name>
76 <row>1</row>
77 <col>1</col>
78 <property>/sim/tower/airport-id</property>
79 <enable>
80 <not>
81 <property>/sim/tower/auto-position</property>
82 </not>
83 </enable>
84 <visible>
85 <not>
86 <property>/sim/tower/auto-position</property>
87 </not>
88 </visible>
89 </input>
90 <empty>
91 <row>0</row>
92 <col>3</col>
93 <stretch>true</stretch>
94 </empty>
95
96 <!-- Commented out because the /instrumentation/comm[%d]/airport-id
97 are not filled in on the COM radio retuning... -->
98
99 <button>
100 <enable>
101 <and>
102 <not>
103 <property>sim/tower/auto-position</property>
104 </not>
105 <property>/instrumentation/comm[0]/serviceable</property>
106 <greater-than>
107 <property>/instrumentation/comm[0]/signal-quality-norm</property>
108 <property>/instrumentation/comm[0]/cutoff-signal-quality</property>
109 </greater-than>
110 </and>
111 </enable>
112 <row>2</row><col>0</col>
113 <legend>COM1</legend>
114 <binding>
115 <command>property-assign</command>
116 <property>/sim/tower/airport-id</property>
117 <property>/instrumentation/comm[0]/airport-id</property>
118 </binding>
119 <binding>
120 <command>dialog-update</command>
121 <object-name>airport-id</object-name>
122 </binding>
123 </button>
124 <text>
125 <live>true</live>
126 <visible>
127 <and>
128 <property>/instrumentation/comm[0]/serviceable</property>
129 <greater-than>
130 <property>/instrumentation/comm[0]/signal-quality-norm</property>
131 <property>/instrumentation/comm[0]/cutoff-signal-quality</property>
132 </greater-than>
133 </and>
134 </visible>
135 <row>2</row><col>2</col>
136 <property>/instrumentation/comm[0]/frequencies/selected-mhz</property>
137 <label>MHz</label>
138 <format>%-0.2f</format>
139 </text>
140 <text>
141 <live>true</live>
142 <visible>
143 <and>
144 <property>/instrumentation/comm[0]/serviceable</property>
145 <greater-than>
146 <property>/instrumentation/comm[0]/signal-quality-norm</property>
147 <property>/instrumentation/comm[0]/cutoff-signal-quality</property>
148 </greater-than>
149 </and>
150 </visible>
151 <row>2</row><col>1</col>
152 <property>/instrumentation/comm[0]/airport-id</property>
153 </text>
154 <empty>
155 <row>2</row><col>3</col>
156 <stretch>true</stretch>
157 </empty>
158
159 <button>
160 <enable>
161 <and>
162 <not>
163 <property>sim/tower/auto-position</property>
164 </not>
165 <property>/instrumentation/comm[1]/serviceable</property>
166 <greater-than>
167 <property>/instrumentation/comm[1]/signal-quality-norm</property>
168 <property>/instrumentation/comm[1]/cutoff-signal-quality</property>
169 </greater-than>
170 </and>
171 </enable>
172 <row>3</row><col>0</col>
173 <legend>COM2</legend>
174 <binding>
175 <command>property-assign</command>
176 <property>/sim/tower/airport-id</property>
177 <property>/instrumentation/comm[1]/airport-id</property>
178 </binding>
179 <binding>
180 <command>dialog-update</command>
181 <object-name>airport-id</object-name>
182 </binding>
183 </button>
184 <text>
185 <live>true</live>
186 <visible>
187 <and>
188 <property>/instrumentation/comm[1]/serviceable</property>
189 <greater-than>
190 <property>/instrumentation/comm[1]/signal-quality-norm</property>
191 <property>/instrumentation/comm[1]/cutoff-signal-quality</property>
192 </greater-than>
193 </and>
194 </visible>
195 <row>3</row><col>2</col>
196 <property>/instrumentation/comm[1]/frequencies/selected-mhz</property>
197 <label>MHz</label>
198 <format>%-0.2f</format>
199 </text>
200 <text>
201 <live>true</live>
202 <visible>
203 <and>
204 <property>/instrumentation/comm[1]/serviceable</property>
205 <greater-than>
206 <property>/instrumentation/comm[1]/signal-quality-norm</property>
207 <property>/instrumentation/comm[1]/cutoff-signal-quality</property>
208 </greater-than>
209 <property>/instrumentation/comm[1]/power-btn</property>
210 <greater-than>
211 <property>/instrumentation/comm[1]/power-good</property>
212 <value>0</value>
213 </greater-than>
214 </and>
215 </visible>
216 <row>3</row><col>1</col>
217 <property>/instrumentation/comm[1]/airport-id</property>
218 </text>
219 <empty>
220 <row>3</row><col>3</col>
221 <stretch>true</stretch>
222 </empty>
223
224 <button>
225 <legend>Preset</legend>
226 <row>4</row>
227 <col>0</col>
228 <!--
229 Is there a way in the GUI (other than via a dynamic
230 NASAL dialog) to assign text to the widget rather
231 than to the underlying property and doing an update?
232
233 The way it is now CANCEL doesn't undo PRESET :-(
234 -->
235 <enable>
236 <not><property>sim/tower/auto-position</property></not>
237 </enable>
238 <binding>
239 <command>property-assign</command>
240 <property>/sim/tower/airport-id</property>
241 <property>/sim/presets/airport-id</property>
242 </binding>
243 <binding>
244 <command>dialog-update</command>
245 <object-name>airport-id</object-name>
246 </binding>
247 </button>
248 <text>
249 <row>4</row>
250 <col>1</col>
251 <property>/sim/presets/airport-id</property>
252 </text>
253 <empty>
254 <row>4</row>
255 <col>3</col>
256 <stretch>true</stretch>
257 </empty>
258 </group>
259
260 <hrule/>
261
262 <group>
263 <layout>hbox</layout>
264 <default-padding>10</default-padding>
265 <empty><stretch>true</stretch></empty>
266
267 <button>
268 <legend>OK</legend>
269 <default>true</default>
270 <equal>true</equal>
271 <binding>
272 <command>dialog-apply</command>
273 </binding>
274 <binding>
275 <command>dialog-close</command>
276 </binding>
277 </button>
278
279 <empty><stretch>true</stretch></empty>
280
281 <button>
282 <legend>Cancel</legend>
283 <equal>true</equal>
284 <key>Esc</key>
285 <binding>
286 <command>dialog-close</command>
287 </binding>
288 </button>
289
290 <empty><stretch>true</stretch></empty>
291 </group>
292 </PropertyList>