BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleToolBar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/SampleToolBar.h
6 //! @brief Defines class SampleToolBar
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_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLETOOLBAR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLETOOLBAR_H
17 
19 #include <QTreeView>
20 
21 class QAction;
22 class QToolButton;
23 class QToolBar;
24 class QComboBox;
25 class QString;
26 class QButtonGroup;
27 class SampleModel;
28 class SampleView;
29 
30 //! The SampleToolBar class represents a main toolbar on top of SampleView window
31 
32 class SampleToolBar : public StyledToolBar {
33  Q_OBJECT
34 
35 public:
36  explicit SampleToolBar(SampleView* parent);
37 
38 signals:
39  void deleteItems();
40  void selectionMode(int);
41  void centerView();
42  void smartAlign();
43  void changeScale(double);
44 
45 public slots:
46  void onViewSelectionMode(int);
47  void onScaleComboChanged(const QString&);
48  void onMaterialEditorCall();
49 
50 private:
51  QButtonGroup* m_pointerModeGroup;
52  QToolButton* m_removeButton;
53  QToolButton* m_centerViewButton;
54  QComboBox* m_scaleCombo;
55  QToolButton* m_materialEditorButton;
58 };
59 
60 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLETOOLBAR_H
Defines class StyledToolBar.
Main model to hold sample items.
Definition: SampleModel.h:24
The SampleToolBar class represents a main toolbar on top of SampleView window.
Definition: SampleToolBar.h:32
void deleteItems()
void selectionMode(int)
void onViewSelectionMode(int)
QButtonGroup * m_pointerModeGroup
Definition: SampleToolBar.h:51
QToolButton * m_centerViewButton
Definition: SampleToolBar.h:53
QToolButton * m_removeButton
Definition: SampleToolBar.h:52
SampleToolBar(SampleView *parent)
main tool bar on top of SampleView window
void onMaterialEditorCall()
QToolButton * m_materialEditorButton
Definition: SampleToolBar.h:55
void onScaleComboChanged(const QString &)
QComboBox * m_scaleCombo
Definition: SampleToolBar.h:54
void smartAlign()
SampleView * m_sampleView
Definition: SampleToolBar.h:57
void centerView()
QToolButton * m_RealSpaceViewerButton
Definition: SampleToolBar.h:56
void changeScale(double)
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition: StyledToolBar.h:22