Debian Codegraph @

gui/dialogs/hud.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4 <name>hud</name>
5 <layout>vbox</layout>
6 <padding>20</padding>
7
8 <group>
9 <layout>hbox</layout>
10
11 <text>
12 <label>HUD Configuration</label>
13 </text>
14
15 <empty><stretch>1</stretch></empty>
16
17 <button>
18 <legend>X</legend>
19 <key>Esc</key>
20 <pref-width>20</pref-width>
21 <pref-height>20</pref-height>
22 <binding>
23 <command>dialog-close</command>
24 </binding>
25 </button>
26 </group>
27
28 <hrule/>
29
30 <group>
31 <layout>hbox</layout>
32 <halign>left</halign>
33
34 <!-- only for a gap -->
35 <group>
36 <layout>vbox</layout>
37 <default-padding>1</default-padding>
38 <text>
39 <label> </label>
40 </text>
41 </group>
42
43 <group>
44 <layout>vbox</layout>
45 <halign>left</halign>
46 <checkbox>
47 <label>Enable 3D</label>
48 <halign>left</halign>
49 <property>/sim/hud/enable3d[1]</property>
50 <binding>
51 <command>dialog-apply</command>
52 </binding>
53 </checkbox>
54
55 <checkbox>
56 <label>Transparent</label>
57 <halign>left</halign>
58 <property>/sim/hud/color/transparent</property>
59 <binding>
60 <command>dialog-apply</command>
61 </binding>
62 </checkbox>
63
64 <checkbox>
65 <label>Antialiased</label>
66 <halign>left</halign>
67 <property>/sim/hud/color/antialiased</property>
68 <binding>
69 <command>dialog-apply</command>
70 </binding>
71 </checkbox>
72 </group>
73 </group>
74
75 <hrule/>
76
77 <text>
78 <label>Lat/Lon Format</label>
79 <halign>center</halign>
80 </text>
81
82 <group>
83 <layout>hbox</layout>
84 <halign>left</halign>
85
86 <!-- only for a gap -->
87 <group>
88 <layout>vbox</layout>
89 <default-padding>1</default-padding>
90 <text>
91 <label> </label>
92 </text>
93 </group>
94
95 <group>
96 <layout>vbox</layout>
97 <radio>
98 <halign>left</halign>
99 <property>/sim/gui/dialogs/hud/lon-lat-format-0</property>
100 <value>0</value>
101 <live>true</live>
102 <label>DDD format (37.618890N 122.375000W)</label>
103 <binding>
104 <command>nasal</command>
105 <script>set_radio(0);</script>
106 </binding>
107 </radio>
108 <radio>
109 <halign>left</halign>
110 <property>/sim/gui/dialogs/hud/lon-lat-format-1</property>
111 <value>1</value>
112 <label>DMM format (37*37.133'N 122*22.500'W)</label>
113 <live>true</live>
114 <binding>
115 <command>nasal</command>
116 <script>set_radio(1);</script>
117 </binding>
118 </radio>
119 <radio>
120 <halign>left</halign>
121 <property>/sim/gui/dialogs/hud/lon-lat-format-2</property>
122 <value>2</value>
123 <live>true</live>
124 <label>DMS format (37*37'08.0"N 122*22'30.0"W)</label>
125 <binding>
126 <command>nasal</command>
127 <script>set_radio(2);</script>
128 </binding>
129 </radio>
130 <radio>
131 <halign>left</halign>
132 <property>/sim/gui/dialogs/hud/lon-lat-format-3</property>
133 <value>3</value>
134 <live>true</live>
135 <label>Signed DDD format (37.618890 -122.375000)</label>
136 <binding>
137 <command>nasal</command>
138 <script>set_radio(3);</script>
139 </binding>
140 </radio>
141 <radio>
142 <halign>left</halign>
143 <property>/sim/gui/dialogs/hud/lon-lat-format-4</property>
144 <value>4</value>
145 <live>true</live>
146 <label>Signed DMM format (37*37.133' -122*22.500')</label>
147 <binding>
148 <command>nasal</command>
149 <script>set_radio(4);</script>
150 </binding>
151 </radio>
152 <radio>
153 <halign>left</halign>
154 <property>/sim/gui/dialogs/hud/lon-lat-format-5</property>
155 <value>5</value>
156 <live>true</live>
157 <label>Signed DMS format (37*37'08.0" -122*22'30.0")</label>
158 <binding>
159 <command>nasal</command>
160 <script>set_radio(5);</script>
161 </binding>
162 </radio>
163 <radio>
164 <halign>left</halign>
165 <property>/sim/gui/dialogs/hud/lon-lat-format-6</property>
166 <value>6</value>
167 <live>true</live>
168 <label>Zero padded DDD (51.477500N 000.461389W)</label>
169 <binding>
170 <command>nasal</command>
171 <script>set_radio(6);</script>
172 </binding>
173 </radio>
174 <radio>
175 <halign>left</halign>
176 <property>/sim/gui/dialogs/hud/lon-lat-format-7</property>
177 <value>7</value>
178 <live>true</live>
179 <label>Zero padded DMM (51*28.650'N 000*27.683'W)</label>
180 <binding>
181 <command>nasal</command>
182 <script>set_radio(7);</script>
183 </binding>
184 </radio>
185 <radio>
186 <halign>left</halign>
187 <property>/sim/gui/dialogs/hud/lon-lat-format-8</property>
188 <value>8</value>
189 <live>true</live>
190 <label>Zero padded DMS (51*28'39.0"N 000*27'41.0"W)</label>
191 <binding>
192 <command>nasal</command>
193 <script>set_radio(8);</script>
194 </binding>
195 </radio>
196 <radio>
197 <halign>left</halign>
198 <property>/sim/gui/dialogs/hud/lon-lat-format-9</property>
199 <value>9</value>
200 <live>true</live>
201 <label>Trinity House Navigation (51* 28'.650N 000* 27'.683W)</label>
202 <binding>
203 <command>nasal</command>
204 <script>set_radio(9);</script>
205 </binding>
206 </radio>
207 </group>
208 </group>
209
210 <hrule/>
211
212 <group>
213 <layout>hbox</layout>
214
215 <text>
216 <label> Alpha:</label>
217 </text>
218
219 <empty><stretch>true</stretch></empty>
220
221 <slider>
222 <property>/sim/hud/color/alpha</property>
223 <live>true</live>
224 <binding>
225 <command>dialog-apply</command>
226 </binding>
227 </slider>
228
229 <text>
230 <label> </label>
231 </text>
232
233 </group>
234
235 <group>
236 <name>devel-stuff</name>
237 <layout>hbox</layout>
238 <text>
239 <label> Clamp:</label>
240 </text>
241
242 <empty><stretch>true</stretch></empty>
243
244 <slider>
245 <property>/sim/hud/color/alpha-clamp</property>
246 <live>true</live>
247 <binding>
248 <command>dialog-apply</command>
249 </binding>
250 </slider>
251
252 <text>
253 <label> </label>
254 </text>
255
256 </group>
257
258 <hrule><name>devel-stuff</name></hrule>
259
260 <group>
261 <layout>hbox</layout>
262 <text>
263 <label> Brightness:</label>
264 </text>
265
266 <empty><stretch>true</stretch></empty>
267
268 <slider>
269 <property>/sim/hud/color/brightness</property>
270 <live>true</live>
271 <max>1.5</max>
272 <binding>
273 <command>dialog-apply</command>
274 </binding>
275 </slider>
276
277 <text>
278 <label> </label>
279 </text>
280
281 </group>
282
283 <group>
284 <name>devel-stuff</name>
285 <layout>hbox</layout>
286 <text>
287 <label> Red:</label>
288 </text>
289
290 <empty><stretch>true</stretch></empty>
291
292 <slider>
293 <property>/sim/hud/color/red</property>
294 <live>true</live>
295 <binding>
296 <command>dialog-apply</command>
297 </binding>
298 <color>
299 <red>1.0</red>
300 <green>0.5</green>
301 <blue>0.5</blue>
302 </color>
303 </slider>
304
305 <text>
306 <label> </label>
307 </text>
308
309 </group>
310
311 <group>
312 <name>devel-stuff</name>
313 <layout>hbox</layout>
314 <text>
315 <label> Green:</label>
316 </text>
317
318 <empty><stretch>true</stretch></empty>
319
320 <slider>
321 <property>/sim/hud/color/green</property>
322 <live>true</live>
323 <binding>
324 <command>dialog-apply</command>
325 </binding>
326 <color>
327 <red>0.5</red>
328 <green>1.0</green>
329 <blue>0.5</blue>
330 </color>
331 </slider>
332
333 <text>
334 <label> </label>
335 </text>
336
337 </group>
338
339 <group>
340 <name>devel-stuff</name>
341 <layout>hbox</layout>
342 <text>
343 <label> Blue:</label>
344 </text>
345
346 <empty><stretch>true</stretch></empty>
347
348 <slider>
349 <property>/sim/hud/color/blue</property>
350 <live>true</live>
351 <binding>
352 <command>dialog-apply</command>
353 </binding>
354 <color>
355 <red>0.5</red>
356 <green>0.5</green>
357 <blue>1.0</blue>
358 </color>
359 </slider>
360
361 <text>
362 <label> </label>
363 </text>
364
365 </group>
366
367 <hrule/>
368
369 <button>
370 <legend>Close</legend>
371 <default>true</default>
372 <key>Esc</key>
373 <binding>
374 <command>dialog-close</command>
375 </binding>
376 </button>
377
378 <nasal>
379 <open><![CDATA[
380 gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
381 var radios = cmdarg().getChildren("group")[2].getChildren("group")[1].getChildren("radio");
382 var set_radio = func(n) {
383 for (var i = 0; i < size(radios); i +=1) {
384 var prop = radios[i].getChild("property").getValue();
385 setprop(prop, (n == radios[i].getChild("value").getValue()));
386 }
387
388 setprop("/sim/lon-lat-format", n);
389 }
390
391 set_radio(getprop("/sim/lon-lat-format"));
392 ]]>
393 </open>
394 </nasal>
395 </PropertyList>