BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Toolbar with projections buttons (horizontal projections, vertical projections, select, zoom) located at the right-hand side of ProjectionsEditor (part of JobProjectionsWidget).
Definition at line 27 of file ProjectionsToolbar.h.
Public Slots | |
void | onChangeActivityRequest (MaskEditorFlags::Activity value) |
void | onProjectionTabChange (MaskEditorFlags::Activity value) |
Change activity only if current activity is one of drawing mode (horizontal, vertical projections drawing). More... | |
Signals | |
void | activityModeChanged (MaskEditorFlags::Activity) |
Public Member Functions | |
ProjectionsToolbar (ProjectionsEditorActions *editorActions, QWidget *parent=nullptr) | |
Private Slots | |
void | onActivityGroupChange (int) |
Private Member Functions | |
void | add_separator () |
MaskEditorFlags::Activity | currentActivity () const |
void | setCurrentActivity (MaskEditorFlags::Activity value) |
void | setup_extratools_group () |
void | setup_selection_group () |
void | setup_shapes_group () |
Private Attributes | |
QButtonGroup * | m_activityButtonGroup |
ProjectionsEditorActions * | m_editorActions |
MaskEditorFlags::Activity | m_previousActivity |
ProjectionsToolbar::ProjectionsToolbar | ( | ProjectionsEditorActions * | editorActions, |
QWidget * | parent = nullptr |
||
) |
Definition at line 40 of file ProjectionsToolbar.cpp.
References currentActivity(), m_activityButtonGroup, m_previousActivity, onActivityGroupChange(), setup_extratools_group(), setup_selection_group(), setup_shapes_group(), and GUI::Constants::toolbar_icon_size.
|
signal |
Referenced by onActivityGroupChange(), onChangeActivityRequest(), and ProjectionsEditor::setup_connections().
|
private |
Definition at line 147 of file ProjectionsToolbar.cpp.
Referenced by setup_selection_group(), and setup_shapes_group().
|
private |
Definition at line 154 of file ProjectionsToolbar.cpp.
References m_activityButtonGroup.
Referenced by ProjectionsToolbar(), onActivityGroupChange(), onChangeActivityRequest(), and onProjectionTabChange().
|
privateslot |
Definition at line 84 of file ProjectionsToolbar.cpp.
References activityModeChanged(), and currentActivity().
Referenced by ProjectionsToolbar().
|
slot |
Definition at line 64 of file ProjectionsToolbar.cpp.
References activityModeChanged(), currentActivity(), m_previousActivity, MaskEditorFlags::PREVIOUS_MODE, and setCurrentActivity().
Referenced by onProjectionTabChange(), and ProjectionsEditor::setup_connections().
|
slot |
Change activity only if current activity is one of drawing mode (horizontal, vertical projections drawing).
Definition at line 77 of file ProjectionsToolbar.cpp.
References currentActivity(), MaskEditorFlags::HORIZONTAL_LINE_MODE, onChangeActivityRequest(), and MaskEditorFlags::VERTICAL_LINE_MODE.
Referenced by ProjectionsEditor::setup_connections().
|
private |
Definition at line 159 of file ProjectionsToolbar.cpp.
References m_activityButtonGroup.
Referenced by onChangeActivityRequest().
|
private |
Definition at line 137 of file ProjectionsToolbar.cpp.
References m_editorActions, and ProjectionsEditorActions::onSaveAction().
Referenced by ProjectionsToolbar().
|
private |
Definition at line 89 of file ProjectionsToolbar.cpp.
References add_separator(), m_activityButtonGroup, m_editorActions, MaskEditorFlags::PAN_ZOOM_MODE, ProjectionsEditorActions::resetViewRequest(), and MaskEditorFlags::SELECTION_MODE.
Referenced by ProjectionsToolbar().
|
private |
Definition at line 117 of file ProjectionsToolbar.cpp.
References add_separator(), MaskEditorFlags::HORIZONTAL_LINE_MODE, m_activityButtonGroup, and MaskEditorFlags::VERTICAL_LINE_MODE.
Referenced by ProjectionsToolbar().
|
private |
Definition at line 52 of file ProjectionsToolbar.h.
Referenced by ProjectionsToolbar(), currentActivity(), setCurrentActivity(), setup_selection_group(), and setup_shapes_group().
|
private |
Definition at line 51 of file ProjectionsToolbar.h.
Referenced by setup_extratools_group(), and setup_selection_group().
|
private |
Definition at line 53 of file ProjectionsToolbar.h.
Referenced by ProjectionsToolbar(), and onChangeActivityRequest().