2005-10-19 19:22:16 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
|
|
<name>location-of-tower</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Tower Position</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
2005-10-19 19:22:16 +00:00
|
|
|
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2005-10-19 19:22:16 +00:00
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<text>
|
|
|
|
<label>Select position of tower for the Tower Views</label>
|
|
|
|
</text>
|
|
|
|
|
2005-10-19 19:22:16 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
2011-04-18 20:57:42 +00:00
|
|
|
<checkbox>
|
|
|
|
<name>auto-tower</name>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<colspan>2</colspan>
|
|
|
|
<label>Always use nearest tower</label>
|
|
|
|
<property>/sim/tower/auto-position</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>auto-tower</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
2005-10-19 19:22:16 +00:00
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>1</row><col>0</col>
|
2010-12-27 20:19:31 +00:00
|
|
|
<halign>right</halign>
|
|
|
|
<label>Airport ID:</label>
|
2005-10-19 19:22:16 +00:00
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<name>airport-id</name>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>1</row><col>1</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/sim/tower/airport-id</property>
|
2011-04-18 20:57:42 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/tower/auto-position</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2005-10-19 19:22:16 +00:00
|
|
|
</input>
|
|
|
|
<empty>
|
|
|
|
<row>0</row><col>3</col>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<!-- Commented out because the /instrumentation/comm[%d]/airport-id
|
|
|
|
are not filled in on the COM radio retuning...
|
|
|
|
I'm working on that part now.
|
|
|
|
<button>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>2</row><col>0</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<legend>COM1</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/tower/airport-id</property>
|
|
|
|
<property>/instrumentation/comm[0]/airport-id</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
<object-name>airport-id</object-name>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>2</row><col>2</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/instrumentation/comm[0]/frequencies/selected-mhz</property>
|
|
|
|
<label>MHz</label>
|
|
|
|
<format>%-0.2f</format>
|
|
|
|
</text>
|
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>2</row><col>1</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/instrumentation/comm[0]/airport-id</property>
|
|
|
|
</text>
|
|
|
|
<empty>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>2</row><col>3</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<button>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>3</row><col>0</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<legend>COM2</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/tower/airport-id</property>
|
|
|
|
<property>/instrumentation/comm[1]/airport-id</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
<object-name>airport-id</object-name>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>3</row><col>2</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/instrumentation/comm[1]/frequencies/selected-mhz</property>
|
|
|
|
<label>MHz</label>
|
|
|
|
<format>%-0.2f</format>
|
|
|
|
</text>
|
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>3</row><col>1</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/instrumentation/comm[1]/airport-id</property>
|
|
|
|
</text>
|
|
|
|
<empty>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>3</row><col>3</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Preset</legend>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>4</row><col>0</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<!--
|
|
|
|
Is there a way in the GUI (other than via a dynamic
|
|
|
|
NASAL dialog) to assign text to the widget rather
|
|
|
|
than to the underlying property and doing an update?
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
The way it is now CANCEL doesn't undo PRESET :-(
|
2005-10-19 19:22:16 +00:00
|
|
|
-->
|
2011-04-18 20:57:42 +00:00
|
|
|
<enable>
|
|
|
|
<not><property>sim/tower/auto-position</property></not>
|
|
|
|
</enable>
|
2005-10-19 19:22:16 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/tower/airport-id</property>
|
|
|
|
<property>/sim/presets/airport-id</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
<object-name>airport-id</object-name>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<text>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>4</row><col>1</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<property>/sim/presets/airport-id</property>
|
|
|
|
</text>
|
|
|
|
<empty>
|
2011-04-18 20:57:42 +00:00
|
|
|
<row>4</row><col>3</col>
|
2005-10-19 19:22:16 +00:00
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
</group>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<hrule/>
|
|
|
|
|
2005-10-19 19:22:16 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>10</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>OK</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-apply</command>
|
2005-10-19 19:22:16 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2005-10-19 19:22:16 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
|
|
|
<equal>true</equal>
|
2005-11-05 18:42:28 +00:00
|
|
|
<key>Esc</key>
|
2005-10-19 19:22:16 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2005-10-19 19:22:16 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
|
|
|
</PropertyList>
|