BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Main class to draw masks on top of intensity data map.
Definition at line 31 of file MaskEditor.h.
Public Slots | |
void | onPropertyPanelRequest () |
shows/hides right panel with properties More... | |
void | resetContext () |
void | setMaskContext (SessionModel *model, const QModelIndex &maskContainerIndex, IntensityDataItem *intensityItem) |
Main method to setup context for mask editing. More... | |
QList< QAction * > | topToolbarActions () |
Returns list of actions intended for styled toolbar (on the top). More... | |
Public Member Functions | |
MaskEditor (QWidget *parent=nullptr) | |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) override |
Context menu reimplemented to supress default menu. More... | |
Private Member Functions | |
void | setup_connections () |
Private Attributes | |
MaskEditorActions * | m_editorActions |
MaskEditorCanvas * | m_editorCanvas |
MaskEditorPropertyPanel * | m_editorPropertyPanel |
MaskEditorToolbar * | m_toolbar |
MaskEditor::MaskEditor | ( | QWidget * | parent = nullptr | ) |
Definition at line 27 of file MaskEditor.cpp.
References m_editorCanvas, m_editorPropertyPanel, m_toolbar, MaskEditorPropertyPanel::setPanelHidden(), and setup_connections().
|
overrideprotected |
Context menu reimplemented to supress default menu.
Definition at line 80 of file MaskEditor.cpp.
|
slot |
shows/hides right panel with properties
Definition at line 74 of file MaskEditor.cpp.
References m_editorPropertyPanel, and MaskEditorPropertyPanel::setPanelHidden().
Referenced by setup_connections().
|
slot |
Definition at line 67 of file MaskEditor.cpp.
References m_editorCanvas, m_editorPropertyPanel, MaskEditorCanvas::resetContext(), and MaskEditorPropertyPanel::resetContext().
Referenced by RealDataMaskWidget::unsubscribeFromItem().
|
slot |
Main method to setup context for mask editing.
Definition at line 51 of file MaskEditor.cpp.
References SessionModel::itemForIndex(), m_editorActions, m_editorCanvas, m_editorPropertyPanel, MaskContainerItem::M_TYPE, SessionItem::modelType(), MaskEditorPropertyPanel::selectionModel(), MaskEditorCanvas::setMaskContext(), MaskEditorPropertyPanel::setMaskContext(), MaskEditorActions::setModel(), MaskEditorCanvas::setSelectionModel(), and MaskEditorActions::setSelectionModel().
Referenced by RealDataMaskWidget::subscribeToItem().
|
private |
Definition at line 92 of file MaskEditor.cpp.
References MaskEditorToolbar::activityModeChanged(), MaskEditorCanvas::changeActivityRequest(), MaskEditorCanvas::deleteSelectedRequest(), MaskEditorCanvas::getScene(), MaskEditorPropertyPanel::itemContextMenuRequest(), MaskGraphicsScene::itemContextMenuRequest(), m_editorActions, m_editorCanvas, m_editorPropertyPanel, m_toolbar, MaskEditorToolbar::maskValueChanged(), MaskGraphicsScene::onActivityModeChanged(), MaskEditorToolbar::onChangeActivityRequest(), MaskEditorActions::onDeleteMaskAction(), MaskEditorActions::onItemContextMenuRequest(), MaskGraphicsScene::onMaskValueChanged(), MaskEditorCanvas::onPresentationTypeRequest(), onPropertyPanelRequest(), MaskEditorCanvas::onResetViewRequest(), MaskEditorCanvas::onSavePlotRequest(), MaskEditorToolbar::presentationTypeRequest(), MaskEditorActions::propertyPanelRequest(), MaskEditorActions::resetViewRequest(), and MaskEditorActions::savePlotRequest().
Referenced by MaskEditor().
|
slot |
Returns list of actions intended for styled toolbar (on the top).
Definition at line 87 of file MaskEditor.cpp.
References m_editorActions, and MaskEditorActions::topToolbarActions().
Referenced by RealDataMaskWidget::actionList().
|
private |
Definition at line 56 of file MaskEditor.h.
Referenced by setMaskContext(), setup_connections(), and topToolbarActions().
|
private |
Definition at line 59 of file MaskEditor.h.
Referenced by MaskEditor(), resetContext(), setMaskContext(), and setup_connections().
|
private |
Definition at line 58 of file MaskEditor.h.
Referenced by MaskEditor(), onPropertyPanelRequest(), resetContext(), setMaskContext(), and setup_connections().
|
private |
Definition at line 57 of file MaskEditor.h.
Referenced by MaskEditor(), and setup_connections().