|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget container with functionality similar to QTabWidget. More...
Public Member Functions | |
| MainBarWidget (QWidget *parent=nullptr) | |
| ~MainBarWidget () | |
| void | addWidget (QWidget *widget, const QString &title, bool is_enabled=true) |
| void | setCurrentIndex (int index) |
Private Attributes | |
| std::map< int, FancyTab * > | m_indexToTab |
| QHBoxLayout * | m_labelLayout {nullptr} |
| QStackedWidget * | m_stackedWidget {nullptr} |
Widget container with functionality similar to QTabWidget.
Has large button bar on top, and stacked widget at bottom.
Definition at line 33 of file mainbarwidget.h.
| gui2::MainBarWidget::MainBarWidget | ( | QWidget * | parent = nullptr | ) |
|
default |
| void gui2::MainBarWidget::addWidget | ( | QWidget * | widget, |
| const QString & | title, | ||
| bool | is_enabled = true |
||
| ) |
Definition at line 38 of file mainbarwidget.cpp.
References gui2::FancyTab::clicked(), m_indexToTab, m_labelLayout, m_stackedWidget, and setCurrentIndex().
Referenced by gui2::MainWindow::init_components().
| void gui2::MainBarWidget::setCurrentIndex | ( | int | index | ) |
Definition at line 51 of file mainbarwidget.cpp.
References m_indexToTab, and m_stackedWidget.
Referenced by addWidget(), and gui2::MainWindow::init_components().
|
private |
Definition at line 47 of file mainbarwidget.h.
Referenced by addWidget(), and setCurrentIndex().
|
private |
Definition at line 46 of file mainbarwidget.h.
Referenced by MainBarWidget(), and addWidget().
|
private |
Definition at line 45 of file mainbarwidget.h.
Referenced by MainBarWidget(), addWidget(), and setCurrentIndex().