ISelectionParam.h
Go to the documentation of this file.
1 #ifndef iprm_ISelectionParam_included
2 #define iprm_ISelectionParam_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 
9 // ACF includes
10 #include <iser/ISerializable.h>
11 
12 
13 namespace iprm
14 {
15 
16 
17 class IOptionsList;
18 
19 
23 class ISelectionParam: virtual public iser::ISerializable
24 {
25 public:
30  {
32  };
33 
34  enum
35  {
37  };
38 
43  virtual const IOptionsList* GetSelectionConstraints() const = 0;
44 
49  virtual int GetSelectedOptionIndex() const = 0;
50 
55  virtual bool SetSelectedOptionIndex(int index) = 0;
56 
61  virtual ISelectionParam* GetSubselection(int index) const = 0;
62 };
63 
64 
65 } // namespace iprm
66 
67 
68 #endif // !iprm_ISelectionParam_included
69 
70 
virtual bool SetSelectedOptionIndex(int index)=0
Set index of selected option.
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
virtual ISelectionParam * GetSubselection(int index) const =0
Get subselection for specified option.
ChangeFlags
Data model change notification flags.
virtual const IOptionsList * GetSelectionConstraints() const =0
Get constraints of this parameter.
virtual int GetSelectedOptionIndex() const =0
Get selected index.
Interface allowing to select single option from list of options.

© 2007-2017 Witold Gantzke and Kirill Lepskiy