1
0
Fork 0

Added instrument-failure dialog.

Cleaned up system-failure dialog.
This commit is contained in:
david 2003-01-26 20:19:15 +00:00
parent c4af6e3ccc
commit b9375d1005
3 changed files with 217 additions and 88 deletions

View file

@ -0,0 +1,169 @@
<?xml version="1.0"?>
<PropertyList>
<!-- Control the weather -->
<name>instrument-failures</name>
<width>500</width>
<height>240</height>
<modal>false</modal>
<text>
<x>10</x>
<y>210</y>
<label>Instrument Failures</label>
</text>
<group>
<y>180</y>
<text>
<x>100</x>
<label>(Uncheck an instrument to fail it.)</label>
</text>
</group>
<group>
<y>150</y>
<checkbox>
<x>10</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Airspeed Indicator</label>
<property>/instrumentation/airspeed-indicator/serviceable</property>
</checkbox>
<checkbox>
<x>240</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Attitude Indicator</label>
<property>/instrumentation/attitude-indicator/serviceable</property>
</checkbox>
</group>
<group>
<y>120</y>
<checkbox>
<x>10</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Altimeter</label>
<property>/instrumentation/altimeter/serviceable</property>
</checkbox>
<checkbox>
<x>240</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Turn Indicator</label>
<property>/instrumentation/turn-indicator/serviceable</property>
</checkbox>
</group>
<group>
<y>90</y>
<checkbox>
<x>10</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Slip/Skid Ball</label>
<property>/instrumentation/slip-skid-ball/serviceable</property>
</checkbox>
<checkbox>
<x>240</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Heading Indicator</label>
<property>/instrumentation/heading-indicator/serviceable</property>
</checkbox>
</group>
<group>
<y>60</y>
<checkbox>
<x>10</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Vertical Speed Indicator</label>
<property>/instrumentation/vertical-speed-indicator/serviceable</property>
</checkbox>
<checkbox>
<x>240</x>
<y>0</y>
<width>20</width>
<height>20</height>
<label>Magnetic Compass</label>
<property>/instrumentation/magnetic-compass/serviceable</property>
</checkbox>
</group>
<group>
<y>10</y>
<button>
<x>50</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>150</x>
<y>0</y>
<legend>Apply</legend>
<binding>
<command>dialog-apply</command>
</binding>
</button>
<button>
<x>250</x>
<y>0</y>
<legend>Reset</legend>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<x>350</x>
<y>0</y>
<legend>Cancel</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>

View file

@ -5,111 +5,63 @@
<!-- Control the weather --> <!-- Control the weather -->
<name>system-failures</name> <name>system-failures</name>
<width>320</width> <width>300</width>
<height>300</height> <height>240</height>
<modal>false</modal> <modal>false</modal>
<text> <text>
<x>10</x> <x>10</x>
<y>270</y> <y>210</y>
<label>System Failures</label> <label>System Failures</label>
</text> </text>
<group>
<y>210</y>
<text>
<x>10</x>
<label>System</label>
</text>
<text>
<x>150</x>
<label>Enabled</label>
</text>
</group>
<group>
<y>180</y>
<text> <text>
<x>30</x> <x>30</x>
<y>0</y> <y>180</y>
<label>Static System</label> <label>(Uncheck a system to fail it.)</label>
</text> </text>
<checkbox> <checkbox>
<x>200</x> <x>30</x>
<y>10</y> <y>150</y>
<width>12</width> <width>20</width>
<height>12</height> <height>20</height>
<label>Static System</label>
<property>/systems/static/serviceable</property> <property>/systems/static/serviceable</property>
</checkbox> </checkbox>
</group>
<group>
<y>150</y>
<text>
<x>30</x>
<y>0</y>
<label>Pitot System</label>
</text>
<checkbox> <checkbox>
<x>200</x> <x>30</x>
<y>10</y> <y>120</y>
<width>12</width> <width>20</width>
<height>12</height> <height>20</height>
<label>Pitot System</label>
<property>/systems/pitot/serviceable</property> <property>/systems/pitot/serviceable</property>
</checkbox> </checkbox>
</group>
<group>
<y>120</y>
<text>
<x>30</x>
<y>0</y>
<label>Electrical System</label>
</text>
<checkbox> <checkbox>
<x>200</x> <x>30</x>
<y>10</y> <y>90</y>
<width>12</width> <width>20</width>
<height>12</height> <height>20</height>
<label>Electrical System</label>
<property>/systems/electrical/serviceable</property> <property>/systems/electrical/serviceable</property>
</checkbox> </checkbox>
</group>
<group>
<y>90</y>
<text>
<x>30</x>
<y>0</y>
<label>Vacuum System</label>
</text>
<checkbox> <checkbox>
<x>200</x> <x>30</x>
<y>10</y> <y>60</y>
<width>12</width> <width>20</width>
<height>12</height> <height>20</height>
<label>Vacuum System</label>
<property>/systems/vacuum/serviceable</property> <property>/systems/vacuum/serviceable</property>
</checkbox> </checkbox>
</group>
<group> <group>
<y>10</y> <y>10</y>
<button> <button>
<x>5</x> <x>10</x>
<y>0</y> <y>0</y>
<legend>OK</legend> <legend>OK</legend>
<binding> <binding>
@ -122,7 +74,7 @@
</button> </button>
<button> <button>
<x>80</x> <x>60</x>
<y>0</y> <y>0</y>
<legend>Apply</legend> <legend>Apply</legend>
<binding> <binding>
@ -131,7 +83,7 @@
</button> </button>
<button> <button>
<x>155</x> <x>140</x>
<y>0</y> <y>0</y>
<legend>Reset</legend> <legend>Reset</legend>
<binding> <binding>
@ -140,7 +92,7 @@
</button> </button>
<button> <button>
<x>230</x> <x>220</x>
<y>0</y> <y>0</y>
<legend>Cancel</legend> <legend>Cancel</legend>
<binding> <binding>

View file

@ -113,6 +113,14 @@
</binding> </binding>
</item> </item>
<item>
<label>Instrument Failures</label>
<binding>
<command>dialog-show</command>
<dialog-name>instrument-failures</dialog-name>
</binding>
</item>
</menu> </menu>
<menu> <menu>