Start on a grand, unified presets dialog.
Use the existing command for screenshots.
This commit is contained in:
parent
95858c3944
commit
6520b529e8
2 changed files with 146 additions and 1 deletions
137
gui/dialogs/presets.xml
Normal file
137
gui/dialogs/presets.xml
Normal file
|
@ -0,0 +1,137 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>presets</name>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
|
||||
<text>
|
||||
<x>10</x>
|
||||
<y>270</y>
|
||||
<label>Default Situation</label>
|
||||
</text>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>240</y>
|
||||
<legend>REVERT TO DEFAULTS</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>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>210</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Airport</label>
|
||||
<property>/sim/presets/airport-id</property>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>180</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Runway</label>
|
||||
<property>/sim/presets/runway</property>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>150</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Distance (mi)</label>
|
||||
<property>/sim/presets/offset-distance</property>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>120</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Altitude (ft)</label>
|
||||
<property>/sim/presets/altitude-ft</property>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>90</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Glidepath (deg)</label>
|
||||
<property>/sim/presets/glidescope-deg</property>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<x>10</x>
|
||||
<y>60</y>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
<label>Airspeed (kt)</label>
|
||||
<property>/sim/presets/airspeed-kt</property>
|
||||
</input>
|
||||
|
||||
<!-- Button Box -->
|
||||
<group>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
|
||||
<button>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>200</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>300</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
</group>
|
||||
|
||||
</PropertyList>
|
|
@ -34,7 +34,7 @@
|
|||
<item>
|
||||
<label>Snapshot</label>
|
||||
<binding>
|
||||
<command>old-snapshot-dialog</command>
|
||||
<command>screen-capture</command>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
@ -90,6 +90,14 @@
|
|||
|
||||
<menu>
|
||||
<label>Presets</label>
|
||||
|
||||
<item>
|
||||
<label>Preset Values</label>
|
||||
<binding>
|
||||
<command>dialog-show</command>
|
||||
<dialog-name>presets</dialog-name>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<label>Preset Airport</label>
|
||||
|
|
Loading…
Reference in a new issue