1
0
Fork 0

Depreciate the old-load/save-dialog code.

This commit is contained in:
ehofman 2005-07-04 14:40:35 +00:00
parent e61b42ac68
commit c24684b0bf
3 changed files with 86 additions and 2 deletions

View file

@ -0,0 +1,41 @@
<?xml version="1.0"?>
<PropertyList>
<name>load_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>
<binding><command>dialog-apply</command></binding>
<binding>
<command>nasal</command>
<script>
fgcommand("load", 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>
<binding><command>dialog-close</command></binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>

View file

@ -0,0 +1,41 @@
<?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>
<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>
<binding><command>dialog-close</command></binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>

View file

@ -6,14 +6,16 @@
<item>
<label>Save</label>
<binding>
<command>old-save-dialog</command>
<command>dialog-show</command>
<dialog-name>save_flight</dialog-name>
</binding>
</item>
<item>
<label>Load</label>
<binding>
<command>old-load-dialog</command>
<command>dialog-show</command>
<dialog-name>load_flight</dialog-name>
</binding>
</item>