Mantid
|
Presenter class for Workspace dock in MantidPlot UI. More...
#include <WorkspacePresenter.h>
Public Member Functions | |
void | init () |
Initialises the view weak pointer for the Workspace Provider. More... | |
void | notifyFromView (ViewNotifiable::Flag flag) override |
Handle notifications from the view. More... | |
void | notifyFromWorkspaceProvider (WorkspaceProviderNotifiable::Flag flag) override |
Handle WorkspaceProvider (ADS) notifications. More... | |
WorkspacePresenter (IWorkspaceDockView *view) | |
~WorkspacePresenter () override | |
Public Member Functions inherited from MantidQt::MantidWidgets::WorkspaceProviderNotifiable | |
virtual void | notifyFromWorkspaceProvider (Flag flag)=0 |
virtual | ~WorkspaceProviderNotifiable ()=default |
Public Member Functions inherited from MantidQt::MantidWidgets::ViewNotifiable | |
virtual void | notifyFromView (Flag flag)=0 |
virtual | ~ViewNotifiable ()=default |
Private Attributes | |
ADSAdapter_uptr | m_adapter |
IWorkspaceDockView * | m_view |
Presenter class for Workspace dock in MantidPlot UI.
Definition at line 29 of file WorkspacePresenter.h.
|
explicit |
Definition at line 18 of file WorkspacePresenter.cpp.
|
overridedefault |
References Mantid::API::renameWorkspace().
|
private |
Definition at line 303 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::executeAlgorithmAsync(), MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), Mantid::Kernel::SingletonHolder< T >::Instance(), and m_view.
Referenced by notifyFromView().
|
private |
Definition at line 248 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::clearWorkspacesConfirmation(), MantidQt::MantidWidgets::IWorkspaceDockView::enableClearButton(), Mantid::Kernel::SingletonHolder< T >::Instance(), and m_view.
Referenced by notifyFromView().
|
private |
Definition at line 301 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::convertMDHistoToMatrixWorkspace(), and m_view.
Referenced by notifyFromView().
|
private |
Definition at line 299 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::convertToMatrixWorkspace(), and m_view.
Referenced by notifyFromView().
|
private |
Definition at line 229 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::deleteConfirmation(), MantidQt::MantidWidgets::IWorkspaceDockView::deleteWorkspaces(), MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), MantidQt::MantidWidgets::IWorkspaceDockView::isPromptDelete(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showCriticalUserMessage().
Referenced by notifyFromView().
|
private |
Definition at line 261 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::filterWorkspaces(), MantidQt::MantidWidgets::IWorkspaceDockView::getFilterText(), and m_view.
Referenced by notifyFromView().
|
private |
Definition at line 167 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::askUserYesNo(), MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_adapter, m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showCriticalUserMessage().
Referenced by notifyFromView().
void MantidQt::MantidWidgets::WorkspacePresenter::init | ( | ) |
Initialises the view weak pointer for the Workspace Provider.
Definition at line 24 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getPresenterWeakPtr(), m_adapter, and m_view.
|
private |
Definition at line 163 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showLiveDataDialog().
Referenced by notifyFromView().
|
private |
Definition at line 161 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showLoadDialog().
Referenced by notifyFromView().
|
overridevirtual |
Handle notifications from the view.
Implements MantidQt::MantidWidgets::ViewNotifiable.
Definition at line 57 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::ViewNotifiable::ClearUBMatrix, clearUBMatrix(), MantidQt::MantidWidgets::ViewNotifiable::ClearWorkspaces, clearWorkspaces(), MantidQt::MantidWidgets::ViewNotifiable::ConvertMDHistoToMatrixWorkspace, convertMDHistoToMatrixWorkspace(), MantidQt::MantidWidgets::ViewNotifiable::ConvertToMatrixWorkspace, convertToMatrixWorkspace(), MantidQt::MantidWidgets::ViewNotifiable::DeleteWorkspaces, deleteWorkspaces(), MantidQt::MantidWidgets::ViewNotifiable::FilterWorkspaces, filterWorkspaces(), MantidQt::MantidWidgets::ViewNotifiable::GroupWorkspaces, groupWorkspaces(), loadLiveData(), MantidQt::MantidWidgets::ViewNotifiable::LoadLiveDataWorkspace, MantidQt::MantidWidgets::ViewNotifiable::LoadWorkspace, loadWorkspace(), MantidQt::MantidWidgets::ViewNotifiable::PlotSpectrum, plotSpectrum(), MantidQt::MantidWidgets::ViewNotifiable::PlotSpectrumAdvanced, plotSpectrumAdvanced(), MantidQt::MantidWidgets::ViewNotifiable::PlotSpectrumWithErrors, plotSpectrumWithErrors(), MantidQt::MantidWidgets::ViewNotifiable::PopulateAndShowWorkspaceContextMenu, populateAndShowWorkspaceContextMenu(), MantidQt::MantidWidgets::ViewNotifiable::RefreshWorkspaces, refreshWorkspaces(), MantidQt::MantidWidgets::ViewNotifiable::RenameWorkspace, renameWorkspace(), MantidQt::MantidWidgets::ViewNotifiable::SaveSingleWorkspace, saveSingleWorkspace(), MantidQt::MantidWidgets::ViewNotifiable::SaveToProgram, saveToProgram(), MantidQt::MantidWidgets::ViewNotifiable::SaveWorkspaceCollection, saveWorkspaceCollection(), MantidQt::MantidWidgets::ViewNotifiable::ShowAlgorithmHistory, showAlgorithmHistory(), MantidQt::MantidWidgets::ViewNotifiable::ShowBoxDataTable, showBoxDataTable(), MantidQt::MantidWidgets::ViewNotifiable::ShowColourFillPlot, showColourFillPlot(), MantidQt::MantidWidgets::ViewNotifiable::ShowDetectorsTable, showDetectorsTable(), MantidQt::MantidWidgets::ViewNotifiable::ShowInstrumentView, showInstrumentView(), MantidQt::MantidWidgets::ViewNotifiable::ShowListData, showListData(), MantidQt::MantidWidgets::ViewNotifiable::ShowLogs, showLogs(), MantidQt::MantidWidgets::ViewNotifiable::ShowMDPlot, showMDPlot(), MantidQt::MantidWidgets::ViewNotifiable::ShowSampleMaterialWindow, showSampleMaterialWindow(), MantidQt::MantidWidgets::ViewNotifiable::ShowSliceViewer, showSliceViewer(), MantidQt::MantidWidgets::ViewNotifiable::ShowSpectrumViewer, showSpectrumViewer(), MantidQt::MantidWidgets::ViewNotifiable::ShowTransposed, showTransposed(), MantidQt::MantidWidgets::ViewNotifiable::ShowWorkspaceData, showWorkspaceData(), MantidQt::MantidWidgets::ViewNotifiable::SortWorkspaces, sortWorkspaces(), MantidQt::MantidWidgets::ViewNotifiable::UngroupWorkspaces, and ungroupWorkspaces().
|
overridevirtual |
Handle WorkspaceProvider (ADS) notifications.
Implements MantidQt::MantidWidgets::WorkspaceProviderNotifiable.
Definition at line 27 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::WorkspaceProviderNotifiable::GenericUpdateNotification, updateView(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceDeleted, workspaceGroupUpdated(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceGroupUpdated, workspaceLoaded(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceLoaded, workspaceRenamed(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceRenamed, workspacesCleared(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesCleared, workspacesDeleted(), workspacesGrouped(), MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesGrouped, workspacesUngrouped(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesUngrouped.
|
private |
Definition at line 271 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::plotSpectrum().
Referenced by notifyFromView().
|
private |
Definition at line 275 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::plotSpectrum().
Referenced by notifyFromView().
|
private |
Definition at line 273 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::plotSpectrum().
Referenced by notifyFromView().
|
private |
Definition at line 263 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::popupContextMenu().
Referenced by notifyFromView().
|
private |
Definition at line 319 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromView().
|
private |
Definition at line 165 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showRenameDialog().
Referenced by notifyFromView().
|
private |
Definition at line 255 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getSaveFileType(), MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspace(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::saveWorkspace().
Referenced by notifyFromView().
|
private |
Definition at line 269 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::saveToProgram().
Referenced by notifyFromView().
|
private |
Definition at line 259 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::saveWorkspaces().
Referenced by notifyFromView().
|
private |
Definition at line 295 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showAlgorithmHistory().
Referenced by notifyFromView().
|
private |
Definition at line 281 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showBoxDataTable().
Referenced by notifyFromView().
|
private |
Definition at line 277 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showColourFillPlot().
Referenced by notifyFromView().
|
private |
Definition at line 279 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showDetectorsTable().
Referenced by notifyFromView().
|
private |
Definition at line 267 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showInstrumentView().
Referenced by notifyFromView().
|
private |
Definition at line 285 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showListData().
Referenced by notifyFromView().
|
private |
Definition at line 291 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showLogs().
Referenced by notifyFromView().
|
private |
Definition at line 283 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showMDPlot().
Referenced by notifyFromView().
|
private |
Definition at line 293 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showSampleMaterialWindow().
Referenced by notifyFromView().
|
private |
Definition at line 289 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showSliceViewer().
Referenced by notifyFromView().
|
private |
Definition at line 287 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showSpectrumViewer().
Referenced by notifyFromView().
|
private |
Definition at line 297 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showTransposed().
Referenced by notifyFromView().
|
private |
Definition at line 265 of file WorkspacePresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showWorkspaceData().
Referenced by notifyFromView().
|
private |
Definition at line 225 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getSortCriteria(), MantidQt::MantidWidgets::IWorkspaceDockView::getSortDirection(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::sortWorkspaces().
Referenced by notifyFromView().
|
private |
Definition at line 198 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::getSelectedWorkspaceNames(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::showCriticalUserMessage().
Referenced by notifyFromView().
|
private |
Update the view by publishing the ADS contents.
Definition at line 337 of file WorkspacePresenter.cpp.
References m_adapter, m_view, and MantidQt::MantidWidgets::IWorkspaceDockView::updateTree().
Referenced by notifyFromWorkspaceProvider(), refreshWorkspaces(), workspaceGroupUpdated(), workspaceLoaded(), workspacesDeleted(), workspacesGrouped(), and workspacesUngrouped().
|
private |
Definition at line 330 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 321 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 323 of file WorkspacePresenter.cpp.
References m_adapter, m_view, MantidQt::MantidWidgets::IWorkspaceDockView::recordWorkspaceRename(), and MantidQt::MantidWidgets::IWorkspaceDockView::updateTree().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 334 of file WorkspacePresenter.cpp.
References MantidQt::MantidWidgets::IWorkspaceDockView::clearView(), and m_view.
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 332 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 328 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 329 of file WorkspacePresenter.cpp.
References updateView().
Referenced by notifyFromWorkspaceProvider().
|
private |
Definition at line 87 of file WorkspacePresenter.h.
Referenced by groupWorkspaces(), init(), updateView(), and workspaceRenamed().
|
private |
Definition at line 86 of file WorkspacePresenter.h.
Referenced by clearUBMatrix(), clearWorkspaces(), convertMDHistoToMatrixWorkspace(), convertToMatrixWorkspace(), deleteWorkspaces(), filterWorkspaces(), groupWorkspaces(), init(), loadLiveData(), loadWorkspace(), plotSpectrum(), plotSpectrumAdvanced(), plotSpectrumWithErrors(), populateAndShowWorkspaceContextMenu(), renameWorkspace(), saveSingleWorkspace(), saveToProgram(), saveWorkspaceCollection(), showAlgorithmHistory(), showBoxDataTable(), showColourFillPlot(), showDetectorsTable(), showInstrumentView(), showListData(), showLogs(), showMDPlot(), showSampleMaterialWindow(), showSliceViewer(), showSpectrumViewer(), showTransposed(), showWorkspaceData(), sortWorkspaces(), ungroupWorkspaces(), updateView(), workspaceRenamed(), and workspacesCleared().