Mantid
|
#include <ADSAdapter.h>
Public Member Functions | |
ADSAdapter () | |
bool | doesWorkspaceExist (const std::string &wsname) const override |
std::string | getNewName () const override |
std::string | getOldName () const override |
void | registerPresenter (Presenter_wptr presenter) override |
std::map< std::string, Mantid::API::Workspace_sptr > | topLevelItems () const override |
~ADSAdapter () override | |
Public Member Functions inherited from MantidQt::MantidWidgets::WorkspaceProvider | |
virtual bool | doesWorkspaceExist (const std::string &wsname) const =0 |
virtual std::string | getNewName () const =0 |
virtual std::string | getOldName () const =0 |
virtual void | registerPresenter (Presenter_wptr presenter)=0 |
virtual std::map< std::string, Mantid::API::Workspace_sptr > | topLevelItems () const =0 |
virtual | ~WorkspaceProvider ()=default |
Private Member Functions | |
void | handleAddWorkspace (Mantid::API::WorkspaceAddNotification_ptr pNf) |
void | handleClearADS (Mantid::API::ClearADSNotification_ptr pNf) |
void | handleDeleteWorkspace (Mantid::API::WorkspacePostDeleteNotification_ptr pNf) |
void | handleGroupWorkspaces (Mantid::API::WorkspacesGroupedNotification_ptr pNf) |
void | handleRenameWorkspace (Mantid::API::WorkspaceRenameNotification_ptr pNf) |
void | handleReplaceWorkspace (Mantid::API::WorkspaceAfterReplaceNotification_ptr pNf) |
void | handleUnGroupWorkspace (Mantid::API::WorkspaceUnGroupingNotification_ptr pNf) |
void | handleWorkspaceGroupUpdate (Mantid::API::GroupUpdatedNotification_ptr pNf) |
Presenter_sptr | lockPresenter () |
Locks the presenter as shared_ptr for use internally. More... | |
|
explicit |
Definition at line 16 of file ADSAdapter.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_addObserver, m_clearADSObserver, m_deleteObserver, m_groupworkspacesObserver, m_renameObserver, m_replaceObserver, m_ungroupworkspaceObserver, and m_workspaceGroupUpdateObserver.
|
override |
Definition at line 37 of file ADSAdapter.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_addObserver, m_clearADSObserver, m_deleteObserver, m_groupworkspacesObserver, m_renameObserver, m_replaceObserver, m_ungroupworkspaceObserver, and m_workspaceGroupUpdateObserver.
|
overridevirtual |
Implements MantidQt::MantidWidgets::WorkspaceProvider.
Definition at line 52 of file ADSAdapter.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
|
overridevirtual |
Implements MantidQt::MantidWidgets::WorkspaceProvider.
Definition at line 71 of file ADSAdapter.cpp.
References m_newName.
|
overridevirtual |
Implements MantidQt::MantidWidgets::WorkspaceProvider.
Definition at line 70 of file ADSAdapter.cpp.
References m_oldName.
|
private |
Definition at line 74 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceLoaded.
|
private |
Definition at line 89 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesCleared.
|
private |
Definition at line 84 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceDeleted.
|
private |
Definition at line 102 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesGrouped.
|
private |
Definition at line 94 of file ADSAdapter.cpp.
References lockPresenter(), m_newName, m_oldName, and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceRenamed.
|
private |
Definition at line 79 of file ADSAdapter.cpp.
References MantidQt::MantidWidgets::WorkspaceProviderNotifiable::GenericUpdateNotification, and lockPresenter().
|
private |
Definition at line 107 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspacesUngrouped.
|
private |
Definition at line 112 of file ADSAdapter.cpp.
References lockPresenter(), and MantidQt::MantidWidgets::WorkspaceProviderNotifiable::WorkspaceGroupUpdated.
|
private |
Locks the presenter as shared_ptr for use internally.
Definition at line 61 of file ADSAdapter.cpp.
References m_presenter.
Referenced by handleAddWorkspace(), handleClearADS(), handleDeleteWorkspace(), handleGroupWorkspaces(), handleRenameWorkspace(), handleReplaceWorkspace(), handleUnGroupWorkspace(), and handleWorkspaceGroupUpdate().
|
overridevirtual |
Implements MantidQt::MantidWidgets::WorkspaceProvider.
Definition at line 50 of file ADSAdapter.cpp.
References m_presenter.
|
overridevirtual |
Implements MantidQt::MantidWidgets::WorkspaceProvider.
Definition at line 56 of file ADSAdapter.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
|
private |
Definition at line 44 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 53 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 50 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 59 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 36 of file ADSAdapter.h.
Referenced by getNewName(), and handleRenameWorkspace().
|
private |
Definition at line 35 of file ADSAdapter.h.
Referenced by getOldName(), and handleRenameWorkspace().
|
private |
Definition at line 38 of file ADSAdapter.h.
Referenced by lockPresenter(), and registerPresenter().
|
private |
Definition at line 56 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 47 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 62 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().
|
private |
Definition at line 65 of file ADSAdapter.h.
Referenced by ADSAdapter(), and ~ADSAdapter().