15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_COMBOPROPERTY_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_COMBOPROPERTY_H
18 #include <QStringList>
35 void setValues(
const QStringList& values);
63 QString
label()
const;
Custom property to define list of string values with multiple selections.
void setStringOfValues(const QString &values)
Sets values from the string containing delimeter ';'.
QString stringOfSelections() const
Return string with coma separated list of selected indices.
ComboProperty & operator<<(const QString &str)
QStringList getValues() const
bool operator==(const ComboProperty &other) const
void setStringOfSelections(const QString &values)
Sets selected indices from string.
bool operator<(const ComboProperty &other) const
QVector< int > selectedIndices() const
Returns vector of selected indices.
static ComboProperty fromList(const QStringList &values, const QString ¤t_value="")
QVector< int > m_selected_indices
QString stringOfValues() const
Returns a single string containing values delimited with ';'.
QVariant variant() const
Constructs variant enclosing given ComboProperty.
void setSelected(int index, bool value=true)
Sets given index selection flag.
void setValue(const QString &name)
QString label() const
Returns the label to show.
void setToolTips(const QStringList &tooltips)
QStringList selectedValues() const
Returns list of string with selected values;.
bool operator!=(const ComboProperty &other) const
QStringList toolTips() const
returns list of tool tips for all values
void setCurrentIndex(int index)
void setValues(const QStringList &values)
Sets new list of values. Current value will be preserved, if exists in a new list.
QString const & name(EShape k)