A first stab at an aircraft selection dialog
This commit is contained in:
parent
47a2481cf0
commit
1d93977c29
2 changed files with 59 additions and 1 deletions
50
gui/dialogs/aircraft.xml
Normal file
50
gui/dialogs/aircraft.xml
Normal 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>
|
|
@ -17,6 +17,14 @@
|
||||||
</binding>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<label>Load Aircraft</label>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-show</command>
|
||||||
|
<dialog-name>aircraft</dialog-name>
|
||||||
|
</binding>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<label>Reset</label>
|
<label>Reset</label>
|
||||||
<binding>
|
<binding>
|
||||||
|
@ -249,4 +257,4 @@
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
Loading…
Reference in a new issue