2003-01-21 15:47:37 +00:00
|
|
|
<?xml version="1.0"?>
|
2006-03-31 10:30:46 +00:00
|
|
|
|
2003-01-21 15:47:37 +00:00
|
|
|
<PropertyList>
|
2004-05-12 15:37:17 +00:00
|
|
|
<name>location-on-ground</name>
|
|
|
|
<layout>vbox</layout>
|
2006-03-31 10:30:46 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<text>
|
|
|
|
<label>Set New Location</label>
|
|
|
|
</text>
|
2006-03-31 10:30:46 +00:00
|
|
|
|
|
|
|
<hrule><empty/></hrule>
|
|
|
|
|
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
dlg = props.globals.getNode("/sim/gui/dialogs/location-on-ground", 1);
|
|
|
|
apt = dlg.getNode("airport", 1);
|
|
|
|
apt.setValue("");
|
|
|
|
rwy = dlg.getNode("runway", 1);
|
|
|
|
rwy.setValue("");
|
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<halign>center</halign>
|
|
|
|
<text>
|
|
|
|
<row>0</row><col>0</col>
|
|
|
|
<label>Airport:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<row>0</row><col>1</col>
|
2006-03-31 10:30:46 +00:00
|
|
|
<property>/sim/gui/dialogs/location-on-ground/airport</property>
|
2004-05-12 15:37:17 +00:00
|
|
|
</input>
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<label>Runway:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<row>1</row><col>1</col>
|
2006-03-31 10:30:46 +00:00
|
|
|
<property>/sim/gui/dialogs/location-on-ground/runway</property>
|
2004-05-12 15:37:17 +00:00
|
|
|
</input>
|
|
|
|
</group>
|
2003-01-21 15:47:37 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>10</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
2003-01-21 15:47:37 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<button>
|
|
|
|
<legend>OK</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
2006-03-31 10:30:46 +00:00
|
|
|
<command>dialog-apply</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2006-03-31 10:30:46 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
setprop("/sim/presets/airport-id", apt.getValue());
|
|
|
|
setprop("/sim/presets/runway", rwy.getValue());
|
|
|
|
setprop("/sim/presets/longitude-deg", -9999);
|
|
|
|
setprop("/sim/presets/latitude-deg", -9999);
|
|
|
|
setprop("/sim/presets/altitude-ft", -9999);
|
|
|
|
setprop("/sim/presets/airspeed-kt", 0);
|
|
|
|
setprop("/sim/presets/offset-distance", 0);
|
|
|
|
setprop("/sim/presets/offset-azimuth", 0);
|
|
|
|
setprop("/sim/presets/glideslope-deg", 0);
|
|
|
|
setprop("/sim/presets/heading-deg", 0);
|
|
|
|
</script>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2006-03-31 10:30:46 +00:00
|
|
|
<command>presets-commit</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2006-03-31 10:30:46 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
2003-01-21 15:47:37 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<empty><stretch>true</stretch></empty>
|
2003-01-21 15:47:37 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
2006-03-31 10:30:46 +00:00
|
|
|
<equal>true</equal>
|
2005-11-05 18:42:28 +00:00
|
|
|
<key>Esc</key>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2006-03-31 10:30:46 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
2003-01-21 15:47:37 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
2003-01-27 19:55:48 +00:00
|
|
|
</PropertyList>
|