6#include <QtCore/QVector>
25 I_ASSIGN_MULTI_0(m_paramSetsFactoriesPtr,
"ParamSetsFactories",
"List of factories for parameter set creation",
true);
26 I_ASSIGN_MULTI_0(m_factoryNameNameAttrPtr,
"ParamSetsFactorieNames",
"List of names associated with the parameter factories",
true);
27 I_ASSIGN_MULTI_0(m_factoryDescriptionAttrPtr,
"ParamSetsFactorieDesciption",
"List of descriptions associated with the parameter factories",
true);
41 const QString& optionName,
42 const QByteArray& optionId,
43 const QString& optionDescription = QString(),
46 virtual bool SetOptionName(
int optionIndex,
const QString& optionName)
override;
85 bool EnsureParamExist(
int index,
const QByteArray& typeId,
const QString& name,
const QByteArray& uuid,
bool isEnabled);
Implementation of parameter manager.
virtual const IOptionsList * GetParamsTypeConstraints() const override
Get selection constraints describing each supported type.
CParamsManagerCompBase BaseClass
virtual bool SetOptionName(int optionIndex, const QString &optionName) override
Set a new name for the option at the given index.
virtual bool RemoveOption(int index) override
Remove an option at the given index.
virtual bool SetOptionEnabled(int index, bool isEnabled=true) override
Enables or disables a given option.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual bool CopyFrom(const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
bool EnsureParamExist(int index, const QByteArray &typeId, const QString &name, const QByteArray &uuid, bool isEnabled)
Ensure some parameter exist, has correct type and attributes.
virtual iprm::IParamsSetUniquePtr CreateParamsSetInstance(int typeIndex=-1) const override
Create a new instance of the parameter set.
virtual void OnComponentDestroyed() override
virtual bool InsertOption(const QString &optionName, const QByteArray &optionId, const QString &optionDescription=QString(), int index=-1)
Insert an option at some position.
virtual void OnComponentCreated() override
virtual QString CalculateNewDefaultName(int typeIndex) const override
virtual int GetOptionOperationFlags(int index=-1) const override
Get operation control flags of some option or whole manager.
virtual bool SetOptionDescription(int optionIndex, const QString &optionDescription) override
Set a new description for the option at the given index.
virtual bool IsParameterCreationSupported() const override
Return true if creation of parameter sets is supported by the implementation.
virtual bool SwapOptions(int index1, int index2) override
Swap two options.
virtual int GetCreatedParamsSetsCount() const override
Get the number of parameter sets created at the run time.
Implementation of parameter manager.
Constraints of selection from set of possibilities.
Set of general parameters.
Represents an input/output persistence archive for object serialization.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.
#define I_MULTITEXTATTR(member)
Declare translatable multiple text attribute member.
Contains interfaces and implementations of flexible parameter concept.
virtual int GetOptionsFlags() const override
Get constraints flags.
virtual QString GetOptionName(int index) const override
Get name of specified option.
virtual bool IsOptionEnabled(int index) const override
Return true if the option is enabled and can be selected.
virtual int GetOptionsCount() const override
Get number of managed options.
virtual QString GetOptionDescription(int index) const override
Get human-readable description for an option.
virtual QByteArray GetOptionId(int index) const override
Get option ID.
QVector< TypeInfo > typeInfos
QMap< QByteArray, int > typeIdToIndexMap