6#include <QtCore/QString>
8#include <QtCore/QByteArray>
Constraints of selection from set of possibilities.
Manager of parameter sets.
virtual bool SetParamsSetName(int index, const QString &name)=0
Set name of specified parameter set.
virtual int GetIndexOperationFlags(int index=-1) const =0
Get operation control flags of some parameter set or whole manager.
virtual bool SwapParamsSet(int index1, int index2)=0
Swap two 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.
ChangeFlags
Possible changes of the manager's data model.
@ CF_SET_INSERTED
A parameter set was inserted.
@ CF_SET_NAME_CHANGED
A parameter set name was changed.
@ CF_SET_REMOVED
A parameter set was removed.
@ CF_SET_ENABLE_CHANGED
A parameter set enable state was changed.
virtual int GetParamsSetsCount() const =0
Get number of managed parameter sets.
virtual QString GetParamsSetDescription(int index) const =0
Get the description of the specified parameter set.
QSet< QByteArray > TypeIds
virtual bool SetIndexOperationFlags(int index, int flags)=0
Set operation control flags of some parameter-set.
virtual IParamsSet * GetParamsSet(int index) const =0
Get selected parameter set.
virtual void SetParamsSetDescription(int index, const QString &description)=0
Set the description of the specified parameter set.
virtual bool RemoveParamsSet(int index)=0
Remove parameter set at selected position.
virtual QString GetParamsSetName(int index) const =0
Get name of specified parameter set.
ParamsOperationFlags
Bitwise coded flags used to find out supported features.
@ MF_COUNT_FIXED
Active if number of parameters is fixed.
@ MF_SUPPORT_EDIT
Active if it is possible to edit parameter values.
@ MF_INACTIVE
Option is inactive (i.e., cannot be activated or selected).
@ MF_SUPPORT_DELETE
Active if delete of parameters is possible.
@ MF_SUPPORT_INSERT
Active if insert of parameters is possible.
@ MF_SUPPORT_RENAME
Active if rename of parameters is supported.
@ MF_DISABLE_ALLOWED
Active if it is possible to get the disabled option.
@ MF_SUPPORT_SWAP
Active if swap of parameters with the other one is possible.
virtual iprm::IParamsSetUniquePtr CreateParameterSet(int typeIndex=-1, int index=-1) const =0
Create a new parameter set instance.
Set of general parameters.
Interface allowing to select single option from list of options.
Shared ownership smart pointer for interface types.
Unique ownership smart pointer for interface types.
Contains interfaces and implementations of flexible parameter concept.
istd::TSharedInterfacePtr< IParamsManager > IParamsManagerSharedPtr
istd::TUniqueInterfacePtr< IParamsManager > IParamsManagerUniquePtr