Revert "Route-manager: UI for cruise and alternate"
This reverts commit 4320f8403a
.
This commit is contained in:
parent
575a01aa9a
commit
726b770db6
1 changed files with 18 additions and 112 deletions
|
@ -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:
|
|||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
updateRunways();
|
||||
updateSTARs();
|
||||
updateApproaches();
|
||||
</script>
|
||||
<script>updateRunways();</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
|
@ -505,56 +498,36 @@ command interface /autopilot/route-manager/input:
|
|||
<object-name>star</object-name>
|
||||
</binding>
|
||||
</combo>
|
||||
|
||||
</group>
|
||||
<!--
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<row>2</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>Alternate:</label>
|
||||
<pref-width>80</pref-width>
|
||||
</text>
|
||||
<input>
|
||||
<row>2</row>
|
||||
<col>1</col>
|
||||
<halign>left</halign>
|
||||
<name>alternate-airport</name>
|
||||
<pref-width>70</pref-width>
|
||||
<name>alt-airport</name>
|
||||
<halign>fill</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>150</pref-width>
|
||||
<property>/autopilot/route-manager/alternate/airport</property>
|
||||
<live>true</live>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>alternate-airport</object-name>
|
||||
</binding>
|
||||
</input>
|
||||
|
||||
<text>
|
||||
<row>2</row>
|
||||
<col>2</col>
|
||||
<format>%s</format>
|
||||
<property>/autopilot/route-manager/alternate/name</property>
|
||||
<live>true</live>
|
||||
<stretch>true</stretch>
|
||||
<halign>fill</halign>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
-->
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<halign>right</halign>
|
||||
<label>Cruise Speed:</label>
|
||||
<col>0</col>
|
||||
<label> Cruise Speed (kts):</label>
|
||||
</text>
|
||||
<input>
|
||||
<name>cruise-speed</name>
|
||||
<live>true</live>
|
||||
<label>(kts)</label>
|
||||
<halign>left</halign>
|
||||
<pref-width>50</pref-width>
|
||||
<col>1</col>
|
||||
<visible>
|
||||
<not><property>/sim/gui/dialogs/route-manager/cruise-is-mach</property></not>
|
||||
</visible>
|
||||
|
||||
<stretch>true</stretch>
|
||||
<pref-width>100</pref-width>
|
||||
<property>/autopilot/route-manager/cruise/speed-kts</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
|
@ -562,45 +535,13 @@ command interface /autopilot/route-manager/input:
|
|||
</binding>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<name>cruise-speed-mach</name>
|
||||
<live>true</live>
|
||||
<label>(M)</label>
|
||||
<halign>left</halign>
|
||||
<pref-width>50</pref-width>
|
||||
<property>/autopilot/route-manager/cruise/mach</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>cruise-speed-mach</object-name>
|
||||
</binding>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/route-manager/cruise-is-mach</property>
|
||||
</visible>
|
||||
<col>1</col>
|
||||
</input>
|
||||
|
||||
<checkbox>
|
||||
<name>cruise-speed-type-check</name>
|
||||
<halign>left</halign>
|
||||
<label>use Mach</label>
|
||||
<property>/sim/gui/dialogs/route-manager/cruise-is-mach</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>cruise-speed-type-check</object-name>
|
||||
</binding>
|
||||
<col>2</col>
|
||||
</checkbox>
|
||||
|
||||
|
||||
<text>
|
||||
<label>Cruise Altitude:</label>
|
||||
<label>Cruise Altitude (ft/FL):</label>
|
||||
<halign>right</halign>
|
||||
<col>3</col>
|
||||
</text>
|
||||
<input>
|
||||
<name>cruise-alt</name>
|
||||
<live>true</live>
|
||||
<label>(ft)</label>
|
||||
<halign>left</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>100</pref-width>
|
||||
|
@ -609,42 +550,7 @@ command interface /autopilot/route-manager/input:
|
|||
<command>dialog-apply</command>
|
||||
<object-name>cruise-alt</object-name>
|
||||
</binding>
|
||||
<visible>
|
||||
<not><property>/sim/gui/dialogs/route-manager/cruise-is-flight-level</property></not>
|
||||
</visible>
|
||||
<col>4</col>
|
||||
</input>
|
||||
|
||||
<input>
|
||||
<name>cruise-alt-fl</name>
|
||||
<live>true</live>
|
||||
<label>(FL)</label>
|
||||
<halign>left</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>100</pref-width>
|
||||
<property>/autopilot/route-manager/cruise/flight-level</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>cruise-alt-fl</object-name>
|
||||
</binding>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/route-manager/cruise-is-flight-level</property>
|
||||
</visible>
|
||||
<col>4</col>
|
||||
</input>
|
||||
|
||||
<checkbox>
|
||||
<name>cruise-alt-type-check</name>
|
||||
<halign>left</halign>
|
||||
<label>use Flight-level</label>
|
||||
<property>/sim/gui/dialogs/route-manager/cruise-is-flight-level</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>cruise-alt-type-check</object-name>
|
||||
</binding>
|
||||
<col>5</col>
|
||||
</checkbox>
|
||||
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
|
Loading…
Reference in a new issue