ACF $AcfVersion:0$
ISelectionParam.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7
8
9// ACF includes
10#include <iser/ISerializable.h>
11
12
13namespace iprm
14{
15
16
17class IOptionsList;
18
19
92{
93public:
102 {
103 CF_SELECTION_CHANGED = 0x67364be
104 };
105
106 enum
107 {
109 };
110
135 virtual const IOptionsList* GetSelectionConstraints() const = 0;
136
159 virtual int GetSelectedOptionIndex() const = 0;
160
187 virtual bool SetSelectedOptionIndex(int index) = 0;
188
229 virtual ISelectionParam* GetSubselection(int index) const = 0;
230};
231
232
233} // namespace iprm
234
235
236
237
Constraints of selection from set of possibilities.
Interface allowing to select single option from list of options.
ChangeFlags
Data model change notification flags.
@ CF_SELECTION_CHANGED
Selection index has changed.
virtual int GetSelectedOptionIndex() const =0
Get selected index.
virtual bool SetSelectedOptionIndex(int index)=0
Set index of selected option.
virtual ISelectionParam * GetSubselection(int index) const =0
Get sub-selection for specified option.
virtual const IOptionsList * GetSelectionConstraints() const =0
Get constraints of this parameter.
@ NO_SELECTION
Indicates no option is currently selected.
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.