BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
StyledToolBar.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/coregui/mainwindow/StyledToolBar.h
6
//! @brief Defines class StyledToolBar
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_MAINWINDOW_STYLEDTOOLBAR_H
16
#define BORNAGAIN_GUI_COREGUI_MAINWINDOW_STYLEDTOOLBAR_H
17
18
#include <QToolBar>
19
20
//! The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
21
22
class
StyledToolBar
:
public
QToolBar {
23
Q_OBJECT
24
25
public
:
26
explicit
StyledToolBar
(QWidget* parent =
nullptr
);
27
void
addStyledSeparator
();
28
void
addSpacing
(
int
width = 2);
29
void
addStyledExpand
();
30
31
protected
:
32
void
contextMenuEvent
(QContextMenuEvent*);
33
};
34
35
#endif
// BORNAGAIN_GUI_COREGUI_MAINWINDOW_STYLEDTOOLBAR_H
StyledToolBar
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition:
StyledToolBar.h:22
StyledToolBar::StyledToolBar
StyledToolBar(QWidget *parent=nullptr)
Definition:
StyledToolBar.cpp:19
StyledToolBar::addStyledSeparator
void addStyledSeparator()
Definition:
StyledToolBar.cpp:28
StyledToolBar::addStyledExpand
void addStyledExpand()
Definition:
StyledToolBar.cpp:44
StyledToolBar::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *)
Definition:
StyledToolBar.cpp:51
StyledToolBar::addSpacing
void addSpacing(int width=2)
Width of the spacing between buttons.
Definition:
StyledToolBar.cpp:37
GUI
coregui
mainwindow
StyledToolBar.h
Generated by
1.9.1