IParamsManager.h
Go to the documentation of this file.
1 #ifndef iprm_IParamsManager_included
2 #define iprm_IParamsManager_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QSet>
8 #include <QtCore/QByteArray>
9 
10 // ACF includes
11 #include <iprm/ISelectionParam.h>
12 
13 
14 namespace iprm
15 {
16 
17 
18 class IParamsSet;
19 
20 
25 {
26 public:
27  typedef QSet<QByteArray> TypeIds;
32  {
37 
42 
47 
52 
57 
62 
67 
72  };
73 
78  {
79  CF_SET_INSERTED = 0x5af60,
83  };
84 
95  virtual int GetIndexOperationFlags(int index = -1) const = 0;
96 
100  virtual int GetParamsSetsCount() const = 0;
101 
106  virtual const IOptionsList* GetParamsTypeConstraints() const = 0;
107 
117  virtual int InsertParamsSet(int typeIndex = -1, int index = -1) = 0;
118 
122  virtual bool RemoveParamsSet(int index) = 0;
123 
127  virtual bool SwapParamsSet(int index1, int index2) = 0;
128 
132  virtual IParamsSet* GetParamsSet(int index) const = 0;
133 
141  virtual IParamsSet* CreateParameterSet(int typeIndex = -1, int index = -1) const = 0;
142 
146  virtual QString GetParamsSetName(int index) const = 0;
147 
151  virtual bool SetParamsSetName(int index, const QString& name) = 0;
152 
156  virtual QString GetParamsSetDescription(int index) const = 0;
157 
161  virtual void SetParamsSetDescription(int index, const QString& description) = 0;
162 };
163 
164 
165 } // namespace iprm
166 
167 
168 #endif // !iprm_IParamsManager_included
169 
170 
Active if it is possible to edit parameter values.
Active if it is possible to get the disabled option.
Active if number of parameters is fixed.
virtual void SetParamsSetDescription(int index, const QString &description)=0
Set the description of the specified parameter set.
Manager of parameters set.
virtual int GetParamsSetsCount() const =0
Get number of managed set.
virtual IParamsSet * GetParamsSet(int index) const =0
Get selected parameter set.
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
virtual bool SwapParamsSet(int index1, int index2)=0
Swap two parameter sets.
virtual QString GetParamsSetName(int index) const =0
Get name of specified parameter set.
Active if swap of parameters with the other one is possible.
virtual bool RemoveParamsSet(int index)=0
Remove parameters set at selected position.
virtual QString GetParamsSetDescription(int index) const =0
Get the description of the specified parameter set.
virtual int InsertParamsSet(int typeIndex=-1, int index=-1)=0
Insert new parameters set at selected position.
virtual const IOptionsList * GetParamsTypeConstraints() const =0
Get selection contraints describing each supported type.
Option is inactive (i.e.
virtual int GetIndexOperationFlags(int index=-1) const =0
Get operation control flags of some paramter set or whole manager.
Active if insert of parameters is possible.
virtual IParamsSet * CreateParameterSet(int typeIndex=-1, int index=-1) const =0
Active if delete of parameters is possible.
virtual bool SetParamsSetName(int index, const QString &name)=0
Set name of specified parameter set.
Interface allowing to select single option from list of options.
ParamsOperationFlags
Bitwise coded flags used to find out supported features.
Set of general parameters.
Definition: IParamsSet.h:23
QSet< QByteArray > TypeIds
Active if rename of parameters is supported.
ChangeFlags
Possible changes of the manager's data model.

© 2007-2017 Witold Gantzke and Kirill Lepskiy