BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The SessionModelView is a technical view which shows the content all current application models. More...
Public Member Functions | |
SessionModelView (MainWindow *mainWindow=0) | |
void | setViewActive (bool is_active) |
Private Slots | |
void | onExpandCollapseTree () |
Private Member Functions | |
void | init_tabs () |
Creates content for tab widget. More... | |
void | init_test_view () |
QList< SessionModel * > | modelsForTabs () |
Returns list of models to show in tabs. More... | |
Private Attributes | |
QVector< ModelTreeView * > | m_content |
SessionModelDelegate * | m_delegate |
QToolButton * | m_expandCollapseButton |
MainWindow * | m_mainWindow |
QTabWidget * | m_tabs |
QToolBar * | m_toolBar |
The SessionModelView is a technical view which shows the content all current application models.
It appears as an additional view in the main navigation bar on the left, right after the jobView (if corresponding setting of MainWindow is On).
Definition at line 32 of file SessionModelView.h.
SessionModelView::SessionModelView | ( | MainWindow * | mainWindow = 0 | ) |
Definition at line 33 of file SessionModelView.cpp.
References init_tabs(), init_test_view(), m_expandCollapseButton, m_tabs, m_toolBar, and onExpandCollapseTree().
|
private |
Creates content for tab widget.
Definition at line 70 of file SessionModelView.cpp.
References ASSERT, m_content, m_delegate, m_tabs, and modelsForTabs().
Referenced by SessionModelView().
|
private |
Definition at line 93 of file SessionModelView.cpp.
References m_mainWindow, and m_tabs.
Referenced by SessionModelView().
|
private |
Returns list of models to show in tabs.
Definition at line 84 of file SessionModelView.cpp.
References MainWindow::instrumentModel(), MainWindow::jobModel(), m_mainWindow, MainWindow::materialModel(), MainWindow::realDataModel(), and MainWindow::sampleModel().
Referenced by init_tabs().
|
privateslot |
Definition at line 63 of file SessionModelView.cpp.
References m_content, and m_tabs.
Referenced by SessionModelView().
void SessionModelView::setViewActive | ( | bool | is_active | ) |
|
private |
Definition at line 53 of file SessionModelView.h.
Referenced by init_tabs(), and onExpandCollapseTree().
|
private |
Definition at line 52 of file SessionModelView.h.
Referenced by init_tabs().
|
private |
Definition at line 51 of file SessionModelView.h.
Referenced by SessionModelView().
|
private |
Definition at line 48 of file SessionModelView.h.
Referenced by init_test_view(), and modelsForTabs().
|
private |
Definition at line 50 of file SessionModelView.h.
Referenced by SessionModelView(), init_tabs(), init_test_view(), and onExpandCollapseTree().
|
private |
Definition at line 49 of file SessionModelView.h.
Referenced by SessionModelView().