1
0
Fork 0

Use an XML-configured exit dialog.

This commit is contained in:
david 2003-01-24 03:20:11 +00:00
parent 191433e9b4
commit a8ab993ef2
3 changed files with 45 additions and 54 deletions

38
gui/dialogs/exit.xml Normal file
View 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>

View file

@ -48,7 +48,8 @@
<item> <item>
<label>Quit</label> <label>Quit</label>
<binding> <binding>
<command>exit</command> <command>dialog-show</command>
<dialog-name>exit</dialog-name>
</binding> </binding>
</item> </item>
@ -79,17 +80,10 @@
</binding> </binding>
</item> </item>
<item>
<label>Browse Internal Properties</label>
<binding>
<command>old-properties-dialog</command>
</binding>
</item>
</menu> </menu>
<menu> <menu>
<label>Presets</label> <label>State</label>
<item> <item>
<label>Preset Values</label> <label>Preset Values</label>
@ -100,51 +94,9 @@
</item> </item>
<item> <item>
<label>Preset Airport</label> <label>Browse Internal Properties</label>
<binding> <binding>
<command>old-preset-airport-dialog</command> <command>old-properties-dialog</command>
</binding>
</item>
<item>
<label>Preset Runway</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>
</binding> </binding>
</item> </item>

View file

@ -116,7 +116,8 @@ calculated by adding 256 to the GLUT key value in glut.h.
<name>ESC</name> <name>ESC</name>
<desc>Prompt and quit FlightGear.</desc> <desc>Prompt and quit FlightGear.</desc>
<binding> <binding>
<command>exit</command> <command>dialog-show</command>
<dialog-name>exit</dialog-name>
</binding> </binding>
</key> </key>