From 726b770db679d01d83b512fbce97023f1c711078 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 5 Nov 2018 12:56:39 +0100 Subject: [PATCH] Revert "Route-manager: UI for cruise and alternate" This reverts commit 4320f8403a94bfc400da7f21a3976a8089b63383. --- gui/dialogs/route-manager.xml | 130 +++++----------------------------- 1 file changed, 18 insertions(+), 112 deletions(-) diff --git a/gui/dialogs/route-manager.xml b/gui/dialogs/route-manager.xml index f3c665598..441e95429 100644 --- a/gui/dialogs/route-manager.xml +++ b/gui/dialogs/route-manager.xml @@ -33,11 +33,6 @@ command interface /autopilot/route-manager/input: var dep = routem.getNode("departure", 1); var dest = routem.getNode("destination", 1); - var isMach = dlg.getNode("cruise-is-mach", 1); - isMach.setBoolValue(routem.getNode('cruise/mach').getValue() > 0.0); - var isFL = dlg.getNode("cruise-is-flight-level", 1); - isFL.setBoolValue(routem.getNode('cruise/flight-level').getValue() > 0); - var sel_index = func { return int(selection.getValue()); } @@ -257,6 +252,8 @@ command interface /autopilot/route-manager/input: return; } + + # we're on the ground, find the nearest airport to start from if (fp.departure == nil) { var apts = findAirportsWithinRange(25.0); @@ -415,11 +412,7 @@ command interface /autopilot/route-manager/input: nasal - + @@ -505,56 +498,36 @@ command interface /autopilot/route-manager/input: star - + + - table + hbox right - - 0 + cruise-speed true - left - 50 - 1 - - /sim/gui/dialogs/route-manager/cruise-is-mach - - + true + 100 /autopilot/route-manager/cruise/speed-kts dialog-apply @@ -562,45 +535,13 @@ command interface /autopilot/route-manager/input: - - cruise-speed-mach - true - - left - 50 - /autopilot/route-manager/cruise/mach - - dialog-apply - cruise-speed-mach - - - /sim/gui/dialogs/route-manager/cruise-is-mach - - 1 - - - - cruise-speed-type-check - left - - /sim/gui/dialogs/route-manager/cruise-is-mach - - dialog-apply - cruise-speed-type-check - - 2 - - - - + right - 3 cruise-alt true - left true 100 @@ -609,42 +550,7 @@ command interface /autopilot/route-manager/input: dialog-apply cruise-alt - - /sim/gui/dialogs/route-manager/cruise-is-flight-level - - 4 - - - cruise-alt-fl - true - - left - true - 100 - /autopilot/route-manager/cruise/flight-level - - dialog-apply - cruise-alt-fl - - - /sim/gui/dialogs/route-manager/cruise-is-flight-level - - 4 - - - - cruise-alt-type-check - left - - /sim/gui/dialogs/route-manager/cruise-is-flight-level - - dialog-apply - cruise-alt-type-check - - 5 - -