1
0
Fork 0
fgdata/gui/dialogs/save_flight.xml
mfranz 9c49dccd5b let all dialogs in $FG_ROOT/gui/dialogs be closed/canceled/dismissed on
Escape key; nasal generated dialogs will follow
2005-11-05 13:59:06 +00:00

43 lines
1,018 B
XML

<?xml version="1.0"?>
<PropertyList>
<name>save_flight</name>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text><label>File Name:</label></text>
<input>
<halign>fill</halign>
<stretch>true</stretch>
<property>/tmp/flight/file</property>
</input>
</group>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<button>
<legend>OK</legend>
<equal>true</equal>
<default>true</default>
<binding><command>dialog-apply</command></binding>
<binding>
<command>nasal</command>
<script>
fgcommand("save", props.globals.getNode("/tmp/flight") );
</script>
</binding>
<binding><command>dialog-close</command></binding>
</button>
<empty><stretch>true</stretch></empty>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<keynum>27</keynum>
<binding><command>dialog-close</command></binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>