19 : m_groupType(groupType), is_sorted(is_sorted)
31 + itemType +
"' already exists.");
33 m_info.push_back({itemType, itemLabel});
43 return m_info[0].m_itemType;
50 throw GUIHelpers::Error(
"GroupInfo::add() -> Error. No such type '" + modelType +
"'");
64 result.append(pair.m_itemType);
73 result.append(pair.m_itemLabel);
86 if (itemType == pair.m_itemType)
Defines class GUIHelpers functions.
GroupInfo(const QString &groupType="", bool is_sorted=true)
QVector< TypeAndLabel > m_info
QStringList itemLabels() const
void add(const QString &itemType, const QString &itemLabel)
QString m_groupType
Info will be sorted if true, otherwise order of insertion will be preserved.
QString defaultType() const
QStringList itemTypes() const
QString groupType() const
QString m_defaultItemType
Unique group name for GroupInfoCatalog.
bool containsType(const QString &itemType) const
Default model type for given group (i.e. FFCylinder for formfactor group)
void setDefaultType(const QString &modelType)