Debian Codegraph @

gui/dialogs/weather-configuration.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <!-- Control the weather -->
6 <name>weather-configuration</name>
7 <modal>false</modal>
8 <resizable>false</resizable>
9 <layout>vbox</layout>
10 <default-padding>3</default-padding>
11
12 <!-- Title bar with close button -->
13 <group>
14 <layout>hbox</layout>
15 <default-padding>1</default-padding>
16
17 <text>
18 <label>Basic Troposphere Weather Conditions</label>
19 </text>
20
21 <empty>
22 <stretch>true</stretch>
23 </empty>
24
25 <button>
26 <legend>X</legend>
27 <key>Esc</key>
28 <pref-width>20</pref-width>
29 <pref-height>20</pref-height>
30 <binding>
31 <command>dialog-close</command>
32 </binding>
33 </button>
34 </group>
35
36 <hrule/>
37
38 <group>
39 <layout>hbox</layout>
40 <default-padding>0</default-padding>
41
42 <!-- gap -->
43 <text>
44 <label> </label>
45 </text>
46
47 <!-- Left Column -->
48 <group>
49 <layout>vbox</layout>
50
51 <group>
52 <layout>vbox</layout>
53 <default-padding>1</default-padding>
54
55 <!-- Cloud Layers -->
56 <group>
57 <layout>hbox</layout>
58 <text>
59 <label>Cloud Layers (All Altitudes ft-AMSL)</label>
60 </text>
61 <hrule>
62 <stretch>true</stretch>
63 </hrule>
64 </group>
65
66 <group>
67 <layout>hbox</layout>
68 <group>
69 <layout>table</layout>
70
71 <text>
72 <label>Altitude (ft)</label>
73 <row>0</row>
74 <col>1</col>
75 </text>
76
77 <text>
78 <label>Coverage</label>
79 <row>0</row>
80 <col>2</col>
81 <width>80</width>
82 </text>
83
84 <text>
85 <label>Thickness (ft)</label>
86 <row>0</row>
87 <col>3</col>
88 </text>
89
90
91 <!-- Layer 4 -->
92
93 <input>
94 <row>1</row>
95 <col>1</col>
96 <live>true</live>
97 <property>/environment/clouds/layer[4]/elevation-ft</property>
98 <binding>
99 <command>dialog-apply</command>
100 </binding>
101 </input>
102
103 <combo>
104 <row>1</row>
105 <col>2</col>
106 <pref-width>100</pref-width>
107 <live>true</live>
108 <property>/environment/clouds/layer[4]/coverage</property>
109 <value>clear</value>
110 <value>few</value>
111 <value>scattered</value>
112 <value>broken</value>
113 <value>overcast</value>
114 <value>cirrus</value>
115 <binding>
116 <command>dialog-apply</command>
117 </binding>
118 </combo>
119
120 <input>
121 <row>1</row>
122 <col>3</col>
123 <live>true</live>
124 <property>/environment/clouds/layer[4]/thickness-ft</property>
125 <binding>
126 <command>dialog-apply</command>
127 </binding>
128 </input>
129
130
131 <!-- Layer 3 -->
132
133 <input>
134 <row>2</row>
135 <col>1</col>
136 <live>true</live>
137 <property>/environment/clouds/layer[3]/elevation-ft</property>
138 <binding>
139 <command>dialog-apply</command>
140 </binding>
141 </input>
142
143 <combo>
144 <row>2</row>
145 <col>2</col>
146 <pref-width>100</pref-width>
147 <live>true</live>
148 <property>/environment/clouds/layer[3]/coverage</property>
149 <value>clear</value>
150 <value>few</value>
151 <value>scattered</value>
152 <value>broken</value>
153 <value>overcast</value>
154 <value>cirrus</value>
155 <binding>
156 <command>dialog-apply</command>
157 </binding>
158 </combo>
159
160 <input>
161 <row>2</row>
162 <col>3</col>
163 <live>true</live>
164 <property>/environment/clouds/layer[3]/thickness-ft</property>
165 <binding>
166 <command>dialog-apply</command>
167 </binding>
168 </input>
169
170
171 <!-- Layer 2 -->
172
173 <input>
174 <row>3</row>
175 <col>1</col>
176 <live>true</live>
177 <property>/environment/clouds/layer[2]/elevation-ft</property>
178 <binding>
179 <command>dialog-apply</command>
180 </binding>
181 </input>
182
183 <combo>
184 <row>3</row>
185 <col>2</col>
186 <pref-width>100</pref-width>
187 <live>true</live>
188 <property>/environment/clouds/layer[2]/coverage</property>
189 <value>clear</value>
190 <value>few</value>
191 <value>scattered</value>
192 <value>broken</value>
193 <value>overcast</value>
194 <value>cirrus</value>
195 <binding>
196 <command>dialog-apply</command>
197 </binding>
198 </combo>
199
200 <input>
201 <row>3</row>
202 <col>3</col>
203 <live>true</live>
204 <property>/environment/clouds/layer[2]/thickness-ft</property>
205 <binding>
206 <command>dialog-apply</command>
207 </binding>
208 </input>
209
210
211 <!-- Layer 1 -->
212
213 <input>
214 <row>4</row>
215 <col>1</col>
216 <live>true</live>
217 <property>/environment/clouds/layer[1]/elevation-ft</property>
218 <binding>
219 <command>dialog-apply</command>
220 </binding>
221 </input>
222
223 <combo>
224 <row>4</row>
225 <col>2</col>
226 <pref-width>100</pref-width>
227 <live>true</live>
228 <property>/environment/clouds/layer[1]/coverage</property>
229 <value>clear</value>
230 <value>few</value>
231 <value>scattered</value>
232 <value>broken</value>
233 <value>overcast</value>
234 <value>cirrus</value>
235 <binding>
236 <command>dialog-apply</command>
237 </binding>
238 </combo>
239
240 <input>
241 <row>4</row>
242 <col>3</col>
243 <live>true</live>
244 <property>/environment/clouds/layer[1]/thickness-ft</property>
245 <binding>
246 <command>dialog-apply</command>
247 </binding>
248 </input>
249
250
251 <!-- Layer 0 -->
252
253 <input>
254 <row>5</row>
255 <col>1</col>
256 <live>true</live>
257 <property>/environment/clouds/layer[0]/elevation-ft</property>
258 <binding>
259 <command>dialog-apply</command>
260 </binding>
261 </input>
262
263 <combo>
264 <row>5</row>
265 <col>2</col>
266 <pref-width>100</pref-width>
267 <live>true</live>
268 <editable>false</editable>
269 <property>/environment/clouds/layer[0]/coverage</property>
270 <value>clear</value>
271 <value>few</value>
272 <value>scattered</value>
273 <value>broken</value>
274 <value>overcast</value>
275 <value>cirrus</value>
276 <binding>
277 <command>dialog-apply</command>
278 </binding>
279 </combo>
280
281 <input>
282 <row>5</row>
283 <col>3</col>
284 <live>true</live>
285 <property>/environment/clouds/layer[0]/thickness-ft</property>
286 <binding>
287 <command>dialog-apply</command>
288 </binding>
289 </input>
290
291 </group>
292 <empty>
293 <stretch>true</stretch>
294 </empty>
295 </group>
296 </group>
297 <!-- Cloud Layers End -->
298
299 <!-- Precipitation -->
300 <group>
301 <layout>vbox</layout>
302 <default-padding>1</default-padding>
303
304 <group>
305 <layout>hbox</layout>
306 <text>
307 <label>Precipitation</label>
308 </text>
309 <hrule>
310 <stretch>true</stretch>
311 </hrule>
312 </group>
313
314 <group>
315 <layout>vbox</layout>
316 <halign>fill</halign>
317 <group>
318 <layout>table</layout>
319 <text>
320 <row>0</row>
321 <col>0</col>
322 <label>Rain</label>
323 <halign>left</halign>
324 </text>
325
326 <slider>
327 <row>0</row>
328 <col>1</col>
329 <live>true</live>
330 <halign>fill</halign>
331 <property>/environment/rain-norm</property>
332 <binding>
333 <command>dialog-apply</command>
334 </binding>
335 <stretch>true</stretch>
336 </slider>
337
338 <text>
339 <row>1</row>
340 <col>0</col>
341 <label>Snow</label>
342 <halign>left</halign>
343 </text>
344
345 <slider>
346 <row>1</row>
347 <col>1</col>
348 <halign>fill</halign>
349 <property>/environment/snow-norm</property>
350 <live>true</live>
351 <pref-height>30</pref-height>
352 <binding>
353 <command>dialog-apply</command>
354 </binding>
355 </slider>
356
357 <text>
358 <row>0</row>
359 <col>3</col>
360 <label>QNH (inHg)</label>
361 </text>
362
363 <input>
364 <name>pressure-sea-level-inhg</name>
365 <row>1</row>
366 <col>3</col>
367 <pref-width>75</pref-width>
368 <property>/environment/config/boundary/entry[0]/pressure-sea-level-inhg</property>
369 <live>true</live>
370 <binding>
371 <command>dialog-apply</command>
372 <object-name>pressure-sea-level-inhg</object-name>
373 </binding>
374 </input>
375
376
377 </group>
378
379 <empty>
380 <stretch>true</stretch>
381 </empty>
382
383 </group>
384 </group>
385 <!-- Precipitation End -->
386 <empty>
387 <stretch>true</stretch>
388 </empty>
389 </group>
390 <!-- Left Column End -->
391
392 <vrule>
393 <stretch>true</stretch>
394 </vrule>
395
396 <!-- Right Column -->
397 <group>
398 <layout>vbox</layout>
399
400 <!-- Aloft -->
401 <group>
402 <layout>vbox</layout>
403 <default-padding>1</default-padding>
404
405 <group>
406 <layout>hbox</layout>
407 <text>
408 <label> Aloft (All Altitudes ft-AMSL)</label>
409 </text>
410 <hrule>
411 <stretch>true</stretch>
412 </hrule>
413 </group>
414
415 <group>
416 <layout>hbox</layout>
417 <!-- gap -->
418 <text>
419 <label> </label>
420 </text>
421 <group>
422 <layout>table</layout>
423 <text>
424 <row>0</row>
425 <col>0</col>
426 <label>Altitude </label>
427 </text>
428
429 <text>
430 <row>0</row>
431 <col>1</col>
432 <colspan>2</colspan>
433 <label>Wind (dir/kt)</label>
434 </text>
435
436 <text>
437 <row>0</row>
438 <col>3</col>
439 <label>Vis (m)</label>
440 </text>
441
442 <text>
443 <row>0</row>
444 <col>4</col>
445 <label>Temp (C)</label>
446 </text>
447
448 <text>
449 <row>0</row>
450 <col>5</col>
451 <label>Dewpt (C)</label>
452 </text>
453
454 <text>
455 <row>0</row>
456 <col>6</col>
457 <label>Turbulence</label>
458 </text>
459
460 <input>
461 <name>aloft-4-elevation-ft</name>
462 <row>1</row>
463 <col>0</col>
464 <pref-width>70</pref-width>
465 <property>/environment/config/aloft/entry[4]/elevation-ft</property>
466 <live>true</live>
467 <binding>
468 <command>dialog-apply</command>
469 <object-name>aloft-4-elevation-ft</object-name>
470 </binding>
471 </input>
472
473 <input>
474 <name>aloft-4-wind-from-heading-deg</name>
475 <row>1</row>
476 <col>1</col>
477 <pref-width>50</pref-width>
478 <property>/environment/config/aloft/entry[4]/wind-from-heading-deg</property>
479 <live>true</live>
480 <binding>
481 <command>dialog-apply</command>
482 <object-name>aloft-4-wind-from-heading-deg</object-name>
483 </binding>
484 </input>
485
486 <input>
487 <name>aloft-4-wind-speed-kt</name>
488 <row>1</row>
489 <col>2</col>
490 <pref-width>45</pref-width>
491 <property>/environment/config/aloft/entry[4]/wind-speed-kt</property>
492 <live>true</live>
493 <binding>
494 <command>dialog-apply</command>
495 <object-name>aloft-4-wind-speed-kt</object-name>
496 </binding>
497 </input>
498
499 <input>
500 <name>aloft-4-visibility-m</name>
501 <row>1</row>
502 <col>3</col>
503 <pref-width>75</pref-width>
504 <property>/environment/config/aloft/entry[4]/visibility-m</property>
505 <live>true</live>
506 <binding>
507 <command>dialog-apply</command>
508 <object-name>aloft-4-visibility-m</object-name>
509 </binding>
510 </input>
511
512 <input>
513 <name>aloft-4-temperature-degc</name>
514 <row>1</row>
515 <col>4</col>
516 <pref-width>60</pref-width>
517 <property>/environment/config/aloft/entry[4]/temperature-degc</property>
518 <live>true</live>
519 <binding>
520 <command>dialog-apply</command>
521 <object-name>aloft-4-temperature-degc</object-name>
522 </binding>
523 </input>
524
525 <input>
526 <name>aloft-4-dewpoint-degc</name>
527 <row>1</row>
528 <col>5</col>
529 <pref-width>60</pref-width>
530 <property>/environment/config/aloft/entry[4]/dewpoint-degc</property>
531 <live>true</live>
532 <binding>
533 <command>dialog-apply</command>
534 <object-name>aloft-4-dewpoint-degc</object-name>
535 </binding>
536 </input>
537
538 <combo>
539 <name>aloft-4-turbulence</name>
540 <row>1</row>
541 <col>6</col>
542 <pref-width>90</pref-width>
543 <live>true</live>
544 <property>/environment/config/aloft/entry[4]/turbulence-name</property>
545 <value>none</value>
546 <value>light</value>
547 <value>moderate</value>
548 <value>severe</value>
549 <binding>
550 <command>dialog-apply</command>
551 <object-name>aloft-4-turbulence</object-name>
552 </binding>
553 <binding>
554 <command>nasal</command>
555 <script>controller.setTurbulence("aloft",4);</script>
556 </binding>
557 </combo>
558
559 <input>
560 <name>aloft-3-elevation-ft</name>
561 <row>2</row>
562 <col>0</col>
563 <pref-width>70</pref-width>
564 <property>/environment/config/aloft/entry[3]/elevation-ft</property>
565 <live>true</live>
566 <binding>
567 <command>dialog-apply</command>
568 <object-name>aloft-3-elevation-ft</object-name>
569 </binding>
570 </input>
571
572 <input>
573 <name>aloft-3-wind-from-heading-deg</name>
574 <row>2</row>
575 <col>1</col>
576 <pref-width>50</pref-width>
577 <property>/environment/config/aloft/entry[3]/wind-from-heading-deg</property>
578 <live>true</live>
579 <binding>
580 <command>dialog-apply</command>
581 <object-name>aloft-3-wind-from-heading-deg</object-name>
582 </binding>
583 </input>
584
585 <input>
586 <name>aloft-3-wind-speed-kt</name>
587 <row>2</row>
588 <col>2</col>
589 <pref-width>45</pref-width>
590 <property>/environment/config/aloft/entry[3]/wind-speed-kt</property>
591 <live>true</live>
592 <binding>
593 <command>dialog-apply</command>
594 <object-name>aloft-3-wind-speed-kt</object-name>
595 </binding>
596 </input>
597
598 <input>
599 <name>aloft-3-visibility-m</name>
600 <row>2</row>
601 <col>3</col>
602 <pref-width>75</pref-width>
603 <property>/environment/config/aloft/entry[3]/visibility-m</property>
604 <live>true</live>
605 <binding>
606 <command>dialog-apply</command>
607 <object-name>aloft-3-visibility-m</object-name>
608 </binding>
609 </input>
610
611 <input>
612 <name>aloft-3-temperature-degc</name>
613 <row>2</row>
614 <col>4</col>
615 <pref-width>60</pref-width>
616 <property>/environment/config/aloft/entry[3]/temperature-degc</property>
617 <live>true</live>
618 <binding>
619 <command>dialog-apply</command>
620 <object-name>aloft-3-temperature-degc</object-name>
621 </binding>
622 </input>
623
624 <input>
625 <name>aloft-3-dewpoint-degc</name>
626 <row>2</row>
627 <col>5</col>
628 <pref-width>60</pref-width>
629 <property>/environment/config/aloft/entry[3]/dewpoint-degc</property>
630 <live>true</live>
631 <binding>
632 <command>dialog-apply</command>
633 <object-name>aloft-3-dewpoint-degc</object-name>
634 </binding>
635 </input>
636
637 <combo>
638 <name>aloft-3-turbulence</name>
639 <row>2</row>
640 <col>6</col>
641 <pref-width>90</pref-width>
642 <live>true</live>
643 <property>/environment/config/aloft/entry[3]/turbulence-name</property>
644 <value>none</value>
645 <value>light</value>
646 <value>moderate</value>
647 <value>severe</value>
648 <binding>
649 <command>dialog-apply</command>
650 <object-name>aloft-3-turbulence</object-name>
651 </binding>
652 <binding>
653 <command>nasal</command>
654 <script>controller.setTurbulence("aloft",3);</script>
655 </binding>
656 </combo>
657
658 <input>
659 <name>aloft-2-elevation-ft</name>
660 <row>3</row>
661 <col>0</col>
662 <pref-width>70</pref-width>
663 <property>/environment/config/aloft/entry[2]/elevation-ft</property>
664 <live>true</live>
665 <binding>
666 <command>dialog-apply</command>
667 <object-name>aloft-2-elevation-ft</object-name>
668 </binding>
669 </input>
670
671 <input>
672 <name>aloft-2-wind-from-heading-deg</name>
673 <row>3</row>
674 <col>1</col>
675 <pref-width>50</pref-width>
676 <property>/environment/config/aloft/entry[2]/wind-from-heading-deg</property>
677 <live>true</live>
678 <binding>
679 <command>dialog-apply</command>
680 <object-name>aloft-2-wind-from-heading-deg</object-name>
681 </binding>
682 </input>
683
684 <input>
685 <name>aloft-2-wind-speed-kt</name>
686 <row>3</row>
687 <col>2</col>
688 <pref-width>45</pref-width>
689 <property>/environment/config/aloft/entry[2]/wind-speed-kt</property>
690 <live>true</live>
691 <binding>
692 <command>dialog-apply</command>
693 <object-name>aloft-2-wind-speed-kt</object-name>
694 </binding>
695 </input>
696
697 <input>
698 <name>aloft-2-visibility-m</name>
699 <row>3</row>
700 <col>3</col>
701 <pref-width>75</pref-width>
702 <property>/environment/config/aloft/entry[2]/visibility-m</property>
703 <live>true</live>
704 <binding>
705 <command>dialog-apply</command>
706 <object-name>aloft-2-visibility-m</object-name>
707 </binding>
708 </input>
709
710 <input>
711 <name>aloft-2-temperature-degc</name>
712 <row>3</row>
713 <col>4</col>
714 <pref-width>60</pref-width>
715 <property>/environment/config/aloft/entry[2]/temperature-degc</property>
716 <live>true</live>
717 <binding>
718 <command>dialog-apply</command>
719 <object-name>aloft-2-temperature-degc</object-name>
720 </binding>
721 </input>
722
723 <input>
724 <name>aloft-2-dewpoint-degc</name>
725 <row>3</row>
726 <col>5</col>
727 <pref-width>60</pref-width>
728 <property>/environment/config/aloft/entry[2]/dewpoint-degc</property>
729 <live>true</live>
730 <binding>
731 <command>dialog-apply</command>
732 <object-name>aloft-2-dewpoint-degc</object-name>
733 </binding>
734 </input>
735
736 <combo>
737 <name>aloft-2-turbulence</name>
738 <row>3</row>
739 <col>6</col>
740 <pref-width>90</pref-width>
741 <live>true</live>
742 <property>/environment/config/aloft/entry[2]/turbulence-name</property>
743 <value>none</value>
744 <value>light</value>
745 <value>moderate</value>
746 <value>severe</value>
747 <binding>
748 <command>dialog-apply</command>
749 <object-name>aloft-2-turbulence</object-name>
750 </binding>
751 <binding>
752 <command>nasal</command>
753 <script>controller.setTurbulence("aloft",2);</script>
754 </binding>
755 </combo>
756
757
758 <input>
759 <name>aloft-1-elevation-ft</name>
760 <row>4</row>
761 <col>0</col>
762 <pref-width>70</pref-width>
763 <property>/environment/config/aloft/entry[1]/elevation-ft</property>
764 <live>true</live>
765 <binding>
766 <command>dialog-apply</command>
767 <object-name>aloft-1-elevation-ft</object-name>
768 </binding>
769 </input>
770
771 <input>
772 <name>aloft-1-wind-from-heading-deg</name>
773 <row>4</row>
774 <col>1</col>
775 <pref-width>50</pref-width>
776 <property>/environment/config/aloft/entry[1]/wind-from-heading-deg</property>
777 <live>true</live>
778 <binding>
779 <command>dialog-apply</command>
780 <object-name>aloft-1-wind-from-heading-deg</object-name>
781 </binding>
782 </input>
783
784 <input>
785 <name>aloft-1-wind-speed-kt</name>
786 <row>4</row>
787 <col>2</col>
788 <pref-width>45</pref-width>
789 <property>/environment/config/aloft/entry[1]/wind-speed-kt</property>
790 <live>true</live>
791 <binding>
792 <command>dialog-apply</command>
793 <object-name>aloft-1-wind-speed-kt</object-name>
794 </binding>
795 </input>
796
797 <input>
798 <name>aloft-1-visibility-m</name>
799 <row>4</row>
800 <col>3</col>
801 <pref-width>75</pref-width>
802 <property>/environment/config/aloft/entry[1]/visibility-m</property>
803 <live>true</live>
804 <binding>
805 <command>dialog-apply</command>
806 <object-name>aloft-1-visibility-m</object-name>
807 </binding>
808 </input>
809
810 <input>
811 <name>aloft-1-temperature-degc</name>
812 <row>4</row>
813 <col>4</col>
814 <pref-width>60</pref-width>
815 <property>/environment/config/aloft/entry[1]/temperature-degc</property>
816 <live>true</live>
817 <binding>
818 <command>dialog-apply</command>
819 <object-name>aloft-1-temperature-degc</object-name>
820 </binding>
821 </input>
822
823 <input>
824 <name>aloft-1-dewpoint-degc</name>
825 <row>4</row>
826 <col>5</col>
827 <pref-width>60</pref-width>
828 <property>/environment/config/aloft/entry[1]/dewpoint-degc</property>
829 <live>true</live>
830 <binding>
831 <command>dialog-apply</command>
832 <object-name>aloft-1-dewpoint-degc</object-name>
833 </binding>
834 </input>
835
836 <combo>
837 <name>aloft-1-turbulence</name>
838 <row>4</row>
839 <col>6</col>
840 <pref-width>90</pref-width>
841 <live>true</live>
842 <property>/environment/config/aloft/entry[1]/turbulence-name</property>
843 <value>none</value>
844 <value>light</value>
845 <value>moderate</value>
846 <value>severe</value>
847 <binding>
848 <command>dialog-apply</command>
849 <object-name>aloft-1-turbulence</object-name>
850 </binding>
851 <binding>
852 <command>nasal</command>
853 <script>controller.setTurbulence("aloft",1);</script>
854 </binding>
855 </combo>
856
857 <input>
858 <name>aloft-0-elevation-ft</name>
859 <row>5</row>
860 <col>0</col>
861 <pref-width>70</pref-width>
862 <property>/environment/config/aloft/entry[0]/elevation-ft</property>
863 <live>true</live>
864 <binding>
865 <command>dialog-apply</command>
866 <object-name>aloft-0-elevation-ft</object-name>
867 </binding>
868 </input>
869
870 <input>
871 <name>aloft-0-wind-from-heading-deg</name>
872 <row>5</row>
873 <col>1</col>
874 <pref-width>50</pref-width>
875 <property>/environment/config/aloft/entry[0]/wind-from-heading-deg</property>
876 <live>true</live>
877 <binding>
878 <command>dialog-apply</command>
879 <object-name>aloft-0-wind-from-heading-deg</object-name>
880 </binding>
881 </input>
882
883 <input>
884 <name>aloft-0-wind-speed-kt</name>
885 <row>5</row>
886 <col>2</col>
887 <pref-width>45</pref-width>
888 <property>/environment/config/aloft/entry[0]/wind-speed-kt</property>
889 <live>true</live>
890 <binding>
891 <command>dialog-apply</command>
892 <object-name>aloft-0-wind-speed-kt</object-name>
893 </binding>
894 </input>
895
896 <input>
897 <name>aloft-0-visibility-m</name>
898 <row>5</row>
899 <col>3</col>
900 <pref-width>75</pref-width>
901 <property>/environment/config/aloft/entry[0]/visibility-m</property>
902 <live>true</live>
903 <binding>
904 <command>dialog-apply</command>
905 <object-name>aloft-0-visibility-m</object-name>
906 </binding>
907 </input>
908
909 <input>
910 <name>aloft-0-temperature-degc</name>
911 <row>5</row>
912 <col>4</col>
913 <pref-width>60</pref-width>
914 <property>/environment/config/aloft/entry[0]/temperature-degc</property>
915 <live>true</live>
916 <binding>
917 <command>dialog-apply</command>
918 <object-name>aloft-0-temperature-degc</object-name>
919 </binding>
920 </input>
921
922 <input>
923 <name>aloft-0-dewpoint-degc</name>
924 <row>5</row>
925 <col>5</col>
926 <pref-width>60</pref-width>
927 <property>/environment/config/aloft/entry[0]/dewpoint-degc</property>
928 <live>true</live>
929 <binding>
930 <command>dialog-apply</command>
931 <object-name>aloft-0-dewpoint-degc</object-name>
932 </binding>
933 </input>
934
935 <combo>
936 <name>aloft-0-turbulence</name>
937 <row>5</row>
938 <col>6</col>
939 <pref-width>90</pref-width>
940 <live>true</live>
941 <property>/environment/config/aloft/entry[0]/turbulence-name</property>
942 <value>none</value>
943 <value>light</value>
944 <value>moderate</value>
945 <value>severe</value>
946 <binding>
947 <command>dialog-apply</command>
948 <object-name>aloft-0-turbulence</object-name>
949 </binding>
950 <binding>
951 <command>nasal</command>
952 <script>controller.setTurbulence("aloft",0);</script>
953 </binding>
954 </combo>
955
956 </group>
957 <empty>
958 <stretch>true</stretch>
959 </empty>
960 </group>
961
962 </group>
963 <!-- Aloft End -->
964
965 <!-- Boundary -->
966 <group>
967 <layout>vbox</layout>
968 <default-padding>1</default-padding>
969
970 <group>
971 <layout>hbox</layout>
972 <text>
973 <label> Boundary (All Elevations ft-AGL)</label>
974 </text>
975 <hrule>
976 <stretch>true</stretch>
977 </hrule>
978 </group>
979
980 <group>
981 <layout>hbox</layout>
982 <!-- gap -->
983 <text>
984 <label> </label>
985 </text>
986 <group>
987
988 <layout>table</layout>
989
990 <text>
991 <row>0</row>
992 <col>0</col>
993 <label>Elevation</label>
994 </text>
995
996 <text>
997 <row>0</row>
998 <col>1</col>
999 <colspan>2</colspan>
1000 <label>Wind (dir/kt)</label>
1001 </text>
1002
1003 <text>
1004 <row>0</row>
1005 <col>3</col>
1006 <label>Vis (m)</label>
1007 </text>
1008
1009 <text>
1010 <row>0</row>
1011 <col>4</col>
1012 <label>Temp (C)</label>
1013 </text>
1014
1015 <text>
1016 <row>0</row>
1017 <col>5</col>
1018 <label>Dewpt (C)</label>
1019 </text>
1020
1021 <text>
1022 <row>0</row>
1023 <col>6</col>
1024 <label>Turbulence</label>
1025 </text>
1026
1027 <input>
1028 <name>boundary-1-elevation-ft</name>
1029 <row>1</row>
1030 <col>0</col>
1031 <pref-width>70</pref-width>
1032 <property>/environment/config/boundary/entry[1]/elevation-ft</property>
1033 <live>true</live>
1034 <binding>
1035 <command>dialog-apply</command>
1036 <object-name>boundary-1-elevation-ft</object-name>
1037 </binding>
1038 </input>
1039
1040 <input>
1041 <name>boundary-1-wind-from-heading-deg</name>
1042 <row>1</row>
1043 <col>1</col>
1044 <pref-width>50</pref-width>
1045 <property>/environment/config/boundary/entry[1]/wind-from-heading-deg</property>
1046 <live>true</live>
1047 <binding>
1048 <command>dialog-apply</command>
1049 <object-name>boundary-1-wind-from-heading-deg</object-name>
1050 </binding>
1051 </input>
1052
1053 <input>
1054 <name>boundary-1-wind-speed-kt</name>
1055 <row>1</row>
1056 <col>2</col>
1057 <pref-width>45</pref-width>
1058 <property>/environment/config/boundary/entry[1]/wind-speed-kt</property>
1059 <live>true</live>
1060 <binding>
1061 <command>dialog-apply</command>
1062 <object-name>boundary-1-wind-speed-kt</object-name>
1063 </binding>
1064 </input>
1065
1066 <input>
1067 <name>boundary-1-visibility-m</name>
1068 <row>1</row>
1069 <col>3</col>
1070 <pref-width>75</pref-width>
1071 <property>/environment/config/boundary/entry[1]/visibility-m</property>
1072 <live>true</live>
1073 <binding>
1074 <command>dialog-apply</command>
1075 <object-name>boundary-1-visibility-m</object-name>
1076 </binding>
1077 </input>
1078
1079 <input>
1080 <name>boundary-1-temperature-degc</name>
1081 <row>1</row>
1082 <col>4</col>
1083 <pref-width>60</pref-width>
1084 <property>/environment/config/boundary/entry[1]/temperature-degc</property>
1085 <live>true</live>
1086 <binding>
1087 <command>dialog-apply</command>
1088 <object-name>boundary-1-temperature-degc</object-name>
1089 </binding>
1090 </input>
1091
1092 <input>
1093 <name>boundary-1-dewpoint-degc</name>
1094 <row>1</row>
1095 <col>5</col>
1096 <pref-width>60</pref-width>
1097 <property>/environment/config/boundary/entry[1]/dewpoint-degc</property>
1098 <live>true</live>
1099 <binding>
1100 <command>dialog-apply</command>
1101 <object-name>boundary-1-dewpoint-degc</object-name>
1102 </binding>
1103 </input>
1104
1105 <combo>
1106 <name>boundary-1-turbulence</name>
1107 <row>1</row>
1108 <col>6</col>
1109 <pref-width>90</pref-width>
1110 <live>true</live>
1111 <property>/environment/config/boundary/entry[1]/turbulence-name</property>
1112 <value>none</value>
1113 <value>light</value>
1114 <value>moderate</value>
1115 <value>severe</value>
1116 <binding>
1117 <command>dialog-apply</command>
1118 <object-name>boundary-1-turbulence</object-name>
1119 </binding>
1120 <binding>
1121 <command>nasal</command>
1122 <script>controller.setTurbulence("boundary",1);</script>
1123 </binding>
1124 </combo>
1125
1126 <input>
1127 <name>boundary-0-elevation-ft</name>
1128 <row>2</row>
1129 <col>0</col>
1130 <pref-width>70</pref-width>
1131 <property>/environment/config/boundary/entry[0]/elevation-ft</property>
1132 <live>true</live>
1133 <binding>
1134 <command>dialog-apply</command>
1135 <object-name>boundary-0-elevation-ft</object-name>
1136 </binding>
1137 </input>
1138
1139 <input>
1140 <name>boundary-0-wind-from-heading-deg</name>
1141 <row>2</row>
1142 <col>1</col>
1143 <pref-width>50</pref-width>
1144 <property>/environment/config/boundary/entry[0]/wind-from-heading-deg</property>
1145 <live>true</live>
1146 <binding>
1147 <command>dialog-apply</command>
1148 <object-name>boundary-0-wind-from-heading-deg</object-name>
1149 </binding>
1150 </input>
1151
1152 <input>
1153 <name>boundary-0-wind-speed-kt</name>
1154 <row>2</row>
1155 <col>2</col>
1156 <pref-width>45</pref-width>
1157 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
1158 <live>true</live>
1159 <binding>
1160 <command>dialog-apply</command>
1161 <object-name>boundary-0-wind-speed-kt</object-name>
1162 </binding>
1163 </input>
1164
1165 <input>
1166 <name>boundary-0-visibility-m</name>
1167 <row>2</row>
1168 <col>3</col>
1169 <pref-width>75</pref-width>
1170 <property>/environment/config/boundary/entry[0]/visibility-m</property>
1171 <live>true</live>
1172 <binding>
1173 <command>dialog-apply</command>
1174 <object-name>boundary-0-visibility-m</object-name>
1175 </binding>
1176 </input>
1177
1178 <input>
1179 <name>boundary-0-temperature-degc</name>
1180 <row>2</row>
1181 <col>4</col>
1182 <pref-width>60</pref-width>
1183 <property>/environment/config/boundary/entry[0]/temperature-degc</property>
1184 <live>true</live>
1185 <binding>
1186 <command>dialog-apply</command>
1187 <object-name>boundary-0-temperature-degc</object-name>
1188 </binding>
1189 </input>
1190
1191 <input>
1192 <name>boundary-0-dewpoint-degc</name>
1193 <row>2</row>
1194 <col>5</col>
1195 <pref-width>60</pref-width>
1196 <property>/environment/config/boundary/entry[0]/dewpoint-degc</property>
1197 <live>true</live>
1198 <binding>
1199 <command>dialog-apply</command>
1200 <object-name>boundary-0-dewpoint-degc</object-name>
1201 </binding>
1202 </input>
1203
1204 <combo>
1205 <name>boundary-0-turbulence</name>
1206 <row>2</row>
1207 <col>6</col>
1208 <pref-width>90</pref-width>
1209 <live>true</live>
1210 <property>/environment/config/boundary/entry[0]/turbulence-name</property>
1211 <value>none</value>
1212 <value>light</value>
1213 <value>moderate</value>
1214 <value>severe</value>
1215 <binding>
1216 <command>dialog-apply</command>
1217 <object-name>boundary-0-turbulence</object-name>
1218 </binding>
1219 <binding>
1220 <command>nasal</command>
1221 <script>controller.setTurbulence("boundary",0);</script>
1222 </binding>
1223 </combo>
1224
1225 </group>
1226 <empty>
1227 <stretch>true</stretch>
1228 </empty>
1229 </group>
1230
1231 <empty>
1232 <stretch>true</stretch>
1233 </empty>
1234 </group>
1235 <!-- Boundary End -->
1236
1237 </group>
1238 <!-- Right Column -->
1239
1240 </group>
1241
1242 <hrule/>
1243
1244 <group>
1245 <empty>
1246 <stretch>true</stretch>
1247 </empty>
1248 <layout>hbox</layout>
1249 <button>
1250 <legend>Close</legend>
1251 <default>true</default>
1252 <key>Esc</key>
1253 <binding>
1254 <command>dialog-close</command>
1255 </binding>
1256 </button>
1257 <empty>
1258 <stretch>true</stretch>
1259 </empty>
1260 </group>
1261
1262 <nasal>
1263 <open><![CDATA[
1264 var normalize_string = func(src) {
1265 if( src == nil ) src = "";
1266 var dst = "";
1267 for( var i = 0; i < size(src); i+=1 ) {
1268 if( src[i] == `\n` or src[i] == `\r` )
1269 src[i] = ` `;
1270
1271 if( i != 0 and src[i] == ` ` and src[i-1] == ` ` )
1272 continue;
1273
1274 dst = dst ~ " ";
1275 dst[size(dst)-1] = src[i];
1276 }
1277 return dst;
1278 }
1279
1280 var GlobalWeatherDialogController = {
1281
1282 new : func( dlgRoot ) {
1283 var obj = { parents: [GlobalWeatherDialogController] };
1284 obj.dlgRoot = dlgRoot;
1285 obj.base = "sim/gui/dialogs/weather-scenario";
1286 obj.baseN = props.globals.getNode( obj.base, 1 );
1287
1288 return obj;
1289 },
1290
1291 open : func {
1292 for( var i = 0; i < 5; i+=1 )
1293 me.initTurbulence("aloft", i );
1294
1295 for( var i = 0; i < 2; i+=1 )
1296 me.initTurbulence("boundary", i );
1297 },
1298
1299 close : func {
1300 },
1301
1302 setTurbulence : func( where, idx ) {
1303 var propPath = "/environment/config/" ~ where ~ "/entry[" ~ idx ~ "]/";
1304 setprop( propPath ~ "turbulence/magnitude-norm",
1305 me.turbulenceNames[getprop(propPath ~ "turbulence-name")]/(size(me.turbulenceNames)-1) );
1306 },
1307
1308 initTurbulence : func( where, idx ) {
1309 var propPath = "/environment/config/" ~ where ~ "/entry[" ~ idx ~ "]/";
1310 var turb = getprop( propPath ~ "turbulence/magnitude-norm" ) * (size(me.turbulenceNames)-1);
1311 turb = int(int(10*turb+5)/10); # round to nearest integer
1312 foreach( var t; keys(me.turbulenceNames) ) {
1313 if( me.turbulenceNames[t] == turb ) {
1314 setprop( propPath ~ "turbulence-name", t );
1315 break;
1316 }
1317 }
1318 },
1319
1320 turbulenceNames : { "none" : 0, "light" : 1, "moderate" : 2, "severe" : 3 },
1321
1322 };
1323
1324 var controller = GlobalWeatherDialogController.new( cmdarg() );
1325 controller.open();
1326 ]]></open>
1327
1328 <close><![CDATA[
1329 controller.close();
1330 ]]></close>
1331 </nasal>
1332 </PropertyList>