BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InfoPanelToolBar.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/coregui/Views/CommonWidgets/InfoPanelToolBar.h
6
//! @brief Defines class InfoPanelToolBar
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_COMMONWIDGETS_INFOPANELTOOLBAR_H
16
#define BORNAGAIN_GUI_COREGUI_VIEWS_COMMONWIDGETS_INFOPANELTOOLBAR_H
17
18
#include "
GUI/coregui/mainwindow/StyledToolBar.h
"
19
20
class
QAction;
21
22
//! Toolbar for InfoPanel with collapse/expand buttons.
23
24
class
InfoPanelToolBar
:
public
QToolBar {
25
Q_OBJECT
26
27
public
:
28
explicit
InfoPanelToolBar
(QWidget* parent =
nullptr
);
29
30
signals:
31
void
expandButtonClicked
();
32
33
public
slots:
34
void
setExpandStatus
(
bool
status);
35
36
protected
slots:
37
void
onExpandButtonClicked
();
38
39
private
:
40
QAction*
m_expandAction
;
41
bool
m_expanded
;
42
};
43
44
#endif
// BORNAGAIN_GUI_COREGUI_VIEWS_COMMONWIDGETS_INFOPANELTOOLBAR_H
StyledToolBar.h
Defines class StyledToolBar.
InfoPanelToolBar
Toolbar for InfoPanel with collapse/expand buttons.
Definition:
InfoPanelToolBar.h:24
InfoPanelToolBar::m_expanded
bool m_expanded
Definition:
InfoPanelToolBar.h:41
InfoPanelToolBar::expandButtonClicked
void expandButtonClicked()
InfoPanelToolBar::m_expandAction
QAction * m_expandAction
Definition:
InfoPanelToolBar.h:40
InfoPanelToolBar::onExpandButtonClicked
void onExpandButtonClicked()
Definition:
InfoPanelToolBar.cpp:53
InfoPanelToolBar::InfoPanelToolBar
InfoPanelToolBar(QWidget *parent=nullptr)
Definition:
InfoPanelToolBar.cpp:27
InfoPanelToolBar::setExpandStatus
void setExpandStatus(bool status)
Definition:
InfoPanelToolBar.cpp:44
GUI
coregui
Views
CommonWidgets
InfoPanelToolBar.h
Generated by
1.9.1