1
0
Fork 0
fgdata/gui/dialogs/airports.xml
ehofman 54aef2464c Andrew Midson:
I have made the
'Select Airport from List' option in FlightGear work
(I think) properly. I have some concerns about the
solution, which could be broken by changes to plib (if
they re-use the value I have assigned to
PUCLASS_LIST), but for the moment it seems to work OK.

Erik Hofman:
A request has been sent to John Fay to include the puList
code in the puAux subdirectory of plib so expect some
changes for future version of FlightGear.
2005-01-31 10:37:21 +00:00

64 lines
1.7 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>airports</name>
<layout>vbox</layout>
<text>
<label>Select an Airport</label>
</text>
<!-- The airport list widget appears to have a bug with layout; it
fails to draw within the x/y/width/height it is given. -->
<airport-list>
<pref-width>440</pref-width>
<pref-height>360</pref-height>
<property>/sim/presets/airport-id</property>
</airport-list>
<group>
<layout>hbox</layout>
<default-padding>10</default-padding>
<empty><stretch>true</stretch></empty>
<button>
<legend>Apply</legend>
<equal>true</equal>
<default>true</default>
<binding>
<command>nasal</command>
<script>
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);
setprop("/sim/presets/runway", "");
</script>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>presets-commit</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
<button>
<legend>Close</legend>
<equal>true</equal>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>