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
static
activateLegToWaypoint(gtcService
,fms
,leg
,useTrueBearing
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:301
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
static
activateLegToWaypoint(gtcService
,fms
,segmentIndex
,segmentLegIndex
,useTrueBearing
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:317
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()
static
addEnrouteWaypoint(gtcService
,fms
,planIndex
):Promise
<void
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:221
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()
static
editAirway(gtcService
,fms
,planIndex
,editAirwaySegmentIndex
,listManager
):Promise
<number
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:499
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()
static
insertEnrouteWaypoint(gtcService
,fms
,planIndex
):Promise
<undefined
|LegDefinition
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:208
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()
static
insertWaypointBeforeAfter(gtcService
,fms
,planIndex
,leg
,position
):Promise
<undefined
|LegDefinition
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:237
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 | "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.
loadAirway()
static
loadAirway(gtcService
,fms
,planIndex
,entryLeg
,listManager
):Promise
<number
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:467
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()
Call Signature
static
openAirportDialog(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.
Call Signature
static
openAirportDialog(gtcService
,initialValue?
):Promise
<GtcDialogResult
<AirportFacility
>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:34
Opens an Airport Identifier Lookup waypoint dialog.
Parameters
Parameter | Type | Description |
---|---|---|
gtcService | GtcService | The GtcService. |
initialValue? | string | This parameter is ignored. |
Returns
Promise
<GtcDialogResult
<AirportFacility
>>
The selected airport, if one was selected.
Deprecated
openRunwayDialog()
static
openRunwayDialog(gtcService
,airportFacility
,selectedRunway?
):Promise
<GtcDialogResult
<OneWayRunway
>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:53
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()
static
openWaypointIdentifierLookup(gtcService
):Promise
<GtcDialogResult
<Facility
>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:283
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()
static
removeApproach(gtcService
,store
,fms
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:177
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()
static
removeArrival(gtcService
,store
,fms
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:156
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()
static
removeDeparture(gtcService
,store
,fms
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:135
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()
static
removeWaypoint(gtcService
,fms
,store
,segment
,leg
,legName?
):Promise
<boolean
>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Pages/FlightPlanPage/GtcFlightPlanDialogs.tsx:87
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.