15 #ifndef BORNAGAIN_GUI_MODEL_BASEITEM_GROUPITEMCONTROLLER_H
16 #define BORNAGAIN_GUI_MODEL_BASEITEM_GROUPITEMCONTROLLER_H
19 #include <QStringList>
47 int toIndex(
const QString& type)
const;
Defines info for GroupProperty, i.e. collection of model types, their labels and the name of default ...
Provides logic for manipulating items belonging to GroupItem parent.
int toIndex(const QString &type) const
void setCurrentType(const QString &type)
QString currentType() const
void setCurrentIndex(int index)
QVariant createCombo() const
SessionItem * getItemOfType(const QString &type)
Returns item of give type. If it doesn't exist, it will be created. Method do not change current item...
SessionItem * m_groupItem
SessionItem * currentItem()
SessionItem * createCorrespondingItem()
SessionItem * addItem(const QString &item_type)
QStringList itemTypes() const
QStringList itemLabels() const
QString toString(int currentIndex) const
GroupItemController(SessionItem *groupItem, GroupInfo groupInfo)
Base class for a GUI data item.