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 26 of file MaskEditorToolbar.h.
Public Slots | |
void | onChangeActivityRequest (MaskEditorFlags::Activity value) |
Handles ZOOM requests from MaskGraphicsView while user press and holds space bar. As soon as space bar is released, activity is returned to previous state. More... | |
Signals | |
void | activityModeChanged (MaskEditorFlags::Activity) |
void | maskValueChanged (MaskEditorFlags::MaskValue) |
void | presentationTypeRequest (MaskEditorFlags::PresentationType) |
Public Member Functions | |
MaskEditorToolbar (MaskEditorActions *editorActions, QWidget *parent=nullptr) | |
Private Slots | |
void | onActivityGroupChange (int value) |
void | onMaskValueGroupChange (int value) |
void | onPresentationTypePressed () |
void | onPresentationTypeReleased () |
Private Member Functions | |
void | add_separator () |
MaskEditorFlags::Activity | currentActivity () const |
void | setCurrentActivity (MaskEditorFlags::Activity value) |
void | setup_extratools_group () |
void | setup_maskmodify_group () |
void | setup_maskvalue_group () |
void | setup_selection_group () |
void | setup_shapes_group () |
Private Attributes | |
QButtonGroup * | m_activityButtonGroup |
MaskEditorActions * | m_editorActions |
QButtonGroup * | m_maskValueGroup |
MaskEditorFlags::Activity | m_previousActivity |
MaskEditorToolbar::MaskEditorToolbar | ( | MaskEditorActions * | editorActions, |
QWidget * | parent = nullptr |
||
) |
Definition at line 26 of file MaskEditorToolbar.cpp.
References currentActivity(), m_activityButtonGroup, m_maskValueGroup, m_previousActivity, onActivityGroupChange(), onMaskValueGroupChange(), setup_extratools_group(), setup_maskmodify_group(), setup_selection_group(), setup_shapes_group(), and GUI::Constants::toolbar_icon_size.
|
signal |
Referenced by onActivityGroupChange(), onChangeActivityRequest(), and MaskEditor::setup_connections().
|
private |
Definition at line 230 of file MaskEditorToolbar.cpp.
Referenced by setup_extratools_group(), setup_maskmodify_group(), setup_selection_group(), and setup_shapes_group().
|
private |
Definition at line 237 of file MaskEditorToolbar.cpp.
References m_activityButtonGroup.
Referenced by MaskEditorToolbar(), onActivityGroupChange(), and onChangeActivityRequest().
|
signal |
Referenced by onMaskValueGroupChange(), and MaskEditor::setup_connections().
|
privateslot |
Definition at line 71 of file MaskEditorToolbar.cpp.
References activityModeChanged(), and currentActivity().
Referenced by MaskEditorToolbar().
|
slot |
Handles ZOOM requests from MaskGraphicsView while user press and holds space bar. As soon as space bar is released, activity is returned to previous state.
Definition at line 60 of file MaskEditorToolbar.cpp.
References activityModeChanged(), currentActivity(), m_previousActivity, MaskEditorFlags::PREVIOUS_MODE, and setCurrentActivity().
Referenced by MaskEditor::setup_connections().
|
privateslot |
Definition at line 77 of file MaskEditorToolbar.cpp.
References maskValueChanged().
Referenced by MaskEditorToolbar().
|
privateslot |
Definition at line 83 of file MaskEditorToolbar.cpp.
References MaskEditorFlags::MASK_PRESENTER, and presentationTypeRequest().
Referenced by setup_extratools_group().
|
privateslot |
Definition at line 88 of file MaskEditorToolbar.cpp.
References MaskEditorFlags::MASK_EDITOR, and presentationTypeRequest().
Referenced by setup_extratools_group().
|
signal |
Referenced by onPresentationTypePressed(), onPresentationTypeReleased(), and MaskEditor::setup_connections().
|
private |
Definition at line 242 of file MaskEditorToolbar.cpp.
References m_activityButtonGroup.
Referenced by onChangeActivityRequest().
|
private |
Definition at line 208 of file MaskEditorToolbar.cpp.
References add_separator(), m_editorActions, onPresentationTypePressed(), onPresentationTypeReleased(), and MaskEditorActions::propertyPanelRequest().
Referenced by MaskEditorToolbar().
|
private |
Definition at line 200 of file MaskEditorToolbar.cpp.
References add_separator(), MaskEditorActions::bringToFrontAction(), m_editorActions, and MaskEditorActions::sendToBackAction().
Referenced by MaskEditorToolbar().
|
private |
Definition at line 121 of file MaskEditorToolbar.cpp.
References m_maskValueGroup, MaskEditorFlags::MASK_OFF, and MaskEditorFlags::MASK_ON.
|
private |
Definition at line 93 of file MaskEditorToolbar.cpp.
References add_separator(), m_activityButtonGroup, m_editorActions, MaskEditorFlags::PAN_ZOOM_MODE, MaskEditorActions::resetViewRequest(), and MaskEditorFlags::SELECTION_MODE.
Referenced by MaskEditorToolbar().
|
private |
Definition at line 144 of file MaskEditorToolbar.cpp.
References add_separator(), MaskEditorFlags::ELLIPSE_MODE, MaskEditorFlags::HORIZONTAL_LINE_MODE, m_activityButtonGroup, MaskEditorFlags::POLYGON_MODE, MaskEditorFlags::RECTANGLE_MODE, MaskEditorFlags::ROI_MODE, and MaskEditorFlags::VERTICAL_LINE_MODE.
Referenced by MaskEditorToolbar().
|
private |
Definition at line 57 of file MaskEditorToolbar.h.
Referenced by MaskEditorToolbar(), currentActivity(), setCurrentActivity(), setup_selection_group(), and setup_shapes_group().
|
private |
Definition at line 56 of file MaskEditorToolbar.h.
Referenced by setup_extratools_group(), setup_maskmodify_group(), and setup_selection_group().
|
private |
Definition at line 58 of file MaskEditorToolbar.h.
Referenced by MaskEditorToolbar(), and setup_maskvalue_group().
|
private |
Definition at line 59 of file MaskEditorToolbar.h.
Referenced by MaskEditorToolbar(), and onChangeActivityRequest().