2006-05-08 14:15:39 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
command interface /autopilot/route-manager/input:
|
|
|
|
|
|
|
|
@clear ... clear route
|
|
|
|
@pop ... remove first entry
|
|
|
|
@delete3 ... delete 4th entry
|
|
|
|
@insert2:ksfo@900 ... insert "ksfo@900" as 3rd entry
|
|
|
|
ksfo@900 ... append "ksfo@900"
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
2010-04-26 15:22:26 +00:00
|
|
|
<name>route-manager</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<resizable>true</resizable>
|
|
|
|
|
|
|
|
<nasal>
|
2014-05-31 02:45:05 +00:00
|
|
|
<open><![CDATA[
|
2010-04-26 15:22:26 +00:00
|
|
|
var ft = getprop("/sim/startup/units") == "feet";
|
|
|
|
var dlg = props.globals.getNode("/sim/gui/dialogs/route-manager", 1);
|
|
|
|
var selection = dlg.getNode("selection", 1);
|
2010-12-28 19:51:34 +00:00
|
|
|
var input = dlg.getNode("input", 1);
|
2010-04-26 15:22:26 +00:00
|
|
|
var routem = props.globals.getNode("/autopilot/route-manager", 1);
|
|
|
|
|
|
|
|
selection.setIntValue(-1);
|
|
|
|
input.setValue("");
|
|
|
|
|
|
|
|
var list = cmdarg().getNode("list");
|
|
|
|
var cmd = routem.getNode("input", 1);
|
|
|
|
var route = routem.getNode("route", 1);
|
2010-10-20 10:20:05 +00:00
|
|
|
var dep = routem.getNode("departure", 1);
|
|
|
|
var dest = routem.getNode("destination", 1);
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
var sel_index = func {
|
|
|
|
return int(selection.getValue());
|
|
|
|
}
|
|
|
|
|
2012-12-31 17:38:18 +00:00
|
|
|
var clear = func {
|
2012-05-08 23:23:54 +00:00
|
|
|
flightplan().cleanPlan();
|
2011-01-20 00:41:35 +00:00
|
|
|
selection.setIntValue(-1);
|
2010-04-26 15:22:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var insert = func {
|
|
|
|
var insertIndex = sel_index();
|
|
|
|
if (insertIndex >= 0) {
|
|
|
|
# when selection index is valid, insert *after* the waypoint
|
|
|
|
insertIndex = insertIndex + 1;
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
cmd.setValue("@insert" ~ insertIndex ~ ":" ~ input.getValue());
|
|
|
|
input.setValue("");
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
if (insertIndex >= 0) {
|
|
|
|
selection.setValue(insertIndex);
|
|
|
|
gui.dialog_update("route-manager");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var remove = func {
|
2012-05-08 23:23:54 +00:00
|
|
|
flightplan().deleteWP(sel_index());
|
2010-04-26 15:22:26 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2012-09-26 21:45:14 +00:00
|
|
|
var route = func {
|
2012-05-08 23:23:54 +00:00
|
|
|
var fp = flightplan();
|
|
|
|
var from = fp.getWP(sel_index() - 1);
|
|
|
|
var to = fp.getWP(sel_index());
|
|
|
|
|
|
|
|
if ((from == nil ) or (to == nil)) {
|
2014-05-31 02:45:05 +00:00
|
|
|
printlog('info', 'unable to route, invalid start ad end points');
|
2012-05-08 23:23:54 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
var route = airwaysRoute(from, to);
|
|
|
|
fp.insertWaypoints(route, sel_index());
|
2010-04-26 15:22:26 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-03-27 17:56:01 +00:00
|
|
|
var jump_to = func {
|
2012-05-08 23:23:54 +00:00
|
|
|
flightplan().current = sel_index();
|
2010-04-26 15:22:26 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
var load_route = func(path) {
|
|
|
|
routem.getNode("file-path", 1).setValue(path.getValue());
|
|
|
|
cmd.setValue("@load");
|
|
|
|
gui.dialog_update("route-manager");
|
|
|
|
}
|
2008-01-22 19:45:57 +00:00
|
|
|
|
2010-04-13 07:58:16 +00:00
|
|
|
var save_route = func(path) {
|
2010-04-26 15:22:26 +00:00
|
|
|
routem.getNode("file-path", 1).setValue(path.getValue());
|
|
|
|
cmd.setValue("@save");
|
|
|
|
gui.dialog_update("route-manager");
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
var file_selector = gui.FileSelector.new(load_route, "Load flight-plan", "Load");
|
|
|
|
var save_selector = gui.FileSelector.new(save_route, "Save flight-plan", "Save");
|
|
|
|
|
|
|
|
var activate_fp = func {
|
2012-09-26 21:45:14 +00:00
|
|
|
fgcommand("activate-flightplan", props.Node.new({"activate": 1}));
|
2010-04-26 15:22:26 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
var departureRunways = dlg.getNode("departure-runways", 1);
|
|
|
|
var destRunways = dlg.getNode("destination-runways", 1);
|
2010-10-20 10:20:05 +00:00
|
|
|
var sids = dlg.getNode("sids", 1);
|
|
|
|
var stars = dlg.getNode("stars", 1);
|
2012-05-06 23:41:57 +00:00
|
|
|
var approaches = dlg.getNode("approaches", 1);
|
|
|
|
|
2010-12-28 19:51:34 +00:00
|
|
|
var updateRunways = func {
|
2010-04-26 15:22:26 +00:00
|
|
|
departureRunways.removeChildren("value");
|
2012-05-06 23:41:57 +00:00
|
|
|
destRunways.removeChildren("value");
|
|
|
|
|
|
|
|
var apt = flightplan().departure;
|
2010-04-26 15:22:26 +00:00
|
|
|
if (apt != nil) {
|
|
|
|
var i=0;
|
|
|
|
foreach (var rwy; keys(apt.runways)) {
|
|
|
|
departureRunways.getNode("value[" ~ i ~ "]", 1).setValue(rwy);
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2012-05-06 23:41:57 +00:00
|
|
|
apt = flightplan().destination;
|
2010-04-26 15:22:26 +00:00
|
|
|
if (apt != nil) {
|
|
|
|
var i=0;
|
|
|
|
foreach (var rwy; keys(apt.runways)) {
|
|
|
|
destRunways.getNode("value[" ~ i ~ "]", 1).setValue(rwy);
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
gui.dialog_update("route-manager");
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
var updateSIDs = func {
|
|
|
|
sids.removeChildren("value");
|
2012-05-06 23:41:57 +00:00
|
|
|
|
|
|
|
var apt = flightplan().departure;
|
|
|
|
var rwy = flightplan().departure_runway;
|
2012-11-24 13:52:59 +00:00
|
|
|
if (apt == nil) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size(apt.sids(rwy)) == 0) {
|
|
|
|
sids.getNode("value[0]", 1).setValue("DEFAULT");
|
|
|
|
sids.getNode("value[1]", 1).setValue("(none)");
|
|
|
|
gui.dialog_update("route-manager", "sid");
|
2010-10-20 10:20:05 +00:00
|
|
|
return;
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
var i=1;
|
2012-11-24 13:52:59 +00:00
|
|
|
sids.getNode("value[0]", 1).setValue("(none)");
|
2012-04-25 14:56:35 +00:00
|
|
|
foreach (var s; apt.sids(rwy)) {
|
2012-05-06 23:41:57 +00:00
|
|
|
var sid = apt.getSid(s);
|
|
|
|
var transVec = sid.transitions;
|
|
|
|
|
|
|
|
if (size(transVec) > 0) {
|
|
|
|
# list each transition of the SID
|
|
|
|
foreach (var trans; transVec) {
|
|
|
|
sids.getNode("value[" ~ i ~ "]", 1).setValue(s ~ "-" ~ trans);
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
# no transitions defined, simple case
|
|
|
|
sids.getNode("value[" ~ i ~ "]", 1).setValue(s);
|
|
|
|
i += 1;
|
|
|
|
}
|
2010-10-20 10:20:05 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
gui.dialog_update("route-manager", "sid");
|
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
var updateSTARs = func {
|
|
|
|
stars.removeChildren("value");
|
2012-05-06 23:41:57 +00:00
|
|
|
var apt = flightplan().destination;
|
|
|
|
var rwy = flightplan().destination_runway;
|
2012-04-25 14:56:35 +00:00
|
|
|
if (apt == nil or apt.stars(rwy) == nil) {
|
2010-10-20 10:20:05 +00:00
|
|
|
return;
|
|
|
|
}
|
2012-05-06 23:41:57 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
var i=1;
|
|
|
|
stars.getNode("value[0]", 1).setValue("(none)");
|
2012-04-25 14:56:35 +00:00
|
|
|
foreach (var s; apt.stars(rwy)) {
|
2012-05-06 23:41:57 +00:00
|
|
|
var star = apt.getStar(s);
|
|
|
|
var transVec = star.transitions;
|
|
|
|
|
|
|
|
if (size(transVec) > 0) {
|
|
|
|
# list each transition of the STAR
|
|
|
|
foreach (var trans; transVec) {
|
|
|
|
stars.getNode("value[" ~ i ~ "]", 1).setValue(s ~ "-" ~ trans);
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
# no transitions defined, simple case
|
|
|
|
stars.getNode("value[" ~ i ~ "]", 1).setValue(s);
|
|
|
|
i += 1;
|
|
|
|
}
|
2010-10-20 10:20:05 +00:00
|
|
|
}
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
gui.dialog_update("route-manager", "star");
|
|
|
|
}
|
2012-05-06 23:41:57 +00:00
|
|
|
|
|
|
|
var updateApproaches = func {
|
|
|
|
approaches.removeChildren("value");
|
|
|
|
var apt = flightplan().destination;
|
|
|
|
var rwy = flightplan().destination_runway;
|
|
|
|
|
2012-11-24 13:52:59 +00:00
|
|
|
if (apt == nil) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size(apt.getApproachList(rwy)) == 0) {
|
|
|
|
approaches.getNode("value[0]", 1).setValue("DEFAULT");
|
|
|
|
approaches.getNode("value[1]", 1).setValue("(none)");
|
|
|
|
gui.dialog_update("route-manager", "approach");
|
2012-05-06 23:41:57 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
var i=1;
|
|
|
|
approaches.getNode("value[0]", 1).setValue("(none)");
|
|
|
|
foreach (var s; apt.getApproachList(rwy)) {
|
|
|
|
approaches.getNode("value[" ~ i ~ "]", 1).setValue(s);
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
gui.dialog_update("route-manager", "approach");
|
|
|
|
}
|
|
|
|
|
2013-04-07 20:45:29 +00:00
|
|
|
var initPosition = func {
|
|
|
|
var routeActive = routem.getNode("active").getValue();
|
|
|
|
if (routeActive) return;
|
|
|
|
|
|
|
|
# FIXME have user waypoints check
|
|
|
|
var fp = flightplan();
|
|
|
|
|
|
|
|
var airborne = getprop('/gear/gear[0]/wow') == 0;
|
|
|
|
if (airborne) {
|
2014-05-31 02:45:05 +00:00
|
|
|
printlog('info', 'route-manager dialog, init in-air, clearing departure settings');
|
2013-04-07 20:45:29 +00:00
|
|
|
fp.departure = nil;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# we're on the ground, find the nearest airport to start from
|
|
|
|
if (fp.departure == nil) {
|
|
|
|
var apts = findAirportsWithinRange(25.0);
|
|
|
|
if (size(apts) == 0) return; # no airports nearby
|
|
|
|
fp.departure = apts[0]; # use the closest one
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fp.departure_runway == nil) {
|
2014-05-31 02:45:05 +00:00
|
|
|
printlog('info', 'selecting departure runway');
|
2013-04-07 20:45:29 +00:00
|
|
|
var rwy = fp.departure.findBestRunwayForPos( geo.aircraft_position() );
|
|
|
|
fp.departure_runway = rwy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
# initialise departure values based on current position
|
2013-04-07 20:45:29 +00:00
|
|
|
initPosition();
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
updateRunways();
|
|
|
|
updateSIDs();
|
|
|
|
updateSTARs();
|
2012-05-06 23:41:57 +00:00
|
|
|
updateApproaches();
|
2014-05-31 02:45:05 +00:00
|
|
|
]]></open>
|
2010-04-26 15:22:26 +00:00
|
|
|
|
|
|
|
<close>
|
|
|
|
file_selector.del();
|
|
|
|
save_selector.del();
|
|
|
|
</close>
|
|
|
|
</nasal>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Route Manager</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<default>1</default>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<!-- departure / arrival airport information -->
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<group>
|
2010-12-28 19:51:34 +00:00
|
|
|
<layout>table</layout>
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<label>Departure:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>1</col>
|
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<name>departure-airport</name>
|
|
|
|
<pref-width>60</pref-width>
|
|
|
|
<property>/autopilot/route-manager/departure/airport</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>departure-airport</object-name>
|
|
|
|
</binding>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>updateRunways();</script>
|
|
|
|
</binding>
|
|
|
|
</input>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>2</col>
|
2010-04-26 15:22:26 +00:00
|
|
|
<format>%s</format>
|
|
|
|
<property>/autopilot/route-manager/departure/name</property>
|
|
|
|
<live>true</live>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<halign>fill</halign>
|
|
|
|
</text>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>3</col>
|
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<label>Rwy:</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>4</col>
|
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<name>departure-runway</name>
|
|
|
|
<property>/autopilot/route-manager/departure/runway</property>
|
|
|
|
<editable>false</editable>
|
|
|
|
<properties>/sim/gui/dialogs/route-manager/departure-runways</properties>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>departure-runway</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>updateSIDs();</script>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
2012-05-06 23:41:57 +00:00
|
|
|
<col>7</col>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>right</halign>
|
2010-10-20 10:20:05 +00:00
|
|
|
<label>SID:</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>0</row>
|
2012-05-06 23:41:57 +00:00
|
|
|
<col>8</col>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>left</halign>
|
2010-10-20 10:20:05 +00:00
|
|
|
<name>sid</name>
|
|
|
|
<property>/autopilot/route-manager/departure/sid</property>
|
|
|
|
<editable>false</editable>
|
|
|
|
<properties>/sim/gui/dialogs/route-manager/sids</properties>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>sid</object-name>
|
|
|
|
</binding>
|
2010-04-26 15:22:26 +00:00
|
|
|
</combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<label>Arrival:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<pref-width>60</pref-width>
|
2010-12-28 19:51:34 +00:00
|
|
|
<name>destination-airport</name>
|
2010-04-26 15:22:26 +00:00
|
|
|
<property>/autopilot/route-manager/destination/airport</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>destination-airport</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>updateRunways();</script>
|
|
|
|
</binding>
|
|
|
|
</input>
|
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>2</col>
|
2010-04-26 15:22:26 +00:00
|
|
|
<stretch>true</stretch>
|
2010-12-28 19:51:34 +00:00
|
|
|
<pref-width>200</pref-width>
|
2010-04-26 15:22:26 +00:00
|
|
|
<format>%s</format>
|
|
|
|
<property>/autopilot/route-manager/destination/name</property>
|
|
|
|
<live>true</live>
|
|
|
|
<halign>fill</halign>
|
|
|
|
</text>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>3</col>
|
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<label>Rwy:</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>4</col>
|
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<name>destination-runway</name>
|
|
|
|
<property>/autopilot/route-manager/destination/runway</property>
|
|
|
|
<editable>false</editable>
|
|
|
|
<properties>/sim/gui/dialogs/route-manager/destination-runways</properties>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>destination-runway</object-name>
|
|
|
|
</binding>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2012-05-06 23:41:57 +00:00
|
|
|
<script>
|
|
|
|
updateSTARs();
|
|
|
|
updateApproaches();
|
|
|
|
</script>
|
2010-10-20 10:20:05 +00:00
|
|
|
</binding>
|
|
|
|
</combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>5</col>
|
|
|
|
<halign>right</halign>
|
2012-05-06 23:41:57 +00:00
|
|
|
<label>Approach:</label>
|
2010-10-20 10:20:05 +00:00
|
|
|
</text>
|
|
|
|
<combo>
|
2010-12-28 19:51:34 +00:00
|
|
|
<row>1</row>
|
|
|
|
<col>6</col>
|
|
|
|
<halign>left</halign>
|
2012-05-06 23:41:57 +00:00
|
|
|
<name>approach</name>
|
|
|
|
<property>/autopilot/route-manager/destination/approach</property>
|
|
|
|
<editable>false</editable>
|
|
|
|
<properties>/sim/gui/dialogs/route-manager/approaches</properties>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>approach</object-name>
|
|
|
|
</binding>
|
|
|
|
</combo>
|
|
|
|
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row>
|
|
|
|
<col>7</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>STAR:</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<row>1</row>
|
|
|
|
<col>8</col>
|
|
|
|
<halign>left</halign>
|
2010-10-20 10:20:05 +00:00
|
|
|
<name>star</name>
|
|
|
|
<property>/autopilot/route-manager/destination/star</property>
|
|
|
|
<editable>false</editable>
|
|
|
|
<properties>/sim/gui/dialogs/route-manager/stars</properties>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-10-20 10:20:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>star</object-name>
|
|
|
|
</binding>
|
2010-04-26 15:22:26 +00:00
|
|
|
</combo>
|
|
|
|
</group>
|
|
|
|
<!--
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>Alternate:</label>
|
|
|
|
<pref-width>80</pref-width>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<name>alt-airport</name>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<pref-width>150</pref-width>
|
|
|
|
<property>/autopilot/route-manager/alternate/airport</property>
|
|
|
|
</input>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
</group>
|
|
|
|
-->
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<label>Cruise Speed (kts):</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<name>cruise-speed</name>
|
|
|
|
<live>true</live>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<stretch>true</stretch>
|
2010-12-28 19:51:34 +00:00
|
|
|
<pref-width>100</pref-width>
|
2010-04-26 15:22:26 +00:00
|
|
|
<property>/autopilot/route-manager/cruise/speed-kts</property>
|
2011-08-13 20:53:24 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>cruise-speed</object-name>
|
|
|
|
</binding>
|
2010-04-26 15:22:26 +00:00
|
|
|
</input>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<text>
|
|
|
|
<label>Cruise Altitude (ft/FL):</label>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>right</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<name>cruise-alt</name>
|
|
|
|
<live>true</live>
|
2010-12-28 19:51:34 +00:00
|
|
|
<halign>left</halign>
|
2010-04-26 15:22:26 +00:00
|
|
|
<stretch>true</stretch>
|
2010-12-28 19:51:34 +00:00
|
|
|
<pref-width>100</pref-width>
|
2010-04-26 15:22:26 +00:00
|
|
|
<property>/autopilot/route-manager/cruise/altitude-ft</property>
|
2011-08-13 20:53:24 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>cruise-alt</object-name>
|
|
|
|
</binding>
|
2010-04-26 15:22:26 +00:00
|
|
|
</input>
|
|
|
|
</group>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>2</default-padding>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>MMMMMMMMMMMMMMMM</label>
|
|
|
|
<format>Target: %s</format>
|
|
|
|
<property>/autopilot/route-manager/wp[0]/id</property>
|
|
|
|
<live>true</live>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>MMMMMMMMM</label>
|
|
|
|
<format>Dist: %.2f nm</format>
|
|
|
|
<property>/autopilot/route-manager/wp[0]/dist</property>
|
|
|
|
<live>true</live>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>MMMMMMMMM</label>
|
|
|
|
<format>ETA: %s</format>
|
|
|
|
<property>/autopilot/route-manager/wp[0]/eta</property>
|
|
|
|
<live>true</live>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<waypointlist>
|
|
|
|
<name>list</name>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<valign>fill</valign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<pref-height>150</pref-height>
|
|
|
|
<property>/sim/gui/dialogs/route-manager/selection</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>list</object-name>
|
|
|
|
</binding>
|
|
|
|
</waypointlist>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>4</default-padding>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Waypoint:</label>
|
|
|
|
<pref-width>60</pref-width>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<name>input</name>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<pref-width>220</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/route-manager/input</property>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Add</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<pref-width>70</pref-width>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2010-10-20 10:20:05 +00:00
|
|
|
<object-name>input</object-name>
|
2010-04-26 15:22:26 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>insert()</script>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<padding>1</padding>
|
|
|
|
<label>Format: (airport|fix|nav|lon,lat)[@alt] -- e.g. "KSFO@900"</label>
|
|
|
|
<color>
|
|
|
|
<red>0.5</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.5</blue>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<default-padding>6</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Clear List</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>clear()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Remove</legend>
|
|
|
|
<enable>
|
2010-03-27 17:56:01 +00:00
|
|
|
<greater-than>
|
2010-04-26 15:22:26 +00:00
|
|
|
<property>/sim/gui/dialogs/route-manager/selection</property>
|
|
|
|
<value>-1</value>
|
|
|
|
</greater-than>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>remove()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-10-20 10:20:05 +00:00
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Route</legend>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>route()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-03-27 17:56:01 +00:00
|
|
|
<!--
|
|
|
|
<button>
|
2010-04-26 15:22:26 +00:00
|
|
|
<legend>Auto-route</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>auto_route()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-03-27 17:56:01 +00:00
|
|
|
-->
|
|
|
|
<button>
|
2010-04-26 15:22:26 +00:00
|
|
|
<legend>Jump To</legend>
|
|
|
|
<enable>
|
2010-03-27 17:56:01 +00:00
|
|
|
<greater-than>
|
2010-04-26 15:22:26 +00:00
|
|
|
<property>/sim/gui/dialogs/route-manager/selection</property>
|
|
|
|
<value>-1</value>
|
|
|
|
</greater-than>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>jump_to()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Activate</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<enable>
|
|
|
|
<not><property>/autopilot/route-manager/active</property></not>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>activate_fp()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-12-28 19:51:34 +00:00
|
|
|
|
2010-04-26 15:22:26 +00:00
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Load...</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<enable>
|
|
|
|
<not><property>/autopilot/route-manager/active</property></not>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>file_selector.open()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<button>
|
|
|
|
<legend>Save...</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>save_selector.open();</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-12-28 19:51:34 +00:00
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-04-26 15:22:26 +00:00
|
|
|
</group>
|
2006-05-08 14:15:39 +00:00
|
|
|
</PropertyList>
|