|
ACF $AcfVersion:0$
|
Manager of parameter sets. More...
#include <IParamsManager.h>
Public Types | |
| enum | ParamsOperationFlags { MF_COUNT_FIXED = 1 , MF_SUPPORT_RENAME = 2 , MF_SUPPORT_INSERT = 4 , MF_SUPPORT_DELETE = 8 , MF_SUPPORT_SWAP = 16 , MF_DISABLE_ALLOWED = 32 , MF_SUPPORT_EDIT = 64 , MF_INACTIVE = 128 } |
| Bitwise coded flags used to find out supported features. More... | |
| enum | ChangeFlags { CF_SET_INSERTED = 0x5af60 , CF_SET_REMOVED , CF_SET_NAME_CHANGED , CF_SET_ENABLE_CHANGED } |
| Possible changes of the manager's data model. More... | |
| typedef QSet< QByteArray > | TypeIds |
Public Types inherited from iprm::ISelectionParam | |
| enum | ChangeFlags { CF_SELECTION_CHANGED = 0x67364be } |
| Data model change notification flags. More... | |
| enum | { NO_SELECTION = -1 } |
Public Types inherited from istd::IChangeable | |
| enum | ChangeFlags { CF_ACF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
| Data model change notification flags. More... | |
| enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 } |
| Flags for supported operations. More... | |
| enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
| Control how relationship betweeen objects are interpreted. More... | |
| typedef QMultiMap< QByteArray, QVariant > | ChangeInfoMap |
Public Member Functions | |
| virtual int | GetIndexOperationFlags (int index=-1) const =0 |
| Get operation control flags of some parameter set or whole manager. | |
| virtual bool | SetIndexOperationFlags (int index, int flags)=0 |
| Set operation control flags of some parameter-set. | |
| virtual int | GetParamsSetsCount () const =0 |
| Get number of managed parameter sets. | |
| virtual const IOptionsList * | GetParamsTypeConstraints () const =0 |
| Get selection constraints describing each supported type. | |
| virtual int | InsertParamsSet (int typeIndex=-1, int index=-1)=0 |
| Insert new parameter set at selected position. | |
| virtual bool | RemoveParamsSet (int index)=0 |
| Remove parameter set at selected position. | |
| virtual bool | SwapParamsSet (int index1, int index2)=0 |
| Swap two parameter sets. | |
| virtual IParamsSet * | GetParamsSet (int index) const =0 |
| Get selected parameter set. | |
| virtual iprm::IParamsSetUniquePtr | CreateParameterSet (int typeIndex=-1, int index=-1) const =0 |
| Create a new parameter set instance. | |
| virtual QString | GetParamsSetName (int index) const =0 |
| Get name of specified parameter set. | |
| virtual bool | SetParamsSetName (int index, const QString &name)=0 |
| Set name of specified parameter set. | |
| virtual QString | GetParamsSetDescription (int index) const =0 |
| Get the description of the specified parameter set. | |
| virtual void | SetParamsSetDescription (int index, const QString &description)=0 |
| Set the description of the specified parameter set. | |
Public Member Functions inherited from iprm::ISelectionParam | |
| virtual const IOptionsList * | GetSelectionConstraints () const =0 |
| Get constraints of this parameter. | |
| virtual int | GetSelectedOptionIndex () const =0 |
| Get selected index. | |
| virtual bool | SetSelectedOptionIndex (int index)=0 |
| Set index of selected option. | |
| virtual ISelectionParam * | GetSubselection (int index) const =0 |
| Get sub-selection for specified option. | |
Public Member Functions inherited from iser::ISerializable | |
| virtual bool | Serialize (IArchive &archive)=0 |
| Load or store state of this object as a archive stream. | |
| virtual quint32 | GetMinimalVersion (int versionId) const |
| Get minimal needed version to correct storing of this data. | |
Public Member Functions inherited from istd::IChangeable | |
| virtual int | GetSupportedOperations () const |
| Get set of flags for supported operations. | |
| virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
| Copy this object from another one. | |
| virtual bool | IsEqual (const IChangeable &object) const |
| Compare this object with another object. | |
| virtual istd::TUniqueInterfacePtr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
| Make a copy of this object. | |
| virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
| Reset data to its default state. | |
| virtual void | BeginChanges (const ChangeSet &changeSet) |
| Starts the change transaction. | |
| virtual void | EndChanges (const ChangeSet &changeSet) |
| Ends the change transaction. | |
| virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
| Starts group of changes. | |
| virtual void | EndChangeGroup (const ChangeSet &changeSet) |
| Ends group of changes. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Additional Inherited Members | |
Static Public Member Functions inherited from istd::IChangeable | |
| static const ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
Protected Member Functions inherited from istd::IChangeable | |
| virtual void | OnBeginChanges () |
| Callback function for begin change event. | |
| virtual void | OnEndChanges (const ChangeSet &changeSet) |
| Callback function for end change event. | |
Manager of parameter sets.
IParamsManager manages a collection of parameter sets (IParamsSet instances). It provides operations for creating, deleting, renaming, and organizing multiple parameter sets. The manager also acts as a selection parameter, allowing selection of the active parameter set.
The manager supports various operation modes controlled by flags:
Definition at line 95 of file IParamsManager.h.
| typedef QSet<QByteArray> iprm::IParamsManager::TypeIds |
Definition at line 98 of file IParamsManager.h.
Possible changes of the manager's data model.
These change flags are used with the change notification system to indicate what type of modification occurred in the parameter manager.
Definition at line 167 of file IParamsManager.h.
Bitwise coded flags used to find out supported features.
These flags indicate what operations are supported by the parameter manager or individual parameter sets. Use GetIndexOperationFlags() to retrieve these flags.
| Enumerator | |
|---|---|
| MF_COUNT_FIXED | Active if number of parameters is fixed. When set, insert and delete operations are not allowed. |
| MF_SUPPORT_RENAME | Active if rename of parameters is supported. When set, SetParamsSetName() can be used to rename parameter sets. |
| MF_SUPPORT_INSERT | Active if insert of parameters is possible. When set, InsertParamsSet() can add new parameter sets. |
| MF_SUPPORT_DELETE | Active if delete of parameters is possible. When set, RemoveParamsSet() can delete parameter sets. |
| MF_SUPPORT_SWAP | Active if swap of parameters with the other one is possible. When set, SwapParamsSet() can reorder parameter sets. |
| MF_DISABLE_ALLOWED | Active if it is possible to get the disabled option. When set, parameter sets can be in disabled state. |
| MF_SUPPORT_EDIT | Active if it is possible to edit parameter values. When set, parameters within the set can be modified. |
| MF_INACTIVE | Option is inactive (i.e., cannot be activated or selected). When set, the parameter set cannot be selected as active. |
Definition at line 108 of file IParamsManager.h.
|
pure virtual |
Create a new parameter set instance.
Creates a new, independent parameter set instance. Optionally, data from an existing parameter set can be copied to the new instance.
| typeIndex | Index of parameter type from GetParamsTypeConstraints().
|
| index | If non-negative, the parameter set data at the given position will be copied to the created instance. |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get operation control flags of some parameter set or whole manager.
This method returns flags indicating which operations are supported, either for the entire manager (index < 0) or for a specific parameter set.
| index | Index addressing position in parameter set list.
|
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get selected parameter set.
Retrieves the parameter set at the specified index.
| index | Index of the parameter set (0-based). |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get the description of the specified parameter set.
| index | Index of the parameter set (0-based). |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get name of specified parameter set.
| index | Index of the parameter set (0-based). |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get number of managed parameter sets.
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Get selection constraints describing each supported type.
Returns an options list that describes the different types of parameter sets that can be created. This is used when inserting new parameter sets to determine available types.
Implemented in iprm::CMultiParamsManagerComp, and iprm::CParamsManagerComp.
|
pure virtual |
Insert new parameter set at selected position.
Creates and inserts a new parameter set into the manager. The type and position can be specified, or automatic selection can be used.
| typeIndex | Index of parameter type from GetParamsTypeConstraints().
|
| index | Position in list where parameter set should be inserted.
|
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Remove parameter set at selected position.
Deletes the parameter set at the specified index.
| index | Position of the parameter set to remove (0-based). |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Set operation control flags of some parameter-set.
Sets operation flags for a specific parameter set. Only flags related to a single parameter set can be modified (not manager-level flags).
| flags | Operation flags to be used (combination of ParamsOperationFlags). |
| index | Index addressing position in parameter set list. |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Set the description of the specified parameter set.
Changes the description/tooltip text for a parameter set.
| index | Index of the parameter set (0-based). |
| description | New description text for the parameter set. |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Set name of specified parameter set.
Changes the display name of a parameter set.
| index | Index of the parameter set (0-based). |
| name | New name for the parameter set. |
Implemented in iprm::CParamsManagerCompBase.
|
pure virtual |
Swap two parameter sets.
Exchanges the positions of two parameter sets in the manager's list.
| index1 | Index of first parameter set. |
| index2 | Index of second parameter set. |
Implemented in iprm::CParamsManagerCompBase.