1
0
Fork 0

Add a dialog for selecting an airport from a scrolling list.

This commit is contained in:
david 2003-11-27 23:43:43 +00:00
parent 1ccc0af293
commit 545a40e434
2 changed files with 68 additions and 0 deletions

60
gui/dialogs/airports.xml Normal file
View file

@ -0,0 +1,60 @@
<?xml version="1.0"?>
<PropertyList>
<name>airports</name>
<width>480</width>
<height>480</height>
<modal>true</modal>
<text>
<x>10</x>
<y>450</y>
<label>Select an Airport:</label>
</text>
<airport-list>
<x>10</x>
<y>40</y>
<width>440</width>
<height>360</height>
<property>/sim/presets/airport-id</property>
</airport-list>
<button>
<x>100</x>
<y>10</y>
<legend>Select</legend>
<binding>
<command>property-assign</command>
<property>/sim/presets/longitude-deg</property>
<value type="double">-9999</value>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/presets/latitude-deg</property>
<value type="double">-9999</value>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/presets/altitude-ft</property>
<value type="double">-9999</value>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>presets-commit</command>
</binding>
</button>
<button>
<x>300</x>
<y>10</y>
<legend>Cancel</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>

View file

@ -134,6 +134,14 @@
</binding> </binding>
</item> </item>
<item>
<label>Select Airport from List</label>
<binding>
<command>dialog-show</command>
<dialog-name>airports</dialog-name>
</binding>
</item>
<item> <item>
<label>Random Attitude</label> <label>Random Attitude</label>
<binding> <binding>