1
0
Fork 0

A first stab at an aircraft selection dialog

This commit is contained in:
ehofman 2003-03-29 15:01:56 +00:00
parent 47a2481cf0
commit 1d93977c29
2 changed files with 59 additions and 1 deletions

50
gui/dialogs/aircraft.xml Normal file
View file

@ -0,0 +1,50 @@
<?xml version="1.0"?>
<PropertyList>
<name>aircraft</name>
<width>250</width>
<height>95</height>
<modal>true</modal>
<text>
<x>10</x>
<y>65</y>
<label>Select aircraft</label>
</text>
<select>
<x>10</x>
<y>40</y>
<width>230</width>
<height>25</height>
<property>/sim/aircraft</property>
<selection>/sim/aircraft-types</selection>
</select>
<button>
<x>65</x>
<y>10</y>
<legend>OK</legend>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>load-aircraft</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
<default>true</default>
</button>
<button>
<x>125</x>
<y>10</y>
<legend>Cancel</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>

View file

@ -17,6 +17,14 @@
</binding>
</item>
<item>
<label>Load Aircraft</label>
<binding>
<command>dialog-show</command>
<dialog-name>aircraft</dialog-name>
</binding>
</item>
<item>
<label>Reset</label>
<binding>
@ -249,4 +257,4 @@
</menu>
</PropertyList>
</PropertyList>