![]() |
VR-Forces 5.0.2 Developer's Guide
|
A collection of icon configurations. The collection maintains flags indicating whether to generate icon configurations for any combination of the following DtQIconConfiguration::Mode:
Public Member Functions | |
| DtQIconConfigurations (bool useDefaultGenerationFlags) | |
| DtQIconConfigurations () | |
| virtual | ~DtQIconConfigurations () |
| virtual void | addConfiguration (const DtQIconConfiguration &configuration) |
| virtual const std::vector < DtQIconConfiguration > & | configurations () const |
| virtual std::string | iconFileNameOrPathFromQIconModeAndState (DtQIconConfiguration::Mode iconMode, DtQIconConfiguration::State iconState) const |
| virtual void | setIsGenerateIconConfigurationsEnabledByModeAndState (DtQIconConfiguration::DtQIconModeAndStatePair modeAndStateToSet, bool generateConfigurationForMode) |
| virtual bool | isGenerateIconConfigurationsEnabledByModeAndState (DtQIconConfiguration::DtQIconModeAndStatePair modeAndStateToCheck) const |
Protected Member Functions | |
| virtual void | resetGenerateConfigurationFlags (bool useDefaultGenerationFlags) |
Protected Attributes | |
| std::vector< DtQIconConfiguration > | myConfigurations |
| std::map < DtQIconConfiguration::DtQIconModeAndStatePair, bool > | myGenerateConfigurationFlags |
|
explicit |
CTOR.
| useDefaultGenerationFlags | If true, icon configurations will only be generated for Normal/Off, Normal/On, Disabled/Off, and Disabled/On. Otherwise, no icon configurations will be generated until setIsGenerateIconConfigurationsEnabledByModeAndState(...) is used. |
| makVrv::DtQIconConfigurations::DtQIconConfigurations | ( | ) |
Default CTOR. By default, icon configurations will only be generated for Normal/Off, Normal/On, Disabled/Off, and Disabled/On.
|
virtual |
DTOR.
|
virtual |
Add an icon configuration to this list of configurations When adding a configuration, check to see that there is not already a conflicting configuration. For example, if a configuration exists for the icon when its in the Normal mode and the On state, you cannot add another one using this function.
|
virtual |
Const accessor for internal std::vector of configurations.
|
virtual |
Get the file name or file path of the icon asset from managed configurations based on the provided mode and state.
|
virtual |
Set whether or not icon configurations, for the provided icon mode and icon state, will be generated. The actual generation is handled by the widget icon style manager.
|
virtual |
Get whether or not icon configurations, for the provided icon mode and icon state, will be generated. The actual generation is handled by the widget icon style manager.
|
protectedvirtual |
Reset the generate configuration flags.
| useDefaultGenerationFlags | If true, icon configurations will only be generated for Normal/Off, Normal/On, Disabled/Off, and Disabled/On. Otherwise, no icon configurations will be generated. |
|
protected |
|
protected |