BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpaceToolBar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/RealSpaceWidgets/RealSpaceToolBar.h
6 //! @brief Defines class RealSpaceWidget
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_REALSPACEWIDGETS_REALSPACETOOLBAR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_REALSPACETOOLBAR_H
17 
19 
20 class QToolButton;
21 class QCheckBox;
22 
23 //! Thin toolbar on top of RealSpaceWidget.
24 
26  Q_OBJECT
27 
28 public:
29  RealSpaceToolBar(QWidget* parent = nullptr);
30 
31 signals:
34  void topViewAction();
35  void lockViewAction(bool);
36  void changeLayerSizeAction(double);
38 
39 private:
40  QToolButton* m_defaultViewButton;
41  QToolButton* m_sideViewButton;
42  QToolButton* m_topViewButton;
43  QCheckBox* m_lockViewCheckBox;
44 
47  QToolButton* m_savePictureButton;
48 };
49 
50 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_REALSPACETOOLBAR_H
Defines class StyledToolBar.
Thin toolbar on top of RealSpaceWidget.
void changeLayerSizeAction(double)
QToolButton * m_decreaseLayerSizeButton
void savePictureAction()
QToolButton * m_savePictureButton
void defaultViewAction()
QToolButton * m_sideViewButton
QCheckBox * m_lockViewCheckBox
QToolButton * m_defaultViewButton
QToolButton * m_topViewButton
QToolButton * m_increaseLayerSizeButton
RealSpaceToolBar(QWidget *parent=nullptr)
void lockViewAction(bool)
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition: StyledToolBar.h:22