Debian Codegraph @

gui/dialogs/jetways-adjust.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <PropertyList>
4
5 <name>jetways-adjust</name>
6 <modal>false</modal>
7 <layout>vbox</layout>
8
9 <nasal>
10 <open><![CDATA[
11 var self = cmdarg();
12 var dlgname = self.getNode("name").getValue();
13 var root = getprop("/sim/fg-root");
14 var modelfiles = directory(root ~ "/Models/Airport/Jetway");
15 var modelcombo = self.getNode("group[9]/combo[0]");
16 var models = [];
17 foreach (var file; modelfiles)
18 {
19 if (substr(file, -3) == "xml")
20 {
21 var tree = io.read_properties("Models/Airport/Jetway/" ~ file);
22 if (tree.getNode("is-animated-jetway", 1).getBoolValue()) append(models, substr(file, 0, size(file) - 4));
23 }
24 }
25 for (var i = 0; i < size(models); i += 1)
26 {
27 modelcombo.getNode("value[" ~ i ~ "]", 1).setValue(models[i]);
28 }
29
30 var airlinefiles = directory(root ~ "/Models/Airport/Jetway/Airlines");
31 var airlinecombo = self.getNode("group[9]/combo[2]");
32 var airlines = [];
33 foreach (var file; airlinefiles)
34 {
35 append(airlines, substr(file, 0, size(file) - 4));
36 }
37 for (var i = 0; i < size(airlines); i += 1)
38 {
39 airlinecombo.getNode("value[" ~ i ~ "]", 1).setValue(airlines[i]);
40 }
41
42 var Value =
43 {
44 new: func(name)
45 {
46 var m = { parents: [Value] };
47 m.name = name;
48 var n = props.globals.getNode("/sim/jetways/adjust/" ~ m.name, 1);
49 m.sliderN = n.getNode("slider", 1);
50 m.offsetN = n.getNode("offset", 1);
51 m.offsetN.setDoubleValue(0);
52 m.sliderN.setDoubleValue(0);
53 m.last_slider = 0;
54 m.center();
55 m.sliderL = setlistener(m.sliderN, func m.update());
56 return m;
57 },
58 update: func
59 {
60 var offset = me.sliderN.getValue();
61 var value = me.offsetN.getValue() + me.sliderN.getValue() - me.last_slider;
62 jetways_edit.adjust(me.name, value);
63 me.offsetN.setDoubleValue(0);
64 me.last_slider = offset;
65 },
66 center : func
67 {
68 me.offsetN.setValue(me.offsetN.getValue() + me.sliderN.getValue());
69 me.sliderN.setDoubleValue(0);
70 },
71 remove: func
72 {
73 removelistener(me.sliderL);
74 }
75 };
76 var values =
77 [
78 Value.new("longitudinal"),
79 Value.new("transversal"),
80 Value.new("altitude"),
81 Value.new("heading"),
82 Value.new("initial-extension"),
83 Value.new("initial-heading"),
84 Value.new("initial-pitch"),
85 Value.new("initial-entrance-heading")
86 ];
87 var center_sliders = func
88 {
89 foreach (var v; values)
90 {
91 v.center();
92 }
93 };
94 var update = func(w)
95 {
96 self.setValues({"dialog-name": dlgname, "object-name": w});
97 fgcommand("dialog-update", self);
98 center_sliders();
99 };
100 ]]></open>
101 <close>
102 foreach (var v; values)
103 {
104 v.remove();
105 }
106 </close>
107 </nasal>
108
109 <group>
110 <layout>hbox</layout>
111
112 <text>
113 <label>Jetway Editor</label>
114 </text>
115
116 <empty><stretch>1</stretch></empty>
117
118 <button>
119 <legend>X</legend>
120 <key>Esc</key>
121 <pref-width>20</pref-width>
122 <pref-height>20</pref-height>
123 <binding>
124 <command>dialog-close</command>
125 </binding>
126 <binding>
127 <command>dialog-apply</command>
128 </binding>
129 </button>
130 </group>
131
132 <hrule />
133
134 <group>
135 <layout>hbox</layout>
136 <default-padding>0</default-padding>
137
138 <button>
139 <legend>&lt;&lt;</legend>
140 <pref-width>22</pref-width>
141 <pref-height>22</pref-height>
142
143 <binding>
144 <command>property-adjust</command>
145 <property>/sim/jetways/adjust/longitudinal/offset</property>
146 <step>-10</step>
147 </binding>
148 <binding>
149 <command>nasal</command>
150 <script>update("longitudinal")</script>
151 </binding>
152 </button>
153
154 <button>
155 <legend>&lt;</legend>
156 <pref-width>22</pref-width>
157 <pref-height>22</pref-height>
158
159 <binding>
160 <command>property-adjust</command>
161 <property>/sim/jetways/adjust/longitudinal/offset</property>
162 <step>-1</step>
163 </binding>
164 <binding>
165 <command>nasal</command>
166 <script>update("longitudinal")</script>
167 </binding>
168 </button>
169
170 <slider>
171 <name>longitudinal</name>
172 <property>/sim/jetways/adjust/longitudinal/slider</property>
173 <legend>near/far</legend>
174 <pref-width>250</pref-width>
175 <live>1</live>
176 <min>-1</min>
177 <max>1</max>
178
179 <color>
180 <red>1.0</red>
181 <green>0.6</green>
182 <blue>0.6</blue>
183 <alpha>1</alpha>
184 </color>
185
186 <binding>
187 <command>dialog-apply</command>
188 <object-name>longitudinal</object-name>
189 </binding>
190 </slider>
191
192 <button>
193 <legend>&gt;</legend>
194 <pref-width>22</pref-width>
195 <pref-height>22</pref-height>
196
197 <binding>
198 <command>property-adjust</command>
199 <property>/sim/jetways/adjust/longitudinal/offset</property>
200 <step>1</step>
201 </binding>
202 <binding>
203 <command>nasal</command>
204 <script>update("longitudinal")</script>
205 </binding>
206 </button>
207
208 <button>
209 <legend>&gt;&gt;</legend>
210 <pref-width>22</pref-width>
211 <pref-height>22</pref-height>
212
213 <binding>
214 <command>property-adjust</command>
215 <property>/sim/jetways/adjust/longitudinal/offset</property>
216 <step>10</step>
217 </binding>
218 <binding>
219 <command>nasal</command>
220 <script>update("longitudinal")</script>
221 </binding>
222 </button>
223 </group>
224
225 <group>
226 <layout>hbox</layout>
227 <default-padding>0</default-padding>
228
229 <button>
230 <legend>&lt;&lt;</legend>
231 <pref-width>22</pref-width>
232 <pref-height>22</pref-height>
233
234 <binding>
235 <command>property-adjust</command>
236 <property>/sim/jetways/adjust/transversal/offset</property>
237 <step>-10</step>
238 </binding>
239 <binding>
240 <command>nasal</command>
241 <script>update("transversal")</script>
242 </binding>
243 </button>
244
245 <button>
246 <legend>&lt;</legend>
247 <pref-width>22</pref-width>
248 <pref-height>22</pref-height>
249
250 <binding>
251 <command>property-adjust</command>
252 <property>/sim/jetways/adjust/transversal/offset</property>
253 <step>-1</step>
254 </binding>
255 <binding>
256 <command>nasal</command>
257 <script>update("transversal")</script>
258 </binding>
259 </button>
260
261 <slider>
262 <name>transversal</name>
263 <property>/sim/jetways/adjust/transversal/slider</property>
264 <legend>left/right</legend>
265 <pref-width>250</pref-width>
266 <live>1</live>
267 <min>-1</min>
268 <max>1</max>
269
270 <color>
271 <red>0.6</red>
272 <green>1.0</green>
273 <blue>0.6</blue>
274 <alpha>1.0</alpha>
275 </color>
276
277 <binding>
278 <command>dialog-apply</command>
279 <object-name>transversal</object-name>
280 </binding>
281 </slider>
282
283 <button>
284 <legend>&gt;</legend>
285 <pref-width>22</pref-width>
286 <pref-height>22</pref-height>
287
288 <binding>
289 <command>property-adjust</command>
290 <property>/sim/jetways/adjust/transversal/offset</property>
291 <step>1</step>
292 </binding>
293 <binding>
294 <command>nasal</command>
295 <script>update("transversal")</script>
296 </binding>
297 </button>
298
299 <button>
300 <legend>&gt;&gt;</legend>
301 <pref-width>22</pref-width>
302 <pref-height>22</pref-height>
303
304 <binding>
305 <command>property-adjust</command>
306 <property>/sim/jetways/adjust/transversal/offset</property>
307 <step>10</step>
308 </binding>
309 <binding>
310 <command>nasal</command>
311 <script>update("transversal")</script>
312 </binding>
313 </button>
314 </group>
315
316 <group>
317 <layout>hbox</layout>
318 <default-padding>0</default-padding>
319
320 <button>
321 <legend>&lt;&lt;</legend>
322 <pref-width>22</pref-width>
323 <pref-height>22</pref-height>
324
325 <binding>
326 <command>property-adjust</command>
327 <property>/sim/jetways/adjust/altitude/offset</property>
328 <step>-10</step>
329 </binding>
330 <binding>
331 <command>nasal</command>
332 <script>update("altitude")</script>
333 </binding>
334 </button>
335
336 <button>
337 <legend>&lt;</legend>
338 <pref-width>22</pref-width>
339 <pref-height>22</pref-height>
340
341 <binding>
342 <command>property-adjust</command>
343 <property>/sim/jetways/adjust/altitude/offset</property>
344 <step>-1</step>
345 </binding>
346 <binding>
347 <command>nasal</command>
348 <script>update("altitude")</script>
349 </binding>
350 </button>
351
352 <slider>
353 <name>altitude</name>
354 <property>/sim/jetways/adjust/altitude/slider</property>
355 <legend>altitude</legend>
356 <pref-width>250</pref-width>
357 <live>1</live>
358 <min>-1</min>
359 <max>1</max>
360
361 <color>
362 <red>0.6</red>
363 <green>0.6</green>
364 <blue>1.0</blue>
365 <alpha>1.0</alpha>
366 </color>
367
368 <binding>
369 <command>dialog-apply</command>
370 <object-name>altitude</object-name>
371 </binding>
372 </slider>
373
374 <button>
375 <legend>&gt;</legend>
376 <pref-width>22</pref-width>
377 <pref-height>22</pref-height>
378
379 <binding>
380 <command>property-adjust</command>
381 <property>/sim/jetways/adjust/altitude/offset</property>
382 <step>1</step>
383 </binding>
384 <binding>
385 <command>nasal</command>
386 <script>update("altitude")</script>
387 </binding>
388 </button>
389
390 <button>
391 <legend>&gt;&gt;</legend>
392 <pref-width>22</pref-width>
393 <pref-height>22</pref-height>
394
395 <binding>
396 <command>property-adjust</command>
397 <property>/sim/jetways/adjust/altitude/offset</property>
398 <step>10</step>
399 </binding>
400 <binding>
401 <command>nasal</command>
402 <script>update("altitude")</script>
403 </binding>
404 </button>
405 </group>
406
407 <group>
408 <layout>hbox</layout>
409 <default-padding>0</default-padding>
410
411 <button>
412 <legend>&lt;&lt;</legend>
413 <pref-width>22</pref-width>
414 <pref-height>22</pref-height>
415
416 <binding>
417 <command>property-adjust</command>
418 <property>/sim/jetways/adjust/heading/offset</property>
419 <step>-6</step>
420 </binding>
421 <binding>
422 <command>nasal</command>
423 <script>update("heading")</script>
424 </binding>
425 </button>
426
427 <button>
428 <legend>&lt;</legend>
429 <pref-width>22</pref-width>
430 <pref-height>22</pref-height>
431
432 <binding>
433 <command>property-adjust</command>
434 <property>/sim/jetways/adjust/heading/offset</property>
435 <step>-1</step>
436 </binding>
437 <binding>
438 <command>nasal</command>
439 <script>update("heading")</script>
440 </binding>
441 </button>
442
443 <slider>
444 <name>heading</name>
445 <property>/sim/jetways/adjust/heading/slider</property>
446 <legend>heading</legend>
447 <pref-width>250</pref-width>
448 <live>1</live>
449 <min>-1</min>
450 <max>1</max>
451
452 <color>
453 <red>1.0</red>
454 <green>1.0</green>
455 <blue>0.6</blue>
456 <alpha>1.0</alpha>
457 </color>
458
459 <binding>
460 <command>dialog-apply</command>
461 <object-name>heading</object-name>
462 </binding>
463 </slider>
464
465 <button>
466 <legend>&gt;</legend>
467 <pref-width>22</pref-width>
468 <pref-height>22</pref-height>
469
470 <binding>
471 <command>property-adjust</command>
472 <property>/sim/jetways/adjust/heading/offset</property>
473 <step>1</step>
474 </binding>
475 <binding>
476 <command>nasal</command>
477 <script>update("heading")</script>
478 </binding>
479 </button>
480
481 <button>
482 <legend>&gt;&gt;</legend>
483 <pref-width>22</pref-width>
484 <pref-height>22</pref-height>
485
486 <binding>
487 <command>property-adjust</command>
488 <property>/sim/jetways/adjust/heading/offset</property>
489 <step>6</step>
490 </binding>
491 <binding>
492 <command>nasal</command>
493 <script>update("heading")</script>
494 </binding>
495 </button>
496 </group>
497
498 <hrule />
499
500 <group>
501 <layout>hbox</layout>
502 <default-padding>0</default-padding>
503
504 <button>
505 <legend>&lt;&lt;</legend>
506 <pref-width>22</pref-width>
507 <pref-height>22</pref-height>
508
509 <binding>
510 <command>property-adjust</command>
511 <property>/sim/jetways/adjust/initial-extension/offset</property>
512 <step>-3</step>
513 </binding>
514 <binding>
515 <command>nasal</command>
516 <script>update("initial-extension")</script>
517 </binding>
518 </button>
519
520 <button>
521 <legend>&lt;</legend>
522 <pref-width>22</pref-width>
523 <pref-height>22</pref-height>
524
525 <binding>
526 <command>property-adjust</command>
527 <property>/sim/jetways/adjust/initial-extension/offset</property>
528 <step>-1</step>
529 </binding>
530 <binding>
531 <command>nasal</command>
532 <script>update("initial-extension")</script>
533 </binding>
534 </button>
535
536 <slider>
537 <name>initial-extension</name>
538 <property>/sim/jetways/adjust/initial-extension/slider</property>
539 <legend>extension offset</legend>
540 <pref-width>250</pref-width>
541 <live>1</live>
542 <min>-1</min>
543 <max>1</max>
544
545 <color>
546 <red>1.0</red>
547 <green>1.0</green>
548 <blue>1.0</blue>
549 <alpha>1.0</alpha>
550 </color>
551
552 <binding>
553 <command>dialog-apply</command>
554 <object-name>initial-extension</object-name>
555 </binding>
556 </slider>
557
558 <button>
559 <legend>&gt;</legend>
560 <pref-width>22</pref-width>
561 <pref-height>22</pref-height>
562
563 <binding>
564 <command>property-adjust</command>
565 <property>/sim/jetways/adjust/initial-extension/offset</property>
566 <step>1</step>
567 </binding>
568 <binding>
569 <command>nasal</command>
570 <script>update("initial-extension")</script>
571 </binding>
572 </button>
573
574 <button>
575 <legend>&gt;&gt;</legend>
576 <pref-width>22</pref-width>
577 <pref-height>22</pref-height>
578
579 <binding>
580 <command>property-adjust</command>
581 <property>/sim/jetways/adjust/initial-extension/offset</property>
582 <step>3</step>
583 </binding>
584 <binding>
585 <command>nasal</command>
586 <script>update("initial-extension")</script>
587 </binding>
588 </button>
589 </group>
590
591 <group>
592 <layout>hbox</layout>
593 <default-padding>0</default-padding>
594
595 <button>
596 <legend>&lt;&lt;</legend>
597 <pref-width>22</pref-width>
598 <pref-height>22</pref-height>
599
600 <binding>
601 <command>property-adjust</command>
602 <property>/sim/jetways/adjust/initial-pitch/offset</property>
603 <step>-2</step>
604 </binding>
605 <binding>
606 <command>nasal</command>
607 <script>update("initial-pitch")</script>
608 </binding>
609 </button>
610
611 <button>
612 <legend>&lt;</legend>
613 <pref-width>22</pref-width>
614 <pref-height>22</pref-height>
615
616 <binding>
617 <command>property-adjust</command>
618 <property>/sim/jetways/adjust/initial-pitch/offset</property>
619 <step>-1</step>
620 </binding>
621 <binding>
622 <command>nasal</command>
623 <script>update("initial-pitch")</script>
624 </binding>
625 </button>
626
627 <slider>
628 <name>initial-pitch</name>
629 <property>/sim/jetways/adjust/initial-pitch/slider</property>
630 <legend>pitch offset</legend>
631 <pref-width>250</pref-width>
632 <live>1</live>
633 <min>-1</min>
634 <max>1</max>
635
636 <color>
637 <red>0.8</red>
638 <green>0.8</green>
639 <blue>0.8</blue>
640 <alpha>0.8</alpha>
641 </color>
642
643 <binding>
644 <command>dialog-apply</command>
645 <object-name>initial-pitch</object-name>
646 </binding>
647 </slider>
648
649 <button>
650 <legend>&gt;</legend>
651 <pref-width>22</pref-width>
652 <pref-height>22</pref-height>
653
654 <binding>
655 <command>property-adjust</command>
656 <property>/sim/jetways/adjust/initial-pitch/offset</property>
657 <step>1</step>
658 </binding>
659 <binding>
660 <command>nasal</command>
661 <script>update("initial-pitch")</script>
662 </binding>
663 </button>
664
665 <button>
666 <legend>&gt;&gt;</legend>
667 <pref-width>22</pref-width>
668 <pref-height>22</pref-height>
669
670 <binding>
671 <command>property-adjust</command>
672 <property>/sim/jetways/adjust/initial-pitch/offset</property>
673 <step>2</step>
674 </binding>
675 <binding>
676 <command>nasal</command>
677 <script>update("initial-pitch")</script>
678 </binding>
679 </button>
680 </group>
681
682 <group>
683 <layout>hbox</layout>
684 <default-padding>0</default-padding>
685
686 <button>
687 <legend>&lt;&lt;</legend>
688 <pref-width>22</pref-width>
689 <pref-height>22</pref-height>
690
691 <binding>
692 <command>property-adjust</command>
693 <property>/sim/jetways/adjust/initial-heading/offset</property>
694 <step>-2</step>
695 </binding>
696 <binding>
697 <command>nasal</command>
698 <script>update("initial-heading")</script>
699 </binding>
700 </button>
701
702 <button>
703 <legend>&lt;</legend>
704 <pref-width>22</pref-width>
705 <pref-height>22</pref-height>
706
707 <binding>
708 <command>property-adjust</command>
709 <property>/sim/jetways/adjust/initial-heading/offset</property>
710 <step>-1</step>
711 </binding>
712 <binding>
713 <command>nasal</command>
714 <script>update("initial-heading")</script>
715 </binding>
716 </button>
717
718 <slider>
719 <name>initial-heading</name>
720 <property>/sim/jetways/adjust/initial-heading/slider</property>
721 <legend>rotation offset</legend>
722 <pref-width>250</pref-width>
723 <live>1</live>
724 <min>-1</min>
725 <max>1</max>
726
727 <color>
728 <red>0.6</red>
729 <green>0.6</green>
730 <blue>0.6</blue>
731 <alpha>0.6</alpha>
732 </color>
733
734 <binding>
735 <command>dialog-apply</command>
736 <object-name>initial-heading</object-name>
737 </binding>
738 </slider>
739
740 <button>
741 <legend>&gt;</legend>
742 <pref-width>22</pref-width>
743 <pref-height>22</pref-height>
744
745 <binding>
746 <command>property-adjust</command>
747 <property>/sim/jetways/adjust/initial-heading/offset</property>
748 <step>1</step>
749 </binding>
750 <binding>
751 <command>nasal</command>
752 <script>update("initial-heading")</script>
753 </binding>
754 </button>
755
756 <button>
757 <legend>&gt;&gt;</legend>
758 <pref-width>22</pref-width>
759 <pref-height>22</pref-height>
760
761 <binding>
762 <command>property-adjust</command>
763 <property>/sim/jetways/adjust/initial-heading/offset</property>
764 <step>2</step>
765 </binding>
766 <binding>
767 <command>nasal</command>
768 <script>update("initial-heading")</script>
769 </binding>
770 </button>
771 </group>
772
773 <group>
774 <layout>hbox</layout>
775 <default-padding>0</default-padding>
776
777 <button>
778 <legend>&lt;&lt;</legend>
779 <pref-width>22</pref-width>
780 <pref-height>22</pref-height>
781
782 <binding>
783 <command>property-adjust</command>
784 <property>/sim/jetways/adjust/initial-entrance-heading/offset</property>
785 <step>-6</step>
786 </binding>
787 <binding>
788 <command>nasal</command>
789 <script>update("initial-entrance-heading")</script>
790 </binding>
791 </button>
792
793 <button>
794 <legend>&lt;</legend>
795 <pref-width>22</pref-width>
796 <pref-height>22</pref-height>
797
798 <binding>
799 <command>property-adjust</command>
800 <property>/sim/jetways/adjust/initial-entrance-heading/offset</property>
801 <step>-1</step>
802 </binding>
803 <binding>
804 <command>nasal</command>
805 <script>update("initial-entrance-heading")</script>
806 </binding>
807 </button>
808
809 <slider>
810 <name>initial-entrance-heading</name>
811 <property>/sim/jetways/adjust/initial-entrance-heading/slider</property>
812 <legend>entrance rotation offset</legend>
813 <pref-width>250</pref-width>
814 <live>1</live>
815 <min>-1</min>
816 <max>1</max>
817
818 <color>
819 <red>0.4</red>
820 <green>0.4</green>
821 <blue>0.4</blue>
822 <alpha>0.4</alpha>
823 </color>
824
825 <binding>
826 <command>dialog-apply</command>
827 <object-name>initial-entrance-heading</object-name>
828 </binding>
829 </slider>
830
831 <button>
832 <legend>&gt;</legend>
833 <pref-width>22</pref-width>
834 <pref-height>22</pref-height>
835
836 <binding>
837 <command>property-adjust</command>
838 <property>/sim/jetways/adjust/initial-entrance-heading/offset</property>
839 <step>1</step>
840 </binding>
841 <binding>
842 <command>nasal</command>
843 <script>update("initial-entrance-heading")</script>
844 </binding>
845 </button>
846
847 <button>
848 <legend>&gt;&gt;</legend>
849 <pref-width>22</pref-width>
850 <pref-height>22</pref-height>
851
852 <binding>
853 <command>property-adjust</command>
854 <property>/sim/jetways/adjust/initial-entrance-heading/offset</property>
855 <step>6</step>
856 </binding>
857 <binding>
858 <command>nasal</command>
859 <script>update("initial-entrance-heading")</script>
860 </binding>
861 </button>
862 </group>
863
864 <group>
865 <layout>table</layout>
866 <text>
867 <row>0</row>
868 <col>0</col>
869 <halign>right</halign>
870 <label>Model:</label>
871 </text>
872 <combo>
873 <name>model</name>
874 <row>0</row>
875 <col>1</col>
876 <property>/sim/jetways/adjust/model</property>
877 <live type="bool">true</live>
878 <binding>
879 <command>dialog-apply</command>
880 <object-name>model</object-name>
881 </binding>
882 </combo>
883 <text>
884 <row>1</row>
885 <col>0</col>
886 <halign>right</halign>
887 <label>Door:</label>
888 </text>
889 <combo>
890 <name>door</name>
891 <row>1</row>
892 <col>1</col>
893 <property>/sim/jetways/adjust/door</property>
894 <live type="bool">true</live>
895 <value>0</value>
896 <value>1</value>
897 <value>2</value>
898 <binding>
899 <command>dialog-apply</command>
900 <object-name>door</object-name>
901 </binding>
902 </combo>
903 <text>
904 <row>0</row>
905 <col>2</col>
906 <halign>right</halign>
907 <label>Airline sign:</label>
908 </text>
909 <combo>
910 <name>airline</name>
911 <row>0</row>
912 <col>3</col>
913 <property>/sim/jetways/adjust/airline</property>
914 <live type="bool">true</live>
915 <binding>
916 <command>dialog-apply</command>
917 <object-name>airline</object-name>
918 </binding>
919 </combo>
920 <text>
921 <row>1</row>
922 <col>2</col>
923 <halign>right</halign>
924 <label>Gate:</label>
925 </text>
926 <input>
927 <name>gate</name>
928 <row>1</row>
929 <col>3</col>
930 <property>/sim/jetways/adjust/gate</property>
931 <live type="bool">true</live>
932 <binding>
933 <command>dialog-apply</command>
934 <object-name>gate</object-name>
935 </binding>
936 </input>
937 </group>
938
939 <hrule />
940
941 <group>
942 <layout>hbox</layout>
943 <button>
944 <pref-height>24</pref-height>
945 <legend>Center sliders</legend>
946 <binding>
947 <command>nasal</command>
948 <script>
949 center_sliders();
950 </script>
951 </binding>
952 </button>
953 <button>
954 <pref-height>24</pref-height>
955 <legend>Export</legend>
956 <border>2</border>
957 <binding>
958 <command>nasal</command>
959 <script>
960 jetways_edit.export();
961 </script>
962 </binding>
963 </button>
964 <button>
965 <pref-height>24</pref-height>
966 <legend>STG converter</legend>
967 <border>2</border>
968 <binding>
969 <command>nasal</command>
970 <script>
971 jetways_edit.convert_stg();
972 </script>
973 </binding>
974 </button>
975 <button>
976 <pref-height>24</pref-height>
977 <legend>?</legend>
978 <border>2</border>
979 <binding>
980 <command>nasal</command>
981 <script>
982 jetways_edit.print_help();
983 </script>
984 </binding>
985 </button>
986 </group>
987
988 </PropertyList>