Class: GtcFlightPlanDialogs
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:19
Collection of utility functions to open different flight plan related dialogs.
Constructors
Constructor
new GtcFlightPlanDialogs():
GtcFlightPlanDialogs
Returns
GtcFlightPlanDialogs
Methods
activateLegToWaypoint()
Call Signature
staticactivateLegToWaypoint(gtcService,fms,leg,useTrueBearing):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:291
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
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms | 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.
Call Signature
staticactivateLegToWaypoint(gtcService,fms,segmentIndex,segmentLegIndex,useTrueBearing):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:307
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
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms | 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.
addEnrouteWaypoint()
staticaddEnrouteWaypoint(gtcService,fms,planIndex):Promise<void>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:211
Shows keyboard dialog for selecting a waypoint to add to the end of the last enroute segment.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms | The Fms. |
planIndex | number | The plan index. |
Returns
Promise<void>
editAirway()
staticeditAirway(gtcService,fms,planIndex,editAirwaySegmentIndex,listManager):Promise<number>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:489
Opens the airway selection dialog to edit an existing airway in a flight plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms | 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.
insertEnrouteWaypoint()
staticinsertEnrouteWaypoint(gtcService,fms,planIndex):Promise<undefined|LegDefinition>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:198
Shows keyboard dialog for selecting a waypoint to insert at the beginning of the first enroute segment.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms | The Fms. |
planIndex | number | The plan index. |
Returns
Promise<undefined | LegDefinition>
The inserted leg, if one was inserted.
insertWaypointBeforeAfter()
staticinsertWaypointBeforeAfter(gtcService,fms,planIndex,leg,position):Promise<undefined|LegDefinition>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:227
Shows keyboard dialog for selecting a waypoint to insert at the beginning of the first enroute segment.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms | The Fms. |
planIndex | number | Tha flight plan index. |
leg | LegDefinition | The existing leg to place the new leg relative to. |
position | "before" | "after" | Whether to place the new leg before or after the existing leg. |
Returns
Promise<undefined | LegDefinition>
The inserted leg, if one was inserted.
loadAirway()
staticloadAirway(gtcService,fms,planIndex,entryLeg,listManager):Promise<number>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:457
Opens the airway selection dialog to load an airway into a flight plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GTC service. |
fms | Fms | 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.
openAirportDialog()
staticopenAirportDialog(gtcService,initialValue?):Promise<GtcDialogResult<AirportFacility>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:26
Opens an Airport Identifier Lookup waypoint dialog.
Parameters
| Parameter | 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.
openRunwayDialog()
staticopenRunwayDialog(gtcService,airportFacility,selectedRunway?):Promise<GtcDialogResult<OneWayRunway>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:43
Opens an Airport Identifier Lookup keyboard dialog.
Parameters
| Parameter | 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.
openWaypointIdentifierLookup()
staticopenWaypointIdentifierLookup(gtcService):Promise<GtcDialogResult<Facility>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:273
Opens the keyboard dialog and starts a request for selecting a waypoint of any type.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
Returns
Promise<GtcDialogResult<Facility>>
The result of the keyboard dialog request.
removeApproach()
staticremoveApproach(gtcService,store,fms):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:167
Shows remove approach dialog, removing the approach if user confirms.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms | The Fms. |
Returns
Promise<boolean>
A Promise which is fulfilled with whether the approach was successfully removed.
removeArrival()
staticremoveArrival(gtcService,store,fms):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:146
Shows remove arrival dialog, removing the arrival if user confirms.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms | The Fms. |
Returns
Promise<boolean>
A Promise which is fulfilled with whether the arrival was successfully removed.
removeDeparture()
staticremoveDeparture(gtcService,store,fms):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:125
Shows remove departure dialog, removing the departure if user confirms.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
store | FlightPlanStore | The Flight Plan Store. |
fms | Fms | The Fms. |
Returns
Promise<boolean>
A Promise which is fulfilled with whether the departure was successfully removed.
removeWaypoint()
staticremoveWaypoint(gtcService,fms,store,segment,leg,legName?):Promise<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:77
Shows remove waypoint dialog, removing the waypoint if user confirms.
Parameters
| Parameter | Type | Description |
|---|---|---|
gtcService | GtcService | The GtcService. |
fms | Fms | 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.