Class: PfdUserSettingManager
A manager for PFD user settings.
Implements
UserSettingManager
<PfdAllUserSettingTypes
>
Constructors
constructor
• new PfdUserSettingManager(bus
, gduCount
): PfdUserSettingManager
Creates a new instance of PfdUserSettingManager.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
gduCount | number | The number of GDUs supported by this manager. |
Returns
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:203
Properties
gduCount
• Readonly
gduCount: number
The number of GDUs supported by this manager.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:203
Methods
getAliasedManager
▸ getAliasedManager(index
): UserSettingManager
<PfdUserSettingTypes
>
Gets a manager for aliased PFD user settings for an indexed GDU.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the GDU for which to get an aliased setting manager. |
Returns
UserSettingManager
<PfdUserSettingTypes
>
A manager for aliased PFD user settings for the specified GDU.
Throws
RangeError if index
is less than 1 or greater than the number of GDUs supported by this manager.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:248
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:233
getSetting
▸ getSetting<K
>(name
): UserSetting
<NonNullable
<PfdAllUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` |
Parameters
Name | Type |
---|---|
name | K |
Returns
UserSetting
<NonNullable
<PfdAllUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.getSetting
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:223
mapTo
▸ mapTo<M
>(map
): UserSettingManager
<M
& PfdAllUserSettingTypes
>
Type parameters
Name | Type |
---|---|
M | extends UserSettingRecord |
Parameters
Name | Type |
---|---|
map | UserSettingMap <M , PfdAllUserSettingTypes > |
Returns
UserSettingManager
<M
& PfdAllUserSettingTypes
>
Inherit Doc
Implementation of
UserSettingManager.mapTo
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:238
tryGetSetting
▸ tryGetSetting<K
>(name
): K
extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` ? UserSetting
<PfdAllUserSettingTypes
[K
]> : undefined
Type parameters
Name | Type |
---|---|
K | extends string |
Parameters
Name | Type |
---|---|
name | K |
Returns
K
extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` ? UserSetting
<PfdAllUserSettingTypes
[K
]> : undefined
Inherit Doc
Implementation of
UserSettingManager.tryGetSetting
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:218
whenSettingChanged
▸ whenSettingChanged<K
>(name
): Consumer
<NonNullable
<PfdAllUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` |
Parameters
Name | Type |
---|---|
name | K |
Returns
Consumer
<NonNullable
<PfdAllUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.whenSettingChanged
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:228