Debian Codegraph @

Aircraft/c172p/gui/dialogs/c172p-ground-equipment.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!-- c172p
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
13 -->
14
15 <PropertyList>
16
17 <name>ground-operations</name>
18 <layout>vbox</layout>
19 <resizable>false</resizable>
20 <modal>false</modal>
21 <draggable>true</draggable>
22
23 <group>
24 <layout>hbox</layout>
25 <empty><stretch>true</stretch></empty>
26 <text>
27 <label>Ground Operations</label>
28 </text>
29 <empty><stretch>true</stretch></empty>
30 <button>
31 <legend>X</legend>
32 <key>Esc</key>
33 <halign>right</halign>
34 <pref-width>20</pref-width>
35 <pref-height>20</pref-height>
36 <binding>
37 <command>dialog-close</command>
38 </binding>
39 </button>
40 </group>
41
42 <hrule/>
43
44 <group>
45 <layout>vbox</layout>
46 <padding>6</padding>
47 <checkbox>
48 <halign>left</halign>
49 <label>Install Cowl Grill</label>
50 <property>/engines/active-engine/winter-kit-installed</property>
51 <live>true</live>
52 <enable>
53 <and>
54 <not>
55 <property>/sim/freeze/replay-state</property>
56 </not>
57 <not>
58 <property>controls/switches/magnetos</property>
59 </not>
60 <not>
61 <property>controls/switches/master-bat</property>
62 </not>
63 <not>
64 <property>controls/switches/master-alt</property>
65 </not>
66 <not>
67 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
68 </not>
69 </and>
70 </enable>
71 <binding>
72 <command>property-toggle</command>
73 <property>/engines/active-engine/winter-kit-installed</property>
74 </binding>
75 <binding>
76 <command>dialog-update</command>
77 </binding>
78 </checkbox>
79
80 <checkbox>
81 <halign>left</halign>
82 <label>Attach Towbar</label>
83 <property>/fdm/jsbsim/external_reactions/towbar/attached</property>
84 <live>true</live>
85 <binding>
86 <command>property-toggle</command>
87 <property>/fdm/jsbsim/external_reactions/towbar/attached</property>
88 </binding>
89 <binding>
90 <command>property-assign</command>
91 <property>/fdm/jsbsim/external_reactions/towbar/steer-deg</property>
92 <value>0</value>
93 </binding>
94 <binding>
95 <command>dialog-update</command><!-- makes sure that command is still there when dialog is closed-->
96 </binding>
97 <enable>
98 <and>
99 <property>gear/gear[0]/wow</property>
100 <less-than>
101 <property>velocities/groundspeed-kt</property>
102 <value>1.0</value>
103 </less-than>
104 <less-than>
105 <property>/engines/engine/thruster/rpm</property>
106 <value>0.01</value>
107 </less-than>
108 </and>
109 </enable>
110 </checkbox>
111
112 <hrule/>
113
114 <group>
115 <layout>hbox</layout>
116 <text>
117 <label>Secure Aircraft</label>
118 </text>
119 </group>
120 <checkbox>
121 <halign>left</halign>
122 <label>Place control lock</label>
123 <property>sim/model/c172p/cockpit/control-lock-placed</property>
124 <live>true</live>
125 <binding>
126 <command>property-toggle</command>
127 <property>sim/model/c172p/cockpit/control-lock-placed</property>
128 </binding>
129 <binding>
130 <command>dialog-update</command>
131 </binding>
132 </checkbox>
133
134 <checkbox>
135 <halign>left</halign>
136 <label>Put cowl plugs</label>
137 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
138 <live>true</live>
139 <enable>
140 <and>
141 <not>
142 <property>/sim/freeze/replay-state</property>
143 </not>
144 <not>
145 <property>controls/switches/magnetos</property>
146 </not>
147 <not>
148 <property>controls/switches/master-bat</property>
149 </not>
150 <not>
151 <property>controls/switches/master-alt</property>
152 </not>
153 <not>
154 <property>/engines/active-engine/winter-kit-installed</property>
155 </not>
156 </and>
157 </enable>
158 <binding>
159 <command>property-toggle</command>
160 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
161 </binding>
162 <binding>
163 <command>dialog-update</command>
164 </binding>
165 </checkbox>
166
167 <checkbox>
168 <halign>left</halign>
169 <label>Cover pitot tube</label>
170 <property>/sim/model/c172p/securing/pitot-cover-visible</property>
171 <live>true</live>
172 <enable>
173 <less-than>
174 <property>velocities/groundspeed-kt</property>
175 <value>1.0</value>
176 </less-than>
177 </enable>
178 <binding>
179 <command>property-toggle</command>
180 <property>/sim/model/c172p/securing/pitot-cover-visible</property>
181 </binding>
182 <binding>
183 <command>dialog-update</command>
184 </binding>
185 </checkbox>
186
187 <checkbox>
188 <halign>left</halign>
189 <label>Enable wheel chocks</label>
190 <property>/sim/model/c172p/securing/chock</property>
191 <live>true</live>
192 <enable>
193 <property>/sim/model/c172p/securing/chock-can-have</property>
194 </enable>
195 <binding>
196 <command>property-toggle</command>
197 <property>/sim/model/c172p/securing/chock</property>
198 </binding>
199 <binding>
200 <command>dialog-update</command>
201 </binding>
202 </checkbox>
203
204 <checkbox>
205 <halign>left</halign>
206 <label>Enable left tie-down</label>
207 <property>/sim/model/c172p/securing/tiedownL-visible</property>
208 <live>true</live>
209 <enable>
210 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
211 </enable>
212 <binding>
213 <command>property-toggle</command>
214 <property>/sim/model/c172p/securing/tiedownL-visible</property>
215 </binding>
216 <binding>
217 <command>dialog-update</command>
218 </binding>
219 <binding>
220 <command>nasal</command>
221 <script>
222 if (getprop("/sim/model/c172p/securing/tiedownL-visible"))
223 setprop("/sim/model/c172p/securing/tiedownL", 1);
224 else
225 setprop("/sim/model/c172p/securing/tiedownL", 0);
226 </script>
227 </binding>
228 </checkbox>
229
230 <checkbox>
231 <halign>left</halign>
232 <label>Enable right tie-down</label>
233 <property>/sim/model/c172p/securing/tiedownR-visible</property>
234 <live>true</live>
235 <enable>
236 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
237 </enable>
238 <binding>
239 <command>property-toggle</command>
240 <property>/sim/model/c172p/securing/tiedownR-visible</property>
241 </binding>
242 <binding>
243 <command>dialog-update</command>
244 </binding>
245 <binding>
246 <command>nasal</command>
247 <script>
248 if (getprop("/sim/model/c172p/securing/tiedownR-visible"))
249 setprop("/sim/model/c172p/securing/tiedownR", 1);
250 else
251 setprop("/sim/model/c172p/securing/tiedownR", 0);
252 </script>
253 </binding>
254 </checkbox>
255
256 <checkbox>
257 <halign>left</halign>
258 <label>Enable tail tie-down</label>
259 <property>/sim/model/c172p/securing/tiedownT-visible</property>
260 <live>true</live>
261 <enable>
262 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
263 </enable>
264 <binding>
265 <command>property-toggle</command>
266 <property>/sim/model/c172p/securing/tiedownT-visible</property>
267 </binding>
268 <binding>
269 <command>dialog-update</command>
270 </binding>
271 <binding>
272 <command>nasal</command>
273 <script>
274 if (getprop("/sim/model/c172p/securing/tiedownT-visible"))
275 setprop("/sim/model/c172p/securing/tiedownT", 1);
276 else
277 setprop("/sim/model/c172p/securing/tiedownT", 0);
278 </script>
279 </binding>
280 </checkbox>
281
282 <hrule/>
283
284 <group>
285 <layout>hbox</layout>
286 <text>
287 <label>Ground Equipment</label>
288 </text>
289 </group>
290 <checkbox>
291 <halign>left</halign>
292 <label>Place left ladder </label>
293 <live>true</live>
294 <property>/sim/ladderL/enable</property>
295 <enable>
296 <less-than>
297 <property>velocities/groundspeed-kt</property>
298 <value>0.1</value>
299 </less-than>
300 </enable>
301 <binding>
302 <command>property-toggle</command>
303 <property>/sim/ladderL/enable</property>
304 </binding>
305 <binding>
306 <command>dialog-update</command>
307 </binding>
308 </checkbox>
309 <checkbox>
310 <halign>left</halign>
311 <label>Place right ladder </label>
312 <live>true</live>
313 <property>/sim/ladderR/enable</property>
314 <enable>
315 <less-than>
316 <property>velocities/groundspeed-kt</property>
317 <value>0.1</value>
318 </less-than>
319 </enable>
320 <binding>
321 <command>property-toggle</command>
322 <property>/sim/ladderR/enable</property>
323 </binding>
324 <binding>
325 <command>dialog-update</command>
326 </binding>
327 </checkbox>
328
329 <!--group>
330 <layout>hbox</layout>
331 <padding>6</padding>
332 <hrule/>
333 </group-->
334
335 <checkbox>
336 <halign>left</halign>
337 <label>Place left safety cone</label>
338 <live>true</live>
339 <property>/sim/coneL/enable</property>
340 <enable>
341 <less-than>
342 <property>velocities/groundspeed-kt</property>
343 <value>0.1</value>
344 </less-than>
345 </enable>
346 <binding>
347 <command>property-toggle</command>
348 <property>/sim/coneL/enable</property>
349 </binding>
350 <binding>
351 <command>dialog-update</command>
352 </binding>
353 </checkbox>
354
355 <checkbox>
356 <halign>left</halign>
357 <label>Place right safety cone</label>
358 <live>true</live>
359 <property>/sim/coneR/enable</property>
360 <enable>
361 <less-than>
362 <property>velocities/groundspeed-kt</property>
363 <value>0.1</value>
364 </less-than>
365 </enable>
366 <binding>
367 <command>property-toggle</command>
368 <property>/sim/coneR/enable</property>
369 </binding>
370 <binding>
371 <command>dialog-update</command>
372 </binding>
373 </checkbox>
374
375 <!--group>
376 <layout>hbox</layout>
377 <padding>6</padding>
378 <hrule/>
379 </group-->
380
381 <checkbox>
382 <halign>left</halign>
383 <label>Place Ground Power Unit</label>
384 <live>true</live>
385 <property>/sim/gpu/enable</property>
386 <enable>
387 <less-than>
388 <property>velocities/groundspeed-kt</property>
389 <value>0.1</value>
390 </less-than>
391 </enable>
392 <binding>
393 <command>property-toggle</command>
394 <property>/sim/gpu/enable</property>
395 </binding>
396 <binding>
397 <command>nasal</command>
398 <script>
399 if (!getprop("/sim/gpu/enable")) setprop("/controls/electric/external-power", 0);
400 </script>
401 </binding>
402 <binding>
403 <command>dialog-update</command>
404 </binding>
405 </checkbox>
406
407 <group>
408 <layout>hbox</layout>
409
410 <group>
411 <layout>vbox</layout>
412 <padding>3</padding>
413 </group>
414
415 <group>
416 <layout>vbox</layout>
417 <checkbox>
418 <halign>left</halign>
419 <label>Connect GPU to aircraft</label>
420 <live>true</live>
421 <property>/controls/electric/external-power</property>
422 <enable>
423 <property>/sim/gpu/enable</property>
424 </enable>
425 <binding>
426 <command>property-toggle</command>
427 <property>/controls/electric/external-power</property>
428 </binding>
429 <binding>
430 <command>dialog-update</command>
431 </binding>
432 </checkbox>
433 <text>
434 <halign>left</halign>
435 <label>Battery charge: xxxx %%</label>
436 <format>Battery charge: %3.1f %%</format>
437 <live>true</live>
438 <property>/systems/electrical/battery-charge-percent-100</property>
439 </text>
440 </group>
441 </group>
442
443 <!--group>
444 <layout>hbox</layout>
445 <padding>6</padding>
446 <hrule/>
447 </group-->
448
449 <group>
450 <layout>hbox</layout>
451
452 <checkbox>
453 <halign>left</halign>
454 <label>Fuel tank trailer</label>
455 <live>true</live>
456 <property>/sim/fueltanktrailer/enable</property>
457 <enable>
458 <less-than>
459 <property>velocities/groundspeed-kt</property>
460 <value>0.1</value>
461 </less-than>
462 </enable>
463 <binding>
464 <command>property-toggle</command>
465 <property>/sim/fueltanktrailer/enable</property>
466 </binding>
467 <binding>
468 <command>dialog-update</command>
469 </binding>
470 </checkbox>
471
472 <button>
473 <halign>right</halign>
474 <legend>Fuel Levels</legend>
475 <live>true</live>
476 <enable>
477 <and>
478 <not>
479 <property>/sim/freeze/replay-state</property>
480 </not>
481 <less-than>
482 <property>velocities/groundspeed-kt</property>
483 <value>1.0</value>
484 </less-than>
485 <not>
486 <property>/engines/active-engine/running</property>
487 </not>
488 <property>/sim/fueltanktrailer/enable</property>
489 </and>
490 </enable>
491 <binding>
492 <command>dialog-show</command>
493 <dialog-name>c172p-fuel-both-tanks-dialog</dialog-name>
494 </binding>
495 </button>
496 </group>
497
498 <!--group>
499 <layout>hbox</layout>
500 <padding>6</padding>
501 <hrule/>
502 </group-->
503
504 <checkbox>
505 <halign>left</halign>
506 <label>Enable external engine heater</label>
507 <live>true</live>
508 <property>/engines/active-engine/external-heat/enabled</property>
509 <enable>
510 <and>
511 <less-than>
512 <property>velocities/groundspeed-kt</property>
513 <value>0.1</value>
514 </less-than>
515 <less-than>
516 <property>/engines/active-engine/rpm</property>
517 <value>0.1</value>
518 </less-than>
519 </and>
520 </enable>
521 <binding>
522 <command>property-toggle</command>
523 <property>/engines/active-engine/external-heat/enabled</property>
524 </binding>
525 <binding>
526 <command>property-toggle</command>
527 <property>/sim/externalheater/enable</property>
528 </binding>
529 <binding>
530 <command>dialog-update</command>
531 </binding>
532 </checkbox>
533 <!-- Force group to the left -->
534 <empty><stretch>true</stretch></empty>
535 </group>
536
537 <hrule/>
538
539 <group>
540 <layout>hbox</layout>
541 <default-padding>6</default-padding>
542
543 <empty><stretch>true</stretch></empty>
544
545 <button>
546 <legend>Close</legend>
547 <equal>true</equal>
548 <key>Esc</key>
549 <default>true</default>
550 <binding>
551 <command>dialog-close</command>
552 </binding>
553 </button>
554 </group>
555
556 </PropertyList>