BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectionsToolbar.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/View/Projection/ProjectionsToolbar.h
6
//! @brief Defines class ProjectionsToolbar
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_PROJECTION_PROJECTIONSTOOLBAR_H
16
#define BORNAGAIN_GUI_VIEW_PROJECTION_PROJECTIONSTOOLBAR_H
17
18
#include "
GUI/View/Mask/MaskEditorFlags.h
"
19
#include <QToolBar>
20
21
class
ProjectionsEditorActions
;
22
class
QButtonGroup;
23
24
//! Toolbar with projections buttons (horizontal projections, vertical projections, select, zoom)
25
//! located at the right-hand side of ProjectionsEditor (part of JobProjectionsWidget).
26
27
class
ProjectionsToolbar
:
public
QToolBar {
28
Q_OBJECT
29
30
public
:
31
ProjectionsToolbar
(
ProjectionsEditorActions
* editorActions, QWidget* parent =
nullptr
);
32
33
public
slots:
34
void
onChangeActivityRequest
(MaskEditorFlags::Activity value);
35
void
onProjectionTabChange
(MaskEditorFlags::Activity value);
36
37
signals:
38
void
activityModeChanged
(MaskEditorFlags::Activity);
39
40
private
slots:
41
void
onActivityGroupChange
(
int
);
42
43
private
:
44
void
setup_selection_group
();
45
void
setup_shapes_group
();
46
void
setup_extratools_group
();
47
void
add_separator
();
48
MaskEditorFlags::Activity
currentActivity
()
const
;
49
void
setCurrentActivity
(MaskEditorFlags::Activity value);
50
51
ProjectionsEditorActions
*
m_editorActions
;
52
QButtonGroup*
m_activityButtonGroup
;
53
MaskEditorFlags::Activity
m_previousActivity
;
54
};
55
56
#endif
// BORNAGAIN_GUI_VIEW_PROJECTION_PROJECTIONSTOOLBAR_H
MaskEditorFlags.h
Defines class MaskEditorFlags.
ProjectionsEditorActions
Provides various actions for ProjectionsEditor.
Definition:
ProjectionsEditorActions.h:29
ProjectionsToolbar
Toolbar with projections buttons (horizontal projections, vertical projections, select,...
Definition:
ProjectionsToolbar.h:27
ProjectionsToolbar::m_editorActions
ProjectionsEditorActions * m_editorActions
Definition:
ProjectionsToolbar.h:51
ProjectionsToolbar::add_separator
void add_separator()
Definition:
ProjectionsToolbar.cpp:147
ProjectionsToolbar::currentActivity
MaskEditorFlags::Activity currentActivity() const
Definition:
ProjectionsToolbar.cpp:154
ProjectionsToolbar::setCurrentActivity
void setCurrentActivity(MaskEditorFlags::Activity value)
Definition:
ProjectionsToolbar.cpp:159
ProjectionsToolbar::activityModeChanged
void activityModeChanged(MaskEditorFlags::Activity)
ProjectionsToolbar::setup_selection_group
void setup_selection_group()
Definition:
ProjectionsToolbar.cpp:89
ProjectionsToolbar::onProjectionTabChange
void onProjectionTabChange(MaskEditorFlags::Activity value)
Change activity only if current activity is one of drawing mode (horizontal, vertical projections dra...
Definition:
ProjectionsToolbar.cpp:77
ProjectionsToolbar::m_activityButtonGroup
QButtonGroup * m_activityButtonGroup
Definition:
ProjectionsToolbar.h:52
ProjectionsToolbar::onActivityGroupChange
void onActivityGroupChange(int)
Definition:
ProjectionsToolbar.cpp:84
ProjectionsToolbar::m_previousActivity
MaskEditorFlags::Activity m_previousActivity
Definition:
ProjectionsToolbar.h:53
ProjectionsToolbar::onChangeActivityRequest
void onChangeActivityRequest(MaskEditorFlags::Activity value)
Definition:
ProjectionsToolbar.cpp:64
ProjectionsToolbar::setup_extratools_group
void setup_extratools_group()
Definition:
ProjectionsToolbar.cpp:137
ProjectionsToolbar::ProjectionsToolbar
ProjectionsToolbar(ProjectionsEditorActions *editorActions, QWidget *parent=nullptr)
Definition:
ProjectionsToolbar.cpp:40
ProjectionsToolbar::setup_shapes_group
void setup_shapes_group()
Definition:
ProjectionsToolbar.cpp:117
GUI
View
Projection
ProjectionsToolbar.h
Generated by
1.9.1