15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_MATERIALEDITOR_MATERIALEDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MATERIALEDITOR_MATERIALEDITOR_H
26 class QItemSelectionModel;
48 void onDataChanged(
const QModelIndex&,
const QModelIndex&,
const QVector<int>&);
Component editor for SessionItem.
The ExternalProperty class defines custom QVariant property to carry the text, color and an identifie...
Main widget of MaterialEditor.
MaterialModel * m_materialModel
bool modelWasChanged() const
MaterialItem * selectedMaterial()
void onDataChanged(const QModelIndex &, const QModelIndex &, const QVector< int > &)
void onRowsInserted(const QModelIndex &, int, int)
void contextMenuEvent(QContextMenuEvent *event)
Context menu reimplemented to supress default menu.
MaterialEditorToolBar * m_toolBar
bool m_model_was_modified
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &)
QItemSelectionModel * selectionModel()
ComponentEditor * m_componentEditor
MaterialEditor(MaterialModel *materialModel, QWidget *parent=nullptr)
void setInitialMaterialProperty(const ExternalProperty &matProperty)
Sets selection corresponding to initial material property.
void onRowsRemoved(const QModelIndex &, int, int)