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
18
#include "
GUI/coregui/mainwindow/StyledToolBar.h
"
19
#include <QList>
20
21
class
QAction;
22
class
QToolButton;
23
class
InstrumentViewActions
;
24
class
QMenu;
25
26
//! Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
27
28
class
InstrumentViewToolBar
:
public
StyledToolBar
{
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
;
39
QToolButton*
m_removeInstrumentButton
;
40
QToolButton*
m_cloneInstrumentButton
;
41
QMenu*
m_addInstrumentMenu
;
42
};
43
44
#endif
// BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTVIEWTOOLBAR_H
StyledToolBar.h
Defines class StyledToolBar.
InstrumentViewActions
Collection of actions to add/remove/clone instrument.
Definition:
InstrumentViewActions.h:29
InstrumentViewToolBar
Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
Definition:
InstrumentViewToolBar.h:28
InstrumentViewToolBar::onAddInstrument
void onAddInstrument()
Definition:
InstrumentViewToolBar.cpp:56
InstrumentViewToolBar::m_cloneInstrumentButton
QToolButton * m_cloneInstrumentButton
Definition:
InstrumentViewToolBar.h:40
InstrumentViewToolBar::m_removeInstrumentButton
QToolButton * m_removeInstrumentButton
Definition:
InstrumentViewToolBar.h:39
InstrumentViewToolBar::InstrumentViewToolBar
InstrumentViewToolBar(InstrumentViewActions *actions, QWidget *parent=nullptr)
Definition:
InstrumentViewToolBar.cpp:20
InstrumentViewToolBar::m_addInstrumentButton
QToolButton * m_addInstrumentButton
Definition:
InstrumentViewToolBar.h:38
InstrumentViewToolBar::m_addInstrumentMenu
QMenu * m_addInstrumentMenu
Definition:
InstrumentViewToolBar.h:41
StyledToolBar
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition:
StyledToolBar.h:22
GUI
coregui
Views
InstrumentWidgets
InstrumentViewToolBar.h
Generated by
1.9.1