BornAgain
1.19.0
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). More...
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=0) | |
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 |
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.
ProjectionsToolBar::ProjectionsToolBar | ( | ProjectionsEditorActions * | editorActions, |
QWidget * | parent = 0 |
||
) |
Definition at line 39 of file ProjectionsToolBar.cpp.
References currentActivity(), m_activityButtonGroup, m_previousActivity, onActivityGroupChange(), setup_extratools_group(), setup_selection_group(), setup_shapes_group(), and Constants::toolbar_icon_size.
|
signal |
Referenced by onActivityGroupChange(), onChangeActivityRequest(), and ProjectionsEditor::setup_connections().
|
private |
Definition at line 146 of file ProjectionsToolBar.cpp.
Referenced by setup_selection_group(), and setup_shapes_group().
|
private |
Definition at line 153 of file ProjectionsToolBar.cpp.
References m_activityButtonGroup.
Referenced by ProjectionsToolBar(), onActivityGroupChange(), onChangeActivityRequest(), and onProjectionTabChange().
|
privateslot |
Definition at line 83 of file ProjectionsToolBar.cpp.
References activityModeChanged(), and currentActivity().
Referenced by ProjectionsToolBar().
|
slot |
Definition at line 63 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 76 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 158 of file ProjectionsToolBar.cpp.
References m_activityButtonGroup.
Referenced by onChangeActivityRequest().
|
private |
Definition at line 136 of file ProjectionsToolBar.cpp.
References m_editorActions, and ProjectionsEditorActions::onSaveAction().
Referenced by ProjectionsToolBar().
|
private |
Definition at line 88 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 116 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().