Go to the documentation of this file.
6#ifndef iprm_IOptionsList_included
7#define iprm_IOptionsList_included
11#include <QtCore/QString>
Constraints of selection from set of possibilities.
virtual bool IsOptionEnabled(int index) const =0
Return true if the option is enabled and can be selected.
OptionsFlags
Flags for control constraints behavior.
@ SFC_DISABLE_ALLOWED
If set, some options can be disabled.
@ SCF_SUPPORT_UNIQUE_ID
If set, every option must have an unique ID.
virtual int GetOptionsCount() const =0
Get number of managed options.
ChangeFlags
Flags for changes related to this interface.
@ CF_OPTIONS_CHANGED
Option list updated.
@ CF_OPTION_RENAMED
One or more options were renamed.
static int FindIndexById(const QByteArray &id, const iprm::IOptionsList &list)
Helper function to find the option index by ID.
virtual QByteArray GetOptionId(int index) const =0
Get option ID.
virtual QString GetOptionName(int index) const =0
Get name of specified option.
virtual int GetOptionsFlags() const =0
Get constraints flags.
virtual QString GetOptionDescription(int index) const =0
Get human readable description for a option with the index index.
Common interface for data model objects, which can be changed.
Contains interfaces and implementations of flexible parameter concept.
© Witold Gantzke and Kirill Lepskiy