Use an XML-configured exit dialog.
This commit is contained in:
parent
191433e9b4
commit
a8ab993ef2
3 changed files with 45 additions and 54 deletions
38
gui/dialogs/exit.xml
Normal file
38
gui/dialogs/exit.xml
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<name>exit</name>
|
||||
<width>180</width>
|
||||
<height>100</height>
|
||||
<modal>true</modal>
|
||||
|
||||
<text>
|
||||
<x>10</x>
|
||||
<y>70</y>
|
||||
<label>Exit FlightGear?</label>
|
||||
</text>
|
||||
|
||||
<button>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<legend>Exit</legend>
|
||||
<default>true</default>
|
||||
<binding>
|
||||
<command>exit</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>10</y>
|
||||
<legend>Cancel</legend>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
</PropertyList>
|
|
@ -48,7 +48,8 @@
|
|||
<item>
|
||||
<label>Quit</label>
|
||||
<binding>
|
||||
<command>exit</command>
|
||||
<command>dialog-show</command>
|
||||
<dialog-name>exit</dialog-name>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
@ -79,17 +80,10 @@
|
|||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Browse Internal Properties</label>
|
||||
<binding>
|
||||
<command>old-properties-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
</menu>
|
||||
|
||||
<menu>
|
||||
<label>Presets</label>
|
||||
<label>State</label>
|
||||
|
||||
<item>
|
||||
<label>Preset Values</label>
|
||||
|
@ -98,53 +92,11 @@
|
|||
<dialog-name>presets</dialog-name>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Airport</label>
|
||||
<binding>
|
||||
<command>old-preset-airport-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Runway</label>
|
||||
<label>Browse Internal Properties</label>
|
||||
<binding>
|
||||
<command>old-preset-runway-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Offset Distance</label>
|
||||
<binding>
|
||||
<command>old-preset-offset-distance-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Altitude</label>
|
||||
<binding>
|
||||
<command>old-preset-altitude-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Glideslope</label>
|
||||
<binding>
|
||||
<command>old-preset-glideslope-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Airspeed</label>
|
||||
<binding>
|
||||
<command>old-preset-airspeed-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Commit Presets</label>
|
||||
<binding>
|
||||
<command>old-preset-commit-dialog</command>
|
||||
<command>old-properties-dialog</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
|
|
@ -116,7 +116,8 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
|||
<name>ESC</name>
|
||||
<desc>Prompt and quit FlightGear.</desc>
|
||||
<binding>
|
||||
<command>exit</command>
|
||||
<command>dialog-show</command>
|
||||
<dialog-name>exit</dialog-name>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
|
|
Loading…
Reference in a new issue