2005-10-26 17:59:28 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
2021-12-25 20:50:29 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
<![CDATA[
|
|
|
|
var self = cmdarg();
|
|
|
|
var dlgname = self.getNode("name").getValue();
|
|
|
|
|
|
|
|
self.getNode("group").removeChildren("button");
|
|
|
|
|
|
|
|
var textgroup = self.getNode("group").getNode("button-template");
|
|
|
|
|
|
|
|
var apts = findAirportsWithinRange(50);
|
|
|
|
if (size(apts) > 0) {
|
|
|
|
forindex (var i; apts) {
|
|
|
|
var target = self.getNode("group").getChild("button", i, 1);
|
|
|
|
props.copy(textgroup, target);
|
|
|
|
target.getNode("legend").setValue(apts[i].id);
|
|
|
|
target.getNode("binding/value").setValue(apts[i].id);
|
|
|
|
target.getNode("enabled").setValue(1);
|
|
|
|
}
|
|
|
|
props.dump(target);
|
|
|
|
} else {
|
|
|
|
self.getNode("text/enabled").setValue(1);
|
|
|
|
}
|
|
|
|
]]>
|
|
|
|
</open>
|
|
|
|
</nasal>
|
2005-10-26 17:59:28 +00:00
|
|
|
<name>atc-freq-search</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<text>
|
2021-12-25 20:50:29 +00:00
|
|
|
<label>Display Nearest Airport Frequencies</label>
|
2005-10-26 17:59:28 +00:00
|
|
|
</text>
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2005-10-26 17:59:28 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<name>quick-buttons</name>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>center</halign>
|
|
|
|
<button-template>
|
2008-08-05 05:28:27 +00:00
|
|
|
<enabled>false</enabled>
|
2005-10-26 17:59:28 +00:00
|
|
|
<legend>ICAO</legend>
|
|
|
|
<binding>
|
2021-12-25 20:50:29 +00:00
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/atc/freq-airport</property>
|
|
|
|
<value type="string">ICAO</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>atc-freq-display</dialog-name>
|
2005-10-26 17:59:28 +00:00
|
|
|
</binding>
|
2005-11-06 20:22:43 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
2005-10-26 17:59:28 +00:00
|
|
|
</button-template>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<name>no-atc-in-range</name>
|
2008-08-05 05:28:27 +00:00
|
|
|
<enabled>false</enabled>
|
2007-06-22 18:08:35 +00:00
|
|
|
<label>No ATC in range 50 nm.</label>
|
2005-10-26 17:59:28 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<text>
|
|
|
|
<label>Airport identifier:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<stretch>false</stretch>
|
|
|
|
<property>/sim/atc/freq-airport</property>
|
|
|
|
</input>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<default-padding>10</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
2021-12-25 20:50:29 +00:00
|
|
|
<legend>Search</legend>
|
2005-10-26 17:59:28 +00:00
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2011-12-27 22:56:48 +00:00
|
|
|
<binding>
|
2021-12-25 20:50:29 +00:00
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>atc-freq-display</dialog-name>
|
|
|
|
<!--
|
|
|
|
<params>
|
|
|
|
<icao type="string">ICAO</icao>
|
|
|
|
</params>
|
|
|
|
-->
|
2011-12-27 22:56:48 +00:00
|
|
|
</binding>
|
2005-10-26 17:59:28 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</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-26 17:59:28 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
|
|
|
</PropertyList>
|