Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MockWorkspaceDockView Class Reference

#include <WorkspaceDockMockObjects.h>

Inheritance diagram for MockWorkspaceDockView:
MantidQt::MantidWidgets::IWorkspaceDockView

Public Member Functions

void enableDeletePrompt (bool) override
 
WorkspacePresenterVN_sptr getPresenterSharedPtr ()
 
WorkspacePresenterWN_wptr getPresenterWeakPtr () override
 
 MOCK_CONST_METHOD0 (clearWorkspacesConfirmation, bool())
 
 MOCK_CONST_METHOD0 (deleteConfirmation, bool())
 
 MOCK_CONST_METHOD0 (getFilterText, std::string())
 
 MOCK_CONST_METHOD0 (getSaveFileType, SaveFileType())
 
 MOCK_CONST_METHOD0 (getSelectedWorkspace, Mantid::API::Workspace_sptr())
 
 MOCK_CONST_METHOD0 (getSelectedWorkspaceNames, StringList())
 
 MOCK_CONST_METHOD0 (getSortCriteria, SortCriteria())
 
 MOCK_CONST_METHOD0 (getSortDirection, SortDirection())
 
 MOCK_CONST_METHOD0 (isPromptDelete, bool())
 
 MOCK_CONST_METHOD2 (askUserYesNo, bool(const std::string &caption, const std::string &message))
 
 MOCK_CONST_METHOD2 (showCriticalUserMessage, void(const std::string &caption, const std::string &message))
 
 MOCK_METHOD0 (clearView, void())
 
 MOCK_METHOD0 (convertMDHistoToMatrixWorkspace, void())
 
 MOCK_METHOD0 (convertToMatrixWorkspace, void())
 
 MOCK_METHOD0 (popupContextMenu, void())
 
 MOCK_METHOD0 (saveToProgram, void())
 
 MOCK_METHOD0 (showAlgorithmHistory, void())
 
 MOCK_METHOD0 (showBoxDataTable, void())
 
 MOCK_METHOD0 (showColourFillPlot, void())
 
 MOCK_METHOD0 (showContourPlot, void())
 
 MOCK_METHOD0 (showDetectorsTable, void())
 
 MOCK_METHOD0 (showInstrumentView, void())
 
 MOCK_METHOD0 (showListData, void())
 
 MOCK_METHOD0 (showLiveDataDialog, void())
 
 MOCK_METHOD0 (showLoadDialog, void())
 
 MOCK_METHOD0 (showLogs, void())
 
 MOCK_METHOD0 (showMDPlot, void())
 
 MOCK_METHOD0 (showSampleMaterialWindow, void())
 
 MOCK_METHOD0 (showSliceViewer, void())
 
 MOCK_METHOD0 (showSpectrumViewer, void())
 
 MOCK_METHOD0 (showSurfacePlot, void())
 
 MOCK_METHOD0 (showTransposed, void())
 
 MOCK_METHOD0 (showWorkspaceData, void())
 
 MOCK_METHOD1 (deleteWorkspaces, void(const StringList &wsNames))
 
 MOCK_METHOD1 (enableClearButton, void(bool enable))
 
 MOCK_METHOD1 (filterWorkspaces, void(const std::string &filterText))
 
 MOCK_METHOD1 (plotSpectrum, void(const std::string &type))
 
 MOCK_METHOD1 (saveWorkspaces, void(const StringList &wsNames))
 
 MOCK_METHOD1 (showRenameDialog, void(const StringList &wsNames))
 
 MOCK_METHOD1 (updateTree, void(const std::map< std::string, Mantid::API::Workspace_sptr > &items))
 
 MOCK_METHOD2 (executeAlgorithmAsync, bool(Mantid::API::IAlgorithm_sptr alg, const bool wait))
 
 MOCK_METHOD2 (recordWorkspaceRename, void(const std::string &oldName, const std::string &newName))
 
 MOCK_METHOD2 (saveWorkspace, void(const std::string &wsName, SaveFileType type))
 
 MOCK_METHOD2 (sortWorkspaces, void(IWorkspaceDockView::SortCriteria criteria, IWorkspaceDockView::SortDirection direction))
 
 MockWorkspaceDockView ()
 
void refreshWorkspaces () override
 
 ~MockWorkspaceDockView () override=default
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IWorkspaceDockView
virtual bool askUserYesNo (const std::string &caption, const std::string &message) const =0
 
virtual void clearView ()=0
 
virtual bool clearWorkspacesConfirmation () const =0
 
virtual void convertMDHistoToMatrixWorkspace ()=0
 
virtual void convertToMatrixWorkspace ()=0
 
virtual bool deleteConfirmation () const =0
 
virtual void deleteWorkspaces (const StringList &wsNames)=0
 
virtual void enableClearButton (bool enable)=0
 
virtual void enableDeletePrompt (bool enable)=0
 
virtual bool executeAlgorithmAsync (Mantid::API::IAlgorithm_sptr alg, const bool wait=true)=0
 
virtual void filterWorkspaces (const std::string &filterText)=0
 
virtual std::string getFilterText () const =0
 
virtual WorkspacePresenterWN_wptr getPresenterWeakPtr ()=0
 
virtual SaveFileType getSaveFileType () const =0
 
virtual Mantid::API::Workspace_sptr getSelectedWorkspace () const =0
 
virtual StringList getSelectedWorkspaceNames () const =0
 
virtual SortCriteria getSortCriteria () const =0
 
virtual SortDirection getSortDirection () const =0
 
virtual bool isPromptDelete () const =0
 
virtual void plotSpectrum (const std::string &type)=0
 
virtual void popupContextMenu ()=0
 
virtual void recordWorkspaceRename (const std::string &oldName, const std::string &newName)=0
 
virtual void refreshWorkspaces ()=0
 
virtual void saveToProgram ()=0
 
virtual void saveWorkspace (const std::string &wsName, const SaveFileType type)=0
 
virtual void saveWorkspaces (const StringList &wsNames)=0
 
virtual void showAlgorithmHistory ()=0
 
virtual void showBoxDataTable ()=0
 
virtual void showColourFillPlot ()=0
 
virtual void showCriticalUserMessage (const std::string &caption, const std::string &message) const =0
 
virtual void showDetectorsTable ()=0
 
virtual void showInstrumentView ()=0
 
virtual void showListData ()=0
 
virtual void showLiveDataDialog ()=0
 
virtual void showLoadDialog ()=0
 
virtual void showLogs ()=0
 
virtual void showMDPlot ()=0
 
virtual void showRenameDialog (const StringList &wsNames)=0
 
virtual void showSampleMaterialWindow ()=0
 
virtual void showSliceViewer ()=0
 
virtual void showSpectrumViewer ()=0
 
virtual void showTransposed ()=0
 
virtual void showWorkspaceData ()=0
 
virtual void sortWorkspaces (SortCriteria criteria, SortDirection direction)=0
 
virtual void updateTree (const std::map< std::string, Mantid::API::Workspace_sptr > &items)=0
 
virtual ~IWorkspaceDockView ()
 

Private Attributes

WorkspacePresenterVN_sptr m_presenter
 

Additional Inherited Members

- Public Types inherited from MantidQt::MantidWidgets::IWorkspaceDockView
enum class  SaveFileType { Nexus , ASCII }
 
enum class  SortCriteria { ByName , ByLastModified , ByMemorySize }
 
enum class  SortDirection { Ascending , Descending }
 

Detailed Description

Definition at line 24 of file WorkspaceDockMockObjects.h.

Constructor & Destructor Documentation

◆ MockWorkspaceDockView()

MockWorkspaceDockView::MockWorkspaceDockView ( )
inline

Definition at line 26 of file WorkspaceDockMockObjects.h.

References m_presenter.

◆ ~MockWorkspaceDockView()

MockWorkspaceDockView::~MockWorkspaceDockView ( )
overridedefault

Member Function Documentation

◆ enableDeletePrompt()

void MockWorkspaceDockView::enableDeletePrompt ( bool  )
inlineoverridevirtual

◆ getPresenterSharedPtr()

WorkspacePresenterVN_sptr MockWorkspaceDockView::getPresenterSharedPtr ( )
inline

Definition at line 93 of file WorkspaceDockMockObjects.h.

References m_presenter.

◆ getPresenterWeakPtr()

WorkspacePresenterWN_wptr MockWorkspaceDockView::getPresenterWeakPtr ( )
inlineoverridevirtual

Implements MantidQt::MantidWidgets::IWorkspaceDockView.

Definition at line 87 of file WorkspaceDockMockObjects.h.

References m_presenter.

◆ MOCK_CONST_METHOD0() [1/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( clearWorkspacesConfirmation  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [2/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( deleteConfirmation  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [3/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getFilterText  ,
std::string()   
)

◆ MOCK_CONST_METHOD0() [4/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getSaveFileType  ,
SaveFileType()   
)

◆ MOCK_CONST_METHOD0() [5/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getSelectedWorkspace  ,
Mantid::API::Workspace_sptr()   
)

◆ MOCK_CONST_METHOD0() [6/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getSelectedWorkspaceNames  ,
StringList()   
)

◆ MOCK_CONST_METHOD0() [7/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getSortCriteria  ,
SortCriteria()   
)

◆ MOCK_CONST_METHOD0() [8/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( getSortDirection  ,
SortDirection()   
)

◆ MOCK_CONST_METHOD0() [9/9]

MockWorkspaceDockView::MOCK_CONST_METHOD0 ( isPromptDelete  ,
bool()   
)

◆ MOCK_CONST_METHOD2() [1/2]

MockWorkspaceDockView::MOCK_CONST_METHOD2 ( askUserYesNo  ,
bool(const std::string &caption, const std::string &message)   
)

◆ MOCK_CONST_METHOD2() [2/2]

MockWorkspaceDockView::MOCK_CONST_METHOD2 ( showCriticalUserMessage  ,
void(const std::string &caption, const std::string &message)   
)

◆ MOCK_METHOD0() [1/22]

MockWorkspaceDockView::MOCK_METHOD0 ( clearView  ,
void()   
)

◆ MOCK_METHOD0() [2/22]

MockWorkspaceDockView::MOCK_METHOD0 ( convertMDHistoToMatrixWorkspace  ,
void()   
)

◆ MOCK_METHOD0() [3/22]

MockWorkspaceDockView::MOCK_METHOD0 ( convertToMatrixWorkspace  ,
void()   
)

◆ MOCK_METHOD0() [4/22]

MockWorkspaceDockView::MOCK_METHOD0 ( popupContextMenu  ,
void()   
)

◆ MOCK_METHOD0() [5/22]

MockWorkspaceDockView::MOCK_METHOD0 ( saveToProgram  ,
void()   
)

◆ MOCK_METHOD0() [6/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showAlgorithmHistory  ,
void()   
)

◆ MOCK_METHOD0() [7/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showBoxDataTable  ,
void()   
)

◆ MOCK_METHOD0() [8/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showColourFillPlot  ,
void()   
)

◆ MOCK_METHOD0() [9/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showContourPlot  ,
void()   
)

◆ MOCK_METHOD0() [10/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showDetectorsTable  ,
void()   
)

◆ MOCK_METHOD0() [11/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showInstrumentView  ,
void()   
)

◆ MOCK_METHOD0() [12/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showListData  ,
void()   
)

◆ MOCK_METHOD0() [13/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showLiveDataDialog  ,
void()   
)

◆ MOCK_METHOD0() [14/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showLoadDialog  ,
void()   
)

◆ MOCK_METHOD0() [15/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showLogs  ,
void()   
)

◆ MOCK_METHOD0() [16/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showMDPlot  ,
void()   
)

◆ MOCK_METHOD0() [17/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showSampleMaterialWindow  ,
void()   
)

◆ MOCK_METHOD0() [18/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showSliceViewer  ,
void()   
)

◆ MOCK_METHOD0() [19/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showSpectrumViewer  ,
void()   
)

◆ MOCK_METHOD0() [20/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showSurfacePlot  ,
void()   
)

◆ MOCK_METHOD0() [21/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showTransposed  ,
void()   
)

◆ MOCK_METHOD0() [22/22]

MockWorkspaceDockView::MOCK_METHOD0 ( showWorkspaceData  ,
void()   
)

◆ MOCK_METHOD1() [1/7]

MockWorkspaceDockView::MOCK_METHOD1 ( deleteWorkspaces  ,
void(const StringList &wsNames)   
)

◆ MOCK_METHOD1() [2/7]

MockWorkspaceDockView::MOCK_METHOD1 ( enableClearButton  ,
void(bool enable)   
)

◆ MOCK_METHOD1() [3/7]

MockWorkspaceDockView::MOCK_METHOD1 ( filterWorkspaces  ,
void(const std::string &filterText)   
)

◆ MOCK_METHOD1() [4/7]

MockWorkspaceDockView::MOCK_METHOD1 ( plotSpectrum  ,
void(const std::string &type)   
)

◆ MOCK_METHOD1() [5/7]

MockWorkspaceDockView::MOCK_METHOD1 ( saveWorkspaces  ,
void(const StringList &wsNames)   
)

◆ MOCK_METHOD1() [6/7]

MockWorkspaceDockView::MOCK_METHOD1 ( showRenameDialog  ,
void(const StringList &wsNames)   
)

◆ MOCK_METHOD1() [7/7]

MockWorkspaceDockView::MOCK_METHOD1 ( updateTree  ,
void(const std::map< std::string, Mantid::API::Workspace_sptr > &items)   
)

◆ MOCK_METHOD2() [1/4]

MockWorkspaceDockView::MOCK_METHOD2 ( executeAlgorithmAsync  ,
bool(Mantid::API::IAlgorithm_sptr alg, const bool wait)   
)

◆ MOCK_METHOD2() [2/4]

MockWorkspaceDockView::MOCK_METHOD2 ( recordWorkspaceRename  ,
void(const std::string &oldName, const std::string &newName)   
)

◆ MOCK_METHOD2() [3/4]

MockWorkspaceDockView::MOCK_METHOD2 ( saveWorkspace  ,
void(const std::string &wsName, SaveFileType type)   
)

◆ MOCK_METHOD2() [4/4]

MockWorkspaceDockView::MOCK_METHOD2 ( sortWorkspaces  ,
void(IWorkspaceDockView::SortCriteria criteria, IWorkspaceDockView::SortDirection direction)   
)

◆ refreshWorkspaces()

void MockWorkspaceDockView::refreshWorkspaces ( )
inlineoverridevirtual

Member Data Documentation

◆ m_presenter

WorkspacePresenterVN_sptr MockWorkspaceDockView::m_presenter
private

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