Class: GtcFlightPlanDialogs
Collection of utility functions to open different flight plan related dialogs.
Constructors
constructor
• new GtcFlightPlanDialogs(): GtcFlightPlanDialogs
Returns
Methods
activateLegToWaypoint
▸ activateLegToWaypoint(gtcService
, fms
, leg
, useTrueBearing
): Promise
<boolean
>
Opens a dialog prompting the user to accept whether to activate a flight plan leg. If the user accepts, then the leg is activated. Otherwise, no action is taken.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms <any > | The FMS. |
leg | LegDefinition | The leg to activate. |
useTrueBearing | boolean | Whether to use true bearing when displaying course or heading. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the leg was successfully activated.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:301
▸ activateLegToWaypoint(gtcService
, fms
, segmentIndex
, segmentLegIndex
, useTrueBearing
): Promise
<boolean
>
Opens a dialog prompting the user to accept whether to activate a flight plan leg. If the user accepts, then the leg is activated. Otherwise, no action is taken.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms <any > | The FMS. |
segmentIndex | number | The index of the segment containing the leg to activate. |
segmentLegIndex | number | The index of the leg to activate in its segment. |
useTrueBearing | boolean | Whether to use true bearing when displaying course or heading. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the leg was successfully activated.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:317
addEnrouteWaypoint
▸ addEnrouteWaypoint(gtcService
, fms
, planIndex
): Promise
<void
>
Shows keyboard dialog for selecting a waypoint to add to the end of the last enroute segment.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms <any > | The Fms. |
planIndex | number | The plan index. |
Returns
Promise
<void
>
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:221
editAirway
▸ editAirway(gtcService
, fms
, planIndex
, editAirwaySegmentIndex
, listManager
): Promise
<number
>
Opens the airway selection dialog to edit an existing airway in a flight plan.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms <any > | The FMS. |
planIndex | number | The index of the flight plan to edit. |
editAirwaySegmentIndex | number | The index of the airway segment to edit. |
listManager | FlightPlanListManager | The flight plan list manager for the flight plan to edit. |
Returns
Promise
<number
>
A Promise which is fulfilled with the index of the edited airway segment if the airway was edited, or
-1
if it was not edited.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:499
insertEnrouteWaypoint
▸ insertEnrouteWaypoint(gtcService
, fms
, planIndex
): Promise
<undefined
| LegDefinition
>
Shows keyboard dialog for selecting a waypoint to insert at the beginning of the first enroute segment.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms <any > | The Fms. |
planIndex | number | The plan index. |
Returns
Promise
<undefined
| LegDefinition
>
The inserted leg, if one was inserted.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:208
insertWaypointBeforeAfter
▸ insertWaypointBeforeAfter(gtcService
, fms
, planIndex
, leg
, position
): Promise
<undefined
| LegDefinition
>
Shows keyboard dialog for selecting a waypoint to insert at the beginning of the first enroute segment.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms <any > | The Fms. |
planIndex | number | Tha flight plan index. |
leg | LegDefinition | The existing leg to place the new leg relative to. |
position | "after" | "before" | Whether to place the new leg before or after the existing leg. |
Returns
Promise
<undefined
| LegDefinition
>
The inserted leg, if one was inserted.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:237
loadAirway
▸ loadAirway(gtcService
, fms
, planIndex
, entryLeg
, listManager
): Promise
<number
>
Opens the airway selection dialog to load an airway into a flight plan.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms <any > | The FMS. |
planIndex | number | The index of the flight plan into which to load the airway. |
entryLeg | LegDefinition | The entry leg of the airway to load. |
listManager | FlightPlanListManager | The flight plan list manager for the flight plan into which to load the airway. |
Returns
Promise
<number
>
A Promise which is fulfilled with the index of the new airway segment if an airway was loaded, or -1
if an airway was not loaded.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:467
openAirportDialog
▸ openAirportDialog(gtcService
, initialValue?
): Promise
<GtcDialogResult
<AirportFacility
>>
Opens an Airport Identifier Lookup waypoint dialog.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
initialValue? | AirportFacility | The airport value initially loaded into the dialog at the start of the request. |
Returns
Promise
<GtcDialogResult
<AirportFacility
>>
The selected airport, if one was selected.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:26
▸ openAirportDialog(gtcService
, initialValue?
): Promise
<GtcDialogResult
<AirportFacility
>>
Opens an Airport Identifier Lookup waypoint dialog.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
initialValue? | string | This parameter is ignored. |
Returns
Promise
<GtcDialogResult
<AirportFacility
>>
The selected airport, if one was selected.
Deprecated
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:34
openRunwayDialog
▸ openRunwayDialog(gtcService
, airportFacility
, selectedRunway?
): Promise
<GtcDialogResult
<OneWayRunway
>>
Opens an Airport Identifier Lookup keyboard dialog.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
airportFacility | AirportFacility | The airport facility to get the runways from. |
selectedRunway? | OneWayRunway | The currently selected runway. |
Returns
Promise
<GtcDialogResult
<OneWayRunway
>>
The selected airport, if one was selected.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:53
openWaypointIdentifierLookup
▸ openWaypointIdentifierLookup(gtcService
): Promise
<GtcDialogResult
<Facility
>>
Opens the keyboard dialog and starts a request for selecting a waypoint of any type.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
Returns
Promise
<GtcDialogResult
<Facility
>>
The result of the keyboard dialog request.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:283
removeApproach
▸ removeApproach(gtcService
, store
, fms
): Promise
<boolean
>
Shows remove approach dialog, removing the approach if user confirms.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms <any > | The Fms. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the approach was successfully removed.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:177
removeArrival
▸ removeArrival(gtcService
, store
, fms
): Promise
<boolean
>
Shows remove arrival dialog, removing the arrival if user confirms.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms <any > | The Fms. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the arrival was successfully removed.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:156
removeDeparture
▸ removeDeparture(gtcService
, store
, fms
): Promise
<boolean
>
Shows remove departure dialog, removing the departure if user confirms.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms <any > | The Fms. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the departure was successfully removed.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:135
removeWaypoint
▸ removeWaypoint(gtcService
, fms
, store
, segment
, leg
, legName?
): Promise
<boolean
>
Shows remove waypoint dialog, removing the waypoint if user confirms.
Parameters
Name | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms <any > | The Fms. |
store | FlightPlanStore | The flight plan store. |
segment | FlightPlanSegment | The segment containing the leg. |
leg | LegDefinition | The leg to remove. |
legName? | string | The leg name. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the leg was successfully removed.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:87