BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 28 of file SampleView.h.
Public Types | |
enum | ESubWindows { PYTHONPANEL , REALSPACEPANEL , SAMPLE_LIST } |
Public Member Functions | |
SampleView (QWidget *parent, ProjectDocument *document) | |
void | fillViewMenu (QMenu *menu) |
void | toggleRealSpaceView () |
Protected Member Functions | |
void | showEvent (QShowEvent *) override |
Private Member Functions | |
void | onAboutToRemoveItem (SampleItem item) |
void | onRequestViewInRealSpace (SampleItem itemToView) |
Show the item in the real space view. More... | |
void | resetLayout () |
void | updateSingleSampleMode () |
Private Attributes | |
DocksController * | m_docks = nullptr |
ProjectDocument * | m_document = nullptr |
RealSpacePanel * | m_realSpacePanel = nullptr |
SampleListView * | m_sampleSelectionView = nullptr |
SampleView::SampleView | ( | QWidget * | parent, |
ProjectDocument * | document | ||
) |
Definition at line 34 of file SampleView.cpp.
References LayerOrientedSampleEditor::aboutToRemoveItem(), DocksController::addWidget(), RealSpacePanel::canvas(), SampleListView::chooseFromLibraryAction(), SampleListView::currentSampleChanged(), SampleListView::importSampleAction(), m_docks, m_document, m_realSpacePanel, m_sampleSelectionView, LayerOrientedSampleEditor::modified(), SampleListView::newSampleAction(), onAboutToRemoveItem(), onRequestViewInRealSpace(), SampleListView::onSampleModified(), ScriptPanel::onSampleModified(), PYTHONPANEL, REALSPACEPANEL, LayerOrientedSampleEditor::requestCreateNewSample(), LayerOrientedSampleEditor::requestViewInRealSpace(), resetLayout(), SAMPLE_LIST, LayerOrientedSampleEditor::setCurrentSample(), ScriptPanel::setCurrentSample(), ProjectDocument::setModified(), ProjectDocument::singleSampleModeChanged(), RealSpaceCanvas::updateScene(), and updateSingleSampleMode().
void SampleView::fillViewMenu | ( | QMenu * | menu | ) |
Definition at line 175 of file SampleView.cpp.
References DocksController::addDockActionsToMenu(), m_docks, and resetLayout().
|
private |
Definition at line 136 of file SampleView.cpp.
References RealSpacePanel::canvas(), RealSpaceCanvas::currentItemAs(), SampleItem::get_if(), and m_realSpacePanel.
Referenced by SampleView().
|
private |
Show the item in the real space view.
If the real space view is not visible at the moment, it will be shown.
Definition at line 117 of file SampleView.cpp.
References RealSpacePanel::canvas(), SampleListView::currentSample(), SampleItem::get_if(), m_docks, m_realSpacePanel, m_sampleSelectionView, REALSPACEPANEL, RealSpaceCanvas::setCurrentItem(), and DocksController::setDockVisible().
Referenced by SampleView().
|
private |
Definition at line 193 of file SampleView.cpp.
References DocksController::findDock(), m_docks, m_document, PYTHONPANEL, REALSPACEPANEL, DocksController::resetLayout(), SAMPLE_LIST, and ProjectDocument::singleSampleMode().
Referenced by SampleView(), and fillViewMenu().
|
overrideprotected |
Definition at line 187 of file SampleView.cpp.
References SampleListView::currentSample(), m_sampleSelectionView, and SampleListView::selectFirstSample().
void SampleView::toggleRealSpaceView | ( | ) |
Definition at line 170 of file SampleView.cpp.
References m_docks, REALSPACEPANEL, and DocksController::toggleDock().
|
private |
Definition at line 112 of file SampleView.cpp.
References m_docks, m_document, SAMPLE_LIST, DocksController::setDockVisible(), and ProjectDocument::singleSampleMode().
Referenced by SampleView().
|
private |
Definition at line 52 of file SampleView.h.
Referenced by SampleView(), fillViewMenu(), onRequestViewInRealSpace(), resetLayout(), toggleRealSpaceView(), and updateSingleSampleMode().
|
private |
Definition at line 53 of file SampleView.h.
Referenced by SampleView(), resetLayout(), and updateSingleSampleMode().
|
private |
Definition at line 54 of file SampleView.h.
Referenced by SampleView(), onAboutToRemoveItem(), and onRequestViewInRealSpace().
|
private |
Definition at line 55 of file SampleView.h.
Referenced by SampleView(), onRequestViewInRealSpace(), and showEvent().