BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MaskEditorToolbar.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/View/Mask/MaskEditorToolbar.h
6
//! @brief Defines class MaskEditorToolbar
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#ifndef BORNAGAIN_GUI_VIEW_MASK_MASKEDITORTOOLBAR_H
16
#define BORNAGAIN_GUI_VIEW_MASK_MASKEDITORTOOLBAR_H
17
18
#include "
GUI/View/Mask/MaskEditorFlags.h
"
19
#include <QToolBar>
20
21
class
MaskEditorActions
;
22
class
QButtonGroup;
23
24
//! Main class to draw masks on top of intensity data map
25
26
class
MaskEditorToolbar
:
public
QToolBar {
27
Q_OBJECT
28
public
:
29
MaskEditorToolbar
(
MaskEditorActions
* editorActions, QWidget* parent =
nullptr
);
30
31
signals:
32
void
activityModeChanged
(MaskEditorFlags::Activity);
33
void
presentationTypeRequest
(MaskEditorFlags::PresentationType);
34
void
maskValueChanged
(MaskEditorFlags::MaskValue);
35
36
public
slots:
37
void
onChangeActivityRequest
(MaskEditorFlags::Activity value);
38
39
private
slots:
40
void
onActivityGroupChange
(
int
value);
41
void
onMaskValueGroupChange
(
int
value);
42
void
onPresentationTypePressed
();
43
void
onPresentationTypeReleased
();
44
45
private
:
46
void
setup_selection_group
();
47
void
setup_maskvalue_group
();
48
void
setup_shapes_group
();
49
void
setup_maskmodify_group
();
50
void
setup_extratools_group
();
51
void
add_separator
();
52
53
MaskEditorFlags::Activity
currentActivity
()
const
;
54
void
setCurrentActivity
(MaskEditorFlags::Activity value);
55
56
MaskEditorActions
*
m_editorActions
;
57
QButtonGroup*
m_activityButtonGroup
;
58
QButtonGroup*
m_maskValueGroup
;
59
MaskEditorFlags::Activity
m_previousActivity
;
60
};
61
62
#endif
// BORNAGAIN_GUI_VIEW_MASK_MASKEDITORTOOLBAR_H
MaskEditorFlags.h
Defines class MaskEditorFlags.
MaskEditorActions
Defines actions for MaskEditor which are related to selected MaskItem (toggle mask value,...
Definition:
MaskEditorActions.h:33
MaskEditorToolbar
Main class to draw masks on top of intensity data map.
Definition:
MaskEditorToolbar.h:26
MaskEditorToolbar::setup_shapes_group
void setup_shapes_group()
Definition:
MaskEditorToolbar.cpp:144
MaskEditorToolbar::setup_maskmodify_group
void setup_maskmodify_group()
Definition:
MaskEditorToolbar.cpp:200
MaskEditorToolbar::maskValueChanged
void maskValueChanged(MaskEditorFlags::MaskValue)
MaskEditorToolbar::add_separator
void add_separator()
Definition:
MaskEditorToolbar.cpp:230
MaskEditorToolbar::m_activityButtonGroup
QButtonGroup * m_activityButtonGroup
Definition:
MaskEditorToolbar.h:57
MaskEditorToolbar::setup_extratools_group
void setup_extratools_group()
Definition:
MaskEditorToolbar.cpp:208
MaskEditorToolbar::setCurrentActivity
void setCurrentActivity(MaskEditorFlags::Activity value)
Definition:
MaskEditorToolbar.cpp:242
MaskEditorToolbar::m_editorActions
MaskEditorActions * m_editorActions
Definition:
MaskEditorToolbar.h:56
MaskEditorToolbar::currentActivity
MaskEditorFlags::Activity currentActivity() const
Definition:
MaskEditorToolbar.cpp:237
MaskEditorToolbar::setup_selection_group
void setup_selection_group()
Definition:
MaskEditorToolbar.cpp:93
MaskEditorToolbar::onPresentationTypePressed
void onPresentationTypePressed()
Definition:
MaskEditorToolbar.cpp:83
MaskEditorToolbar::m_previousActivity
MaskEditorFlags::Activity m_previousActivity
Definition:
MaskEditorToolbar.h:59
MaskEditorToolbar::onPresentationTypeReleased
void onPresentationTypeReleased()
Definition:
MaskEditorToolbar.cpp:88
MaskEditorToolbar::onMaskValueGroupChange
void onMaskValueGroupChange(int value)
Definition:
MaskEditorToolbar.cpp:77
MaskEditorToolbar::setup_maskvalue_group
void setup_maskvalue_group()
Definition:
MaskEditorToolbar.cpp:121
MaskEditorToolbar::activityModeChanged
void activityModeChanged(MaskEditorFlags::Activity)
MaskEditorToolbar::onChangeActivityRequest
void onChangeActivityRequest(MaskEditorFlags::Activity value)
Handles ZOOM requests from MaskGraphicsView while user press and holds space bar. As soon as space ba...
Definition:
MaskEditorToolbar.cpp:60
MaskEditorToolbar::onActivityGroupChange
void onActivityGroupChange(int value)
Definition:
MaskEditorToolbar.cpp:71
MaskEditorToolbar::m_maskValueGroup
QButtonGroup * m_maskValueGroup
Definition:
MaskEditorToolbar.h:58
MaskEditorToolbar::MaskEditorToolbar
MaskEditorToolbar(MaskEditorActions *editorActions, QWidget *parent=nullptr)
Definition:
MaskEditorToolbar.cpp:26
MaskEditorToolbar::presentationTypeRequest
void presentationTypeRequest(MaskEditorFlags::PresentationType)
GUI
View
Mask
MaskEditorToolbar.h
Generated by
1.9.1