Debian Codegraph @

gui/dialogs/autopush.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4
5 AUTOPUSH
6 Pushback dialog.
7
8 Copyright (c) 2018 Autopush authors:
9 Joshua Davidson http://github.com/Octal450
10 Merspieler http://gitlab.com/merspieler
11 Original code (c) FlightGear
12 Distribute under the terms of GPLv2.
13
14 -->
15
16 <PropertyList>
17
18 <name>autopush</name>
19 <layout>vbox</layout>
20
21 <group>
22
23 <layout>hbox</layout>
24
25 <text>
26 <label>Pushback</label>
27 </text>
28
29 <empty>
30 <stretch>true</stretch>
31 </empty>
32
33 <button>
34 <legend>X</legend>
35 <key>Esc</key>
36 <pref-width>20</pref-width>
37 <pref-height>20</pref-height>
38 <binding>
39 <command>dialog-close</command>
40 </binding>
41 </button>
42
43 </group>
44
45 <hrule/>
46
47 <group>
48
49 <stretch>true</stretch>
50 <layout>vbox</layout>
51 <halign>center</halign>
52 <valign>top</valign>
53
54 <checkbox>
55 <halign>left</halign>
56 <label>Connect</label>
57 <property>/sim/model/autopush/enabled</property>
58 <live>true</live>
59 <binding>
60 <command>dialog-apply</command>
61 </binding>
62 </checkbox>
63
64 <group>
65 <layout>table</layout>
66
67 <text>
68 <row>0</row>
69 <col>0</col>
70 <label>Steering:</label>
71 <halign>left</halign>
72 </text>
73
74 <button>
75 <row>0</row>
76 <col>1</col>
77 <pref-width>25</pref-width>
78 <pref-height>25</pref-height>
79 <legend>&lt;</legend>
80 <binding>
81 <command>property-adjust</command>
82 <property>/sim/model/autopush/steer-cmd-norm</property>
83 <min>-1.0</min>
84 <max>1.0</max>
85 <step>-0.02</step>
86 <wrap>false</wrap>
87 </binding>
88 </button>
89
90 <slider>
91 <row>0</row>
92 <col>2</col>
93 <min>-1.0</min>
94 <max>1.0</max>
95 <property>/sim/model/autopush/steer-cmd-norm</property>
96 <step>0.1</step>
97 <live>true</live>
98 <binding>
99 <command>dialog-apply</command>
100 </binding>
101 </slider>
102
103 <button>
104 <row>0</row>
105 <col>3</col>
106 <pref-width>25</pref-width>
107 <pref-height>25</pref-height>
108 <legend>&gt;</legend>
109 <binding>
110 <command>property-adjust</command>
111 <property>/sim/model/autopush/steer-cmd-norm</property>
112 <min>-1.0</min>
113 <max>1.0</max>
114 <step>0.02</step>
115 <wrap>false</wrap>
116 </binding>
117 </button>
118
119 <button>
120 <row>0</row>
121 <col>4</col>
122 <pref-width>50</pref-width>
123 <pref-height>25</pref-height>
124 <legend>Center</legend>
125 <binding>
126 <command>property-assign</command>
127 <property>/sim/model/autopush/steer-cmd-norm</property>
128 <value>0.0</value>
129 </binding>
130 </button>
131
132 <text>
133 <row>1</row>
134 <col>0</col>
135 <label>Speed:</label>
136 <halign>left</halign>
137 </text>
138
139 <button>
140 <row>1</row>
141 <col>1</col>
142 <pref-width>25</pref-width>
143 <pref-height>25</pref-height>
144 <legend>&lt;</legend>
145 <binding>
146 <command>property-adjust</command>
147 <property>/sim/model/autopush/target-speed-km_h</property>
148 <min>-25</min>
149 <max>25</max>
150 <step>-1</step>
151 <wrap>false</wrap>
152 </binding>
153 </button>
154
155 <slider>
156 <row>1</row>
157 <col>2</col>
158 <min>-25</min>
159 <max>25</max>
160 <property>/sim/model/autopush/target-speed-km_h</property>
161 <step>1.0</step>
162 <live>true</live>
163 <binding>
164 <command>dialog-apply</command>
165 </binding>
166 </slider>
167
168 <button>
169 <row>1</row>
170 <col>3</col>
171 <pref-width>25</pref-width>
172 <pref-height>25</pref-height>
173 <legend>&gt;</legend>
174 <binding>
175 <command>property-adjust</command>
176 <property>/sim/model/autopush/target-speed-km_h</property>
177 <min>-25</min>
178 <max>25</max>
179 <step>1</step>
180 <wrap>false</wrap>
181 </binding>
182 </button>
183
184 <button>
185 <row>1</row>
186 <col>4</col>
187 <pref-width>50</pref-width>
188 <pref-height>25</pref-height>
189 <legend>Stop</legend>
190 <binding>
191 <command>property-assign</command>
192 <property>/sim/model/autopush/target-speed-km_h</property>
193 <value>0.0</value>
194 </binding>
195 <binding>
196 <command>nasal</command>
197 <script>autopush_driver.pause();</script>
198 </binding>
199 </button>
200
201 <text>
202 <row>1</row>
203 <col>5</col>
204 <pref-width>16</pref-width>
205 <property>/sim/model/autopush/target-speed-km_h</property>
206 <format>%3.0f</format>
207 <live>true</live>
208 <halign>right</halign>
209 </text>
210
211 <text>
212 <row>1</row>
213 <col>6</col>
214 <label> km/h</label>
215 <halign>left</halign>
216 </text>
217
218 </group>
219
220 <hrule/>
221
222 <group>
223 <layout>table</layout>
224
225 <text>
226 <row>0</row>
227 <col>0</col>
228 <label>Auto Push:</label>
229 <halign>left</halign>
230 </text>
231
232 <button>
233 <row>0</row>
234 <col>1</col>
235 <pref-width>50</pref-width>
236 <pref-height>25</pref-height>
237 <legend>Start</legend>
238 <binding>
239 <command>nasal</command>
240 <script>autopush_driver.start();</script>
241 </binding>
242 </button>
243
244 <button>
245 <row>0</row>
246 <col>2</col>
247 <pref-width>50</pref-width>
248 <pref-height>25</pref-height>
249 <legend>Pause</legend>
250 <binding>
251 <command>nasal</command>
252 <script>autopush_driver.pause();</script>
253 </binding>
254 </button>
255
256 <button>
257 <row>0</row>
258 <col>3</col>
259 <pref-width>50</pref-width>
260 <pref-height>25</pref-height>
261 <legend>View</legend>
262 <halign>left</halign>
263 <binding>
264 <command>nasal</command>
265 <script>autopush_route.top_view();</script>
266 </binding>
267 </button>
268
269 <text>
270 <row>1</row>
271 <col>0</col>
272 <label>Route:</label>
273 <halign>left</halign>
274 </text>
275
276 <button>
277 <row>1</row>
278 <col>1</col>
279 <pref-width>50</pref-width>
280 <pref-height>25</pref-height>
281 <legend>Enter</legend>
282 <binding>
283 <command>nasal</command>
284 <script>autopush_route.enter();</script>
285 </binding>
286 </button>
287
288 <button>
289 <row>1</row>
290 <col>2</col>
291 <pref-width>50</pref-width>
292 <pref-height>25</pref-height>
293 <legend>Done</legend>
294 <binding>
295 <command>nasal</command>
296 <script>autopush_route.done();</script>
297 </binding>
298 </button>
299
300 <checkbox>
301 <row>1</row>
302 <col>3</col>
303 <halign>left</halign>
304 <label>Always Show</label>
305 <property>/sim/model/autopush/route/show</property>
306 <live>true</live>
307 <binding>
308 <command>dialog-apply</command>
309 </binding>
310 </checkbox>
311
312 <text>
313 <row>2</row>
314 <col>0</col>
315 <label>Last Point:</label>
316 <halign>left</halign>
317 </text>
318
319 <button>
320 <row>2</row>
321 <col>1</col>
322 <pref-width>50</pref-width>
323 <pref-height>25</pref-height>
324 <legend>Sharp</legend>
325 <binding>
326 <command>nasal</command>
327 <script>autopush_route.toggle_sharp();</script>
328 </binding>
329 </button>
330
331 <button>
332 <row>2</row>
333 <col>2</col>
334 <pref-width>50</pref-width>
335 <pref-height>25</pref-height>
336 <legend>Delete</legend>
337 <binding>
338 <command>nasal</command>
339 <script>autopush_route.delete_last();</script>
340 </binding>
341 </button>
342
343 <checkbox>
344 <row>2</row>
345 <col>3</col>
346 <halign>left</halign>
347 <label>Show Wingtip</label>
348 <live>true</live>
349 <property>/sim/model/autopush/route/show-wingtip</property>
350 <binding>
351 <command>dialog-apply</command>
352 </binding>
353 </checkbox>
354
355 </group>
356
357 </group>
358
359 </PropertyList>