ICF 3.1.1.10
Technical documentation of ICF Libraries
ISelectionParam.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iprm_ISelectionParam_included
7#define iprm_ISelectionParam_included
8
9
10// Qt includes
11#include <QtCore/QString>
12
13
14// ICF includes
15#include <iser/ISerializable.h>
16
17
18namespace iprm
19{
20
21
22class IOptionsList;
23
24
29{
30public:
35 {
36 CF_SELECTION_CHANGED = 0x67364be
37 };
38
39 enum
40 {
42 };
43
48 virtual const IOptionsList* GetSelectionConstraints() const = 0;
49
54 virtual QByteArray GetSelectedOptionId() const = 0;
55
60 virtual int GetSelectedOptionIndex() const = 0;
61
66 virtual bool SetSelectedOptionIndex(int index) = 0;
67
72 virtual ISelectionParam* GetSubselection(int index) const = 0;
73};
74
75
76} // namespace iprm
77
78
79#endif // !iprm_ISelectionParam_included
80
81
Constraints of selection from set of possibilities.
Interface allowing to select single option from list of options.
ChangeFlags
Data model change notification flags.
virtual int GetSelectedOptionIndex() const =0
Get selected index.
virtual bool SetSelectedOptionIndex(int index)=0
Set index of selected option.
virtual QByteArray GetSelectedOptionId() const =0
Get selected ID.
virtual ISelectionParam * GetSubselection(int index) const =0
Get subselection for specified option.
virtual const IOptionsList * GetSelectionConstraints() const =0
Get constraints of this parameter.
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy