22 #include <QVBoxLayout>
32 setWindowTitle(
"Layer editor");
33 auto layout =
new QVBoxLayout;
37 layout->setContentsMargins(0, 0, 0, 0);
38 layout->setSpacing(0);
Main class to holds all models of GUI session.
SampleModel * sampleModel()
Handles user actions applied to layer tree.
void setSelectionModel(LayerSelectionModel *selection_model)
void setModel(SampleModel *model)
QSize sizeHint() const override
LayerEditorToolBar * m_toolBar
LayerEditorWidget * m_editorWidget
LayerEditorActions * m_actions
void setModels(ApplicationModels *models)
Set the mododel for the different items.
QSize minimumSizeHint() const override
LayerEditor(QWidget *parent=nullptr)
bool firstSelected() const
Checks if the first row is presen in the selection.
bool lastSelected() const
checks if the last row is present in the selection
DAREFLCORE_EXPORT QSize DockMinimumSizeHint()
Hint on minimum size of docks on main reflectometry window.
DAREFLCORE_EXPORT QSize DockSizeHint()
Hint on size of docks on main reflectometry window.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.