15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_MODEL_GROUPITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_MODEL_GROUPITEM_H
28 static inline const std::string T_GROUP_ITEMS =
"T_GROUP_ITEMS";
33 int currentIndex()
const;
38 std::string currentType()
const;
39 void setCurrentType(
const std::string&
model_type);
42 void setCurrentIndex(
int index);
43 bool is_valid_index()
const;
44 template <
typename T>
void registerItem(
const std::string& text,
bool make_selected =
false);
Group item holds collection of predefined items.
void registerItem(const std::string &text, bool make_selected=false)
std::unique_ptr< ItemCatalogue > m_catalogue
int m_default_selected_index
The main object representing an editable/displayable/serializable entity.
const model_type GroupItemType
materialitems.h Collection of materials to populate MaterialModel.