Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::WorkspacePresenter Class Reference

Presenter class for Workspace dock in MantidPlot UI. More...

#include <WorkspacePresenter.h>

Inheritance diagram for MantidQt::MantidWidgets::WorkspacePresenter:
MantidQt::MantidWidgets::WorkspaceProviderNotifiable MantidQt::MantidWidgets::ViewNotifiable

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 Member Functions

void clearUBMatrix ()
 
void clearWorkspaces ()
 
void convertMDHistoToMatrixWorkspace ()
 
void convertToMatrixWorkspace ()
 
void deleteWorkspaces ()
 
void filterWorkspaces ()
 
void groupWorkspaces ()
 
void loadLiveData ()
 
void loadWorkspace ()
 
void plotSpectrum ()
 
void plotSpectrumAdvanced ()
 
void plotSpectrumWithErrors ()
 
void populateAndShowWorkspaceContextMenu ()
 
void refreshWorkspaces ()
 
void renameWorkspace ()
 
void saveSingleWorkspace ()
 
void saveToProgram ()
 
void saveWorkspaceCollection ()
 
void showAlgorithmHistory ()
 
void showBoxDataTable ()
 
void showColourFillPlot ()
 
void showDetectorsTable ()
 
void showInstrumentView ()
 
void showListData ()
 
void showLogs ()
 
void showMDPlot ()
 
void showSampleMaterialWindow ()
 
void showSliceViewer ()
 
void showSpectrumViewer ()
 
void showTransposed ()
 
void showWorkspaceData ()
 
void sortWorkspaces ()
 
void ungroupWorkspaces ()
 
void updateView ()
 Update the view by publishing the ADS contents. More...
 
void workspaceGroupUpdated ()
 
void workspaceLoaded ()
 
void workspaceRenamed ()
 
void workspacesCleared ()
 
void workspacesDeleted ()
 
void workspacesGrouped ()
 
void workspacesUngrouped ()
 

Private Attributes

ADSAdapter_uptr m_adapter
 
IWorkspaceDockViewm_view
 

Additional Inherited Members

- Public Types inherited from MantidQt::MantidWidgets::WorkspaceProviderNotifiable
enum class  Flag {
  WorkspaceLoaded , WorkspaceRenamed , WorkspaceDeleted , WorkspacesCleared ,
  WorkspacesGrouped , WorkspacesUngrouped , WorkspaceGroupUpdated , GenericUpdateNotification
}
 
- Public Types inherited from MantidQt::MantidWidgets::ViewNotifiable
enum class  Flag {
  LoadWorkspace , LoadLiveDataWorkspace , RenameWorkspace , DeleteWorkspaces ,
  ClearWorkspaces , GroupWorkspaces , UngroupWorkspaces , SortWorkspaces ,
  SaveSingleWorkspace , SaveWorkspaceCollection , FilterWorkspaces , PopulateAndShowWorkspaceContextMenu ,
  SaveToProgram , ShowWorkspaceData , ShowInstrumentView , PlotSpectrum ,
  PlotSpectrumWithErrors , PlotSpectrumAdvanced , ShowColourFillPlot , ShowDetectorsTable ,
  ShowBoxDataTable , ShowMDPlot , ShowListData , ShowSpectrumViewer ,
  ShowSliceViewer , ShowLogs , ShowSampleMaterialWindow , ShowAlgorithmHistory ,
  ShowTransposed , ConvertToMatrixWorkspace , ConvertMDHistoToMatrixWorkspace , ClearUBMatrix ,
  RefreshWorkspaces
}
 

Detailed Description

Presenter class for Workspace dock in MantidPlot UI.

Author
Lamar Moore
Date
24-08-2016
Version
1.0

Definition at line 29 of file WorkspacePresenter.h.

Constructor & Destructor Documentation

◆ WorkspacePresenter()

MantidQt::MantidWidgets::WorkspacePresenter::WorkspacePresenter ( IWorkspaceDockView view)
explicit

Definition at line 18 of file WorkspacePresenter.cpp.

◆ ~WorkspacePresenter()

MantidQt::MantidWidgets::WorkspacePresenter::~WorkspacePresenter ( )
overridedefault

Member Function Documentation

◆ clearUBMatrix()

void MantidQt::MantidWidgets::WorkspacePresenter::clearUBMatrix ( )
private

◆ clearWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::clearWorkspaces ( )
private

◆ convertMDHistoToMatrixWorkspace()

void MantidQt::MantidWidgets::WorkspacePresenter::convertMDHistoToMatrixWorkspace ( )
private

◆ convertToMatrixWorkspace()

void MantidQt::MantidWidgets::WorkspacePresenter::convertToMatrixWorkspace ( )
private

◆ deleteWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::deleteWorkspaces ( )
private

◆ filterWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::filterWorkspaces ( )
private

◆ groupWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::groupWorkspaces ( )
private

◆ init()

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.

◆ loadLiveData()

void MantidQt::MantidWidgets::WorkspacePresenter::loadLiveData ( )
private

◆ loadWorkspace()

void MantidQt::MantidWidgets::WorkspacePresenter::loadWorkspace ( )
private

◆ notifyFromView()

void MantidQt::MantidWidgets::WorkspacePresenter::notifyFromView ( ViewNotifiable::Flag  flag)
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().

◆ notifyFromWorkspaceProvider()

void MantidQt::MantidWidgets::WorkspacePresenter::notifyFromWorkspaceProvider ( WorkspaceProviderNotifiable::Flag  flag)
overridevirtual

◆ plotSpectrum()

void MantidQt::MantidWidgets::WorkspacePresenter::plotSpectrum ( )
private

◆ plotSpectrumAdvanced()

void MantidQt::MantidWidgets::WorkspacePresenter::plotSpectrumAdvanced ( )
private

◆ plotSpectrumWithErrors()

void MantidQt::MantidWidgets::WorkspacePresenter::plotSpectrumWithErrors ( )
private

◆ populateAndShowWorkspaceContextMenu()

void MantidQt::MantidWidgets::WorkspacePresenter::populateAndShowWorkspaceContextMenu ( )
private

◆ refreshWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::refreshWorkspaces ( )
private

Definition at line 319 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromView().

◆ renameWorkspace()

void MantidQt::MantidWidgets::WorkspacePresenter::renameWorkspace ( )
private

◆ saveSingleWorkspace()

void MantidQt::MantidWidgets::WorkspacePresenter::saveSingleWorkspace ( )
private

◆ saveToProgram()

void MantidQt::MantidWidgets::WorkspacePresenter::saveToProgram ( )
private

◆ saveWorkspaceCollection()

void MantidQt::MantidWidgets::WorkspacePresenter::saveWorkspaceCollection ( )
private

◆ showAlgorithmHistory()

void MantidQt::MantidWidgets::WorkspacePresenter::showAlgorithmHistory ( )
private

◆ showBoxDataTable()

void MantidQt::MantidWidgets::WorkspacePresenter::showBoxDataTable ( )
private

◆ showColourFillPlot()

void MantidQt::MantidWidgets::WorkspacePresenter::showColourFillPlot ( )
private

◆ showDetectorsTable()

void MantidQt::MantidWidgets::WorkspacePresenter::showDetectorsTable ( )
private

◆ showInstrumentView()

void MantidQt::MantidWidgets::WorkspacePresenter::showInstrumentView ( )
private

◆ showListData()

void MantidQt::MantidWidgets::WorkspacePresenter::showListData ( )
private

◆ showLogs()

void MantidQt::MantidWidgets::WorkspacePresenter::showLogs ( )
private

◆ showMDPlot()

void MantidQt::MantidWidgets::WorkspacePresenter::showMDPlot ( )
private

◆ showSampleMaterialWindow()

void MantidQt::MantidWidgets::WorkspacePresenter::showSampleMaterialWindow ( )
private

◆ showSliceViewer()

void MantidQt::MantidWidgets::WorkspacePresenter::showSliceViewer ( )
private

◆ showSpectrumViewer()

void MantidQt::MantidWidgets::WorkspacePresenter::showSpectrumViewer ( )
private

◆ showTransposed()

void MantidQt::MantidWidgets::WorkspacePresenter::showTransposed ( )
private

◆ showWorkspaceData()

void MantidQt::MantidWidgets::WorkspacePresenter::showWorkspaceData ( )
private

◆ sortWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::sortWorkspaces ( )
private

◆ ungroupWorkspaces()

void MantidQt::MantidWidgets::WorkspacePresenter::ungroupWorkspaces ( )
private

◆ updateView()

void MantidQt::MantidWidgets::WorkspacePresenter::updateView ( )
private

◆ workspaceGroupUpdated()

void MantidQt::MantidWidgets::WorkspacePresenter::workspaceGroupUpdated ( )
private

Definition at line 330 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromWorkspaceProvider().

◆ workspaceLoaded()

void MantidQt::MantidWidgets::WorkspacePresenter::workspaceLoaded ( )
private

Definition at line 321 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromWorkspaceProvider().

◆ workspaceRenamed()

void MantidQt::MantidWidgets::WorkspacePresenter::workspaceRenamed ( )
private

◆ workspacesCleared()

void MantidQt::MantidWidgets::WorkspacePresenter::workspacesCleared ( )
private

◆ workspacesDeleted()

void MantidQt::MantidWidgets::WorkspacePresenter::workspacesDeleted ( )
private

Definition at line 332 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromWorkspaceProvider().

◆ workspacesGrouped()

void MantidQt::MantidWidgets::WorkspacePresenter::workspacesGrouped ( )
private

Definition at line 328 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromWorkspaceProvider().

◆ workspacesUngrouped()

void MantidQt::MantidWidgets::WorkspacePresenter::workspacesUngrouped ( )
private

Definition at line 329 of file WorkspacePresenter.cpp.

References updateView().

Referenced by notifyFromWorkspaceProvider().

Member Data Documentation

◆ m_adapter

ADSAdapter_uptr MantidQt::MantidWidgets::WorkspacePresenter::m_adapter
private

Definition at line 87 of file WorkspacePresenter.h.

Referenced by groupWorkspaces(), init(), updateView(), and workspaceRenamed().

◆ m_view

IWorkspaceDockView* MantidQt::MantidWidgets::WorkspacePresenter::m_view
private

The documentation for this class was generated from the following files: