Skip to main content

Class: GtcFlightPlanDialogs

Collection of utility functions to open different flight plan related dialogs.

Constructors

constructor

new GtcFlightPlanDialogs(): GtcFlightPlanDialogs

Returns

GtcFlightPlanDialogs

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

NameTypeDescription
gtcServiceGtcServiceThe GTC service.
fmsFms<any>The FMS.
legLegDefinitionThe leg to activate.
useTrueBearingbooleanWhether 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

NameTypeDescription
gtcServiceGtcServiceThe GTC service.
fmsFms<any>The FMS.
segmentIndexnumberThe index of the segment containing the leg to activate.
segmentLegIndexnumberThe index of the leg to activate in its segment.
useTrueBearingbooleanWhether 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
fmsFms<any>The Fms.
planIndexnumberThe 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

NameTypeDescription
gtcServiceGtcServiceThe GTC service.
fmsFms<any>The FMS.
planIndexnumberThe index of the flight plan to edit.
editAirwaySegmentIndexnumberThe index of the airway segment to edit.
listManagerFlightPlanListManagerThe 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
fmsFms<any>The Fms.
planIndexnumberThe 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
fmsFms<any>The Fms.
planIndexnumberTha flight plan index.
legLegDefinitionThe 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

NameTypeDescription
gtcServiceGtcServiceThe GTC service.
fmsFms<any>The FMS.
planIndexnumberThe index of the flight plan into which to load the airway.
entryLegLegDefinitionThe entry leg of the airway to load.
listManagerFlightPlanListManagerThe 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
initialValue?AirportFacilityThe 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
initialValue?stringThis 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
airportFacilityAirportFacilityThe airport facility to get the runways from.
selectedRunway?OneWayRunwayThe 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

NameTypeDescription
gtcServiceGtcServiceThe 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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
storeFlightPlanStoreThe Flight Plan Store.
fmsFms<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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
storeFlightPlanStoreThe Flight Plan Store.
fmsFms<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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
storeFlightPlanStoreThe Flight Plan Store.
fmsFms<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

NameTypeDescription
gtcServiceGtcServiceThe GtcService.
fmsFms<any>The Fms.
storeFlightPlanStoreThe flight plan store.
segmentFlightPlanSegmentThe segment containing the leg.
legLegDefinitionThe leg to remove.
legName?stringThe 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