1
0
Fork 0
fgdata/gui/dialogs/volcano-kilauea.xml

153 lines
2.7 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0"?>
<PropertyList>
<name>Kilauea</name>
<layout>vbox</layout>
<default-padding>1</default-padding>
<modal>false</modal>
<width>400</width>
<empty>
<pref-height>6</pref-height>
</empty>
<text>
<label>Kilauea activity</label>
</text>
<empty>
<pref-height>4</pref-height>
</empty>
<hrule/>
<group>
<layout>table</layout>
<text>
<label>Halemaumau activity</label>
<halign>left</halign>
<row>0</row>
<col>0</col>
</text>
<text>
<label>dormant</label>
<row>0</row>
<col>1</col>
</text>
<slider>
<name>halemaumau</name>
<row>0</row>
<col>2</col>
<min>0</min>
<max>2</max>
<step>1</step>
<live>true</live>
<property>/environment/volcanoes/kilauea/halemaumau-activity</property>
<binding>
<command>dialog-apply</command>
<object-name>halemaumau</object-name>
</binding>
</slider>
<text>
<label>active</label>
<row>0</row>
<col>3</col>
</text>
<text>
<label>Puu Oo activity</label>
<halign>left</halign>
<row>1</row>
<col>0</col>
</text>
<text>
<label>dormant</label>
<row>1</row>
<col>1</col>
</text>
<slider>
<name>puu-oo</name>
<row>1</row>
<col>2</col>
<min>0</min>
<max>3</max>
<step>1</step>
<live>true</live>
<property>/environment/volcanoes/kilauea/puu-oo-activity</property>
<binding>
<command>dialog-apply</command>
<object-name>puu-oo</object-name>
</binding>
</slider>
<text>
<label>active</label>
<row>1</row>
<col>3</col>
</text>
</group>
<empty>
<pref-height>12</pref-height>
</empty>
<hrule/>
<empty>
<pref-height>20</pref-height>
</empty>
<group>
<layout>table</layout>
<button>
<row>0</row>
<col>0</col>
<legend>OK</legend>
<default>true</default>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
var obj_dlg_id = getprop("/environment/volcanoes/volcano-selected");
var dlg = gui.Dialog.new(obj_dlg_id);
dlg.open();
</script>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<row>0</row>
<col>1</col>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>