BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InstrumentViewToolBar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InstrumentWidgets/InstrumentViewToolBar.h
6 //! @brief Defines class InstrumentViewToolBar
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_INSTRUMENTWIDGETS_INSTRUMENTVIEWTOOLBAR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTVIEWTOOLBAR_H
17 
19 #include <QList>
20 
21 class QAction;
22 class QToolButton;
24 class QMenu;
25 
26 //! Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
27 
29  Q_OBJECT
30 
31 public:
32  explicit InstrumentViewToolBar(InstrumentViewActions* actions, QWidget* parent = nullptr);
33 
34 private slots:
35  void onAddInstrument();
36 
37 private:
38  QToolButton* m_addInstrumentButton;
42 };
43 
44 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTVIEWTOOLBAR_H
Defines class StyledToolBar.
Collection of actions to add/remove/clone instrument.
Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
QToolButton * m_cloneInstrumentButton
QToolButton * m_removeInstrumentButton
InstrumentViewToolBar(InstrumentViewActions *actions, QWidget *parent=nullptr)
QToolButton * m_addInstrumentButton
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition: StyledToolBar.h:22