Debian Codegraph @

gui/dialogs/jetways.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <PropertyList>
4
5 <name>jetways</name>
6 <modal>false</modal>
7 <layout>vbox</layout>
8
9 <nasal>
10 <open><![CDATA[
11 var self = cmdarg();
12 var aptlist = props.globals.getNode(self.getNode("text/property").getValue(), 1);
13 var loadedN = props.globals.getNode("/nasal/jetways/loaded", 1);
14 var UPDATE_PERIOD = 5;
15 var update = func
16 {
17 if (loadedN.getBoolValue())
18 {
19 var list = "";
20 foreach (var apt; jetways.loaded_airports)
21 {
22 list ~= apt ~ " ";
23 }
24 aptlist.setValue(list == "" ? " No airports loaded" : " Loaded airports: " ~ list);
25 }
26 settimer(update, UPDATE_PERIOD);
27 };
28 settimer(update, 0);
29 ]]></open>
30 </nasal>
31
32 <group>
33 <layout>hbox</layout>
34
35 <text>
36 <label>Jetway Settings</label>
37 </text>
38
39 <empty><stretch>1</stretch></empty>
40
41 <button>
42 <legend>X</legend>
43 <key>Esc</key>
44 <pref-width>20</pref-width>
45 <pref-height>20</pref-height>
46 <binding>
47 <command>dialog-close</command>
48 </binding>
49 <binding>
50 <command>dialog-apply</command>
51 </binding>
52 </button>
53 </group>
54
55 <hrule />
56
57 <group>
58 <layout>hbox</layout>
59
60 <!-- only for a gap -->
61 <group>
62 <layout>vbox</layout>
63 <default-padding>1</default-padding>
64 <text>
65 <label> </label>
66 </text>
67 </group>
68
69 <group>
70 <layout>vbox</layout>
71
72 <checkbox>
73 <halign>left</halign>
74 <label>Enable animated jetways</label>
75 <property>/nasal/jetways/enabled</property>
76 <live type="bool">true</live>
77 <binding>
78 <command>dialog-apply</command>
79 </binding>
80 </checkbox>
81 <checkbox>
82 <halign>left</halign>
83 <label>Connect to multiplayer aircraft</label>
84 <property>/sim/jetways/interact-with-multiplay</property>
85 <live type="bool">true</live>
86 <enable>
87 <property>/nasal/jetways/enabled</property>
88 </enable>
89 <binding>
90 <command>dialog-apply</command>
91 </binding>
92 </checkbox>
93 <checkbox>
94 <halign>left</halign>
95 <label>Enable jetway editor</label>
96 <property>/nasal/jetways_edit/enabled</property>
97 <live type="bool">true</live>
98 <enable>
99 <property>/nasal/jetways/enabled</property>
100 </enable>
101 <binding>
102 <command>dialog-apply</command>
103 </binding>
104 </checkbox>
105 <checkbox>
106 <halign>left</halign>
107 <label>Debug mode</label>
108 <property>/sim/jetways/debug</property>
109 <live type="bool">true</live>
110 <enable>
111 <property>/nasal/jetways/enabled</property>
112 </enable>
113 <binding>
114 <command>dialog-apply</command>
115 </binding>
116 </checkbox>
117
118 <group>
119 <layout>hbox</layout>
120 <button>
121 <legend>Open editor</legend>
122 <enable>
123 <and>
124 <property>/nasal/jetways/enabled</property>
125 <property>/nasal/jetways_edit/enabled</property>
126 </and>
127 </enable>
128 <binding>
129 <command>dialog-show</command>
130 <dialog-name>jetways-adjust</dialog-name>
131 </binding>
132 </button>
133 </group>
134
135 </group>
136 </group>
137
138 <hrule />
139
140 <text>
141 <halign>left</halign>
142 <label> No airports loaded</label>
143 <property>/sim/gui/dialogs/jetways/loaded-airports</property>
144 <live type="bool">true</live>
145 </text>
146
147 </PropertyList>