Debian Codegraph @

Aircraft/ufo/Dialogs/select.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4 <name>ufo-select</name>
5 <resizable>true</resizable>
6 <layout>vbox</layout>
7 <x>-20</x>
8 <pref-width>300</pref-width>
9
10 <group>
11 <layout>hbox</layout>
12 <empty><stretch>1</stretch></empty>
13
14 <text>
15 <label>Select model</label>
16 </text>
17
18 <empty><stretch>1</stretch></empty>
19
20 <button>
21 <pref-width>16</pref-width>
22 <pref-height>16</pref-height>
23 <legend></legend>
24 <default>1</default>
25 <keynum>27</keynum>
26 <border>2</border>
27
28 <binding>
29 <command>nasal</command>
30 <script>ufo.select_dialog.close()</script>
31 </binding>
32 </button>
33 </group>
34
35 <hrule/>
36
37 <nasal>
38 <open>
39 var self = cmdarg();
40 var list = self.getNode("list");
41 list.removeChildren("value");
42 forindex (var i; ufo.modellist)
43 list.getChild("value", i, 1).setValue(ufo.modellist[i]);
44 </open>
45 </nasal>
46
47 <list>
48 <halign>fill</halign>
49 <valign>fill</valign>
50 <stretch>true</stretch>
51 <padding>5</padding>
52 <pref-height>300</pref-height>
53 <property>cursor</property>
54 <binding>
55 <command>dialog-apply</command>
56 </binding>
57 <binding>
58 <command>nasal</command>
59 <script>ufo.modelmgr.set_modelpath(getprop("cursor"))</script>
60 </binding>
61 </list>
62 </PropertyList>
63