BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Types | |
enum | ESubWindows { WIDGET_BOX , SAMPLE_TREE , PROPERTY_EDITOR , INFO , REALSPACEPANEL } |
Public Member Functions | |
SampleView (MainWindow *mainWindow) | |
void | fillViewMenu (QMenu *menu) |
ApplicationModels * | models () |
void | toggleRealSpaceView () |
Private Member Functions | |
void | connectSignals () |
void | createSubWindows () |
void | resetLayout () |
Private Attributes | |
DocksController * | m_docks = nullptr |
SamplePropertyWidget * | m_propertyWidget = nullptr |
RealSpacePanel * | m_realSpacePanel = nullptr |
SampleDesigner * | m_sampleDesigner = nullptr |
ScriptPanel * | m_scriptPanel = nullptr |
SampleToolBar * | m_toolBar = nullptr |
SampleTreeWidget * | m_treeWidget = nullptr |
SampleWidgetBox * | m_widgetBox = nullptr |
Definition at line 32 of file SampleView.h.
Enumerator | |
---|---|
WIDGET_BOX | |
SAMPLE_TREE | |
PROPERTY_EDITOR | |
INFO | |
REALSPACEPANEL |
Definition at line 35 of file SampleView.h.
SampleView::SampleView | ( | MainWindow * | mainWindow | ) |
Definition at line 32 of file SampleView.cpp.
References connectSignals(), and createSubWindows().
|
private |
Definition at line 95 of file SampleView.cpp.
References SampleToolBar::centerView(), SampleToolBar::changeScale(), SampleToolBar::deleteItems(), DesignerView::deleteSelectedItems(), SampleDesigner::getScene(), SampleDesigner::getView(), m_sampleDesigner, m_toolBar, DesignerView::onCenterView(), DesignerView::onChangeScale(), DesignerView::onSelectionMode(), SampleToolBar::onViewSelectionMode(), SampleToolBar::selectionMode(), DesignerView::selectionModeChanged(), and DesignerScene::selectionModeChangeRequest().
Referenced by SampleView().
|
private |
Definition at line 63 of file SampleView.cpp.
References DocksController::addWidget(), SampleDesigner::getCentralWidget(), INFO, m_docks, m_propertyWidget, m_realSpacePanel, m_sampleDesigner, m_scriptPanel, m_treeWidget, m_widgetBox, models(), PROPERTY_EDITOR, REALSPACEPANEL, resetLayout(), SAMPLE_TREE, DocksController::setDockHeightForWidget(), ScriptPanel::setInstrumentModel(), SampleDesigner::setModels(), ScriptPanel::setSampleModel(), SampleDesigner::setSelectionModel(), SampleTreeWidget::treeView(), WIDGET_BOX, and InfoPanel::widgetHeightRequest().
Referenced by SampleView().
void SampleView::fillViewMenu | ( | QMenu * | menu | ) |
Definition at line 51 of file SampleView.cpp.
References DocksController::addDockActionsToMenu(), m_docks, and resetLayout().
ApplicationModels * SampleView::models | ( | ) |
Definition at line 41 of file SampleView.cpp.
References MainWindow::instance(), and MainWindow::models().
Referenced by createSubWindows().
|
private |
Definition at line 115 of file SampleView.cpp.
References DocksController::findDock(), INFO, m_docks, REALSPACEPANEL, and DocksController::resetLayout().
Referenced by createSubWindows(), and fillViewMenu().
void SampleView::toggleRealSpaceView | ( | ) |
Definition at line 46 of file SampleView.cpp.
References m_docks, REALSPACEPANEL, and DocksController::toggleDock().
Referenced by SampleToolBar::SampleToolBar().
|
private |
Definition at line 48 of file SampleView.h.
Referenced by createSubWindows(), fillViewMenu(), resetLayout(), and toggleRealSpaceView().
|
private |
Definition at line 54 of file SampleView.h.
Referenced by createSubWindows().
|
private |
Definition at line 56 of file SampleView.h.
Referenced by createSubWindows().
|
private |
Definition at line 51 of file SampleView.h.
Referenced by connectSignals(), and createSubWindows().
|
private |
Definition at line 55 of file SampleView.h.
Referenced by createSubWindows().
|
private |
Definition at line 49 of file SampleView.h.
Referenced by connectSignals().
|
private |
Definition at line 53 of file SampleView.h.
Referenced by createSubWindows().
|
private |
Definition at line 52 of file SampleView.h.
Referenced by createSubWindows().