Debian Codegraph @

gui/dialogs/volcanoes.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4 <name>volcanoes</name>
5 <layout>vbox</layout>
6 <default-padding>1</default-padding>
7 <modal>false</modal>
8 <width>400</width>
9
10 <group>
11 <layout>hbox</layout>
12
13 <text>
14 <label>Nearby Volcanic Activity</label>
15 </text>
16
17 <empty>
18 <stretch>1</stretch>
19 </empty>
20
21 <button>
22 <legend>X</legend>
23 <key>Esc</key>
24 <pref-width>20</pref-width>
25 <pref-height>20</pref-height>
26 <binding>
27 <command>dialog-close</command>
28 </binding>
29 </button>
30 </group>
31
32 <hrule/>
33
34 <group>
35 <layout>table</layout>
36
37
38 <checkbox>
39 <name>enable-volcanoes</name>
40 <row>0</row>
41 <col>0</col>
42 <halign>left</halign>
43 <property>/environment/volcanoes/enable-volcanoes</property>
44 <label>Enable Volcanic Activity</label>
45 <live>true</live>
46 <binding>
47 <command>dialog-apply</command>
48 <object-name>enable-volcanoes</object-name>
49 </binding>
50 </checkbox>
51
52 </group>
53
54 <empty>
55 <pref-height>8</pref-height>
56 </empty>
57
58 <group>
59 <layout>table</layout>
60
61 <text>
62 <label>Select a nearby volcano from the list to set its activity</label>
63 <halign>left</halign>
64 <row>0</row>
65 <col>0</col>
66 </text>
67
68 <combo>
69 <row>2</row>
70 <col>0</col>
71 <name>object-selection</name>
72 <halign>left</halign>
73 <stretch>true</stretch>
74 <pref-width>380</pref-width>
75 <property>/environment/volcanoes/volcano-selected</property>
76 <properties>/environment/volcanoes/volcanoes-nearby/</properties>
77 <value>Kilauea</value>
78 <binding>
79 <command>dialog-apply</command>
80 <object-name>object-selection</object-name>
81 </binding>
82 </combo>
83
84
85
86 </group>
87
88
89 <empty>
90 <pref-height>12</pref-height>
91 </empty>
92
93 <hrule/>
94
95 <empty>
96 <pref-height>20</pref-height>
97 </empty>
98
99 <group>
100 <layout>table</layout>
101
102 <button>
103 <row>0</row>
104 <col>0</col>
105 <legend>OK</legend>
106 <default>true</default>
107 <equal>true</equal>
108 <binding>
109 <command>dialog-apply</command>
110 </binding>
111
112 <binding>
113 <command>nasal</command>
114 <script>
115 var obj_dlg_id = getprop("/environment/volcanoes/volcano-selected");
116
117 var dlg = gui.Dialog.new(obj_dlg_id);
118 dlg.open();
119
120 </script>
121 </binding>
122
123 <binding>
124 <command>dialog-close</command>
125 </binding>
126 </button>
127
128 </group>
129
130 </PropertyList>