23 : m_groupItem(groupItem)
24 , m_groupInfo(std::move(groupInfo))
50 item->setEnabled(
true);
55 prevItem->setEnabled(
false);
Defines class ComboProperty.
Defines class GroupItemController.
Defines namespace GUI::Model::ItemFactory.
Defines class SessionItem.
Custom property to define list of string values with multiple selections. Intended for QVariant.
QVariant variant() const
Constructs variant enclosing given ComboProperty.
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.
Defines info for GroupProperty, i.e. collection of model types, their labels and the name of default ...
QStringList itemLabels() const
QString defaultType() const
QStringList itemTypes() const
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.
void insertChild(int row, SessionItem *item, const QString &tag="")
Insert item into given tag into given row.
void setEnabled(bool enabled)
Flags accessors.
SessionItem * getChildOfType(const QString &type) const
Returns the first child of the given type.
SessionItem * CreateItem(const QString &model_name, SessionItem *parent=nullptr)
create SessionItem of specific type and parent