|
Mantid
|
#include <ProjectSaveModel.h>
Public Member Functions | |
| std::vector< std::string > | getAllPythonInterfaces () const |
| Return the list of python interfaces that can be saved. | |
| virtual size_t | getProjectSize (const std::vector< std::string > &wsNames) |
| Find the size of a project from a list of workspace names. | |
| std::vector< MantidQt::API::IProjectSerialisable * > | getUniqueWindows (const std::vector< std::string > &wsNames) const |
| Get all window handles for a collection of workspace names. | |
| std::vector< WindowInfo > | getWindowInformation (const std::vector< std::string > &wsNames, bool includeUnattached=false) const |
| Get all window information for a collection of workspaces. | |
| std::vector< std::string > | getWindowNames (const std::vector< std::string > &wsNames) const |
| Get all window names for a collection of workspace names. | |
| std::vector< MantidQt::API::IProjectSerialisable * > | getWindows (const std::string &wsName) const |
| Get all window handles for this workspace. | |
| std::vector< WorkspaceInfo > | getWorkspaceInformation () const |
| Get all workspace information. | |
| std::vector< std::string > | getWorkspaceNames () const |
| Get all workspace names. | |
| std::vector< Mantid::API::Workspace_sptr > | getWorkspaces () const |
| Get all workspaces from the ADS. | |
| bool | hasWindows (const std::string &ws) const |
| Check if a workspace has any windows attached to it. | |
| bool | needsSizeWarning (const std::vector< std::string > &wsNames) |
| Check if the size of the project is > than the warning size. | |
| ProjectSaveModel (const std::vector< MantidQt::API::IProjectSerialisable * > &windows, std::vector< std::string > activePythonInterfaces=std::vector< std::string >()) | |
| Construct a new model instance with vector of window handles. | |
Private Member Functions | |
| WindowInfo | makeWindowInfoObject (MantidQt::API::IProjectSerialisable *window) const |
| WorkspaceInfo | makeWorkspaceInfoObject (const Mantid::API::Workspace_const_sptr &ws) const |
| Create a workspace info object for this workspace. | |
Private Attributes | |
| std::vector< std::string > | m_activePythonInterfaces |
| std::vector< MantidQt::API::IProjectSerialisable * > | m_unattachedWindows |
| std::unordered_map< std::string, std::vector< MantidQt::API::IProjectSerialisable * > > | m_workspaceWindows |
| Map to hold which windows are associated with a workspace. | |
Definition at line 45 of file ProjectSaveModel.h.
| MantidQt::MantidWidgets::ProjectSaveModel::ProjectSaveModel | ( | const std::vector< MantidQt::API::IProjectSerialisable * > & | windows, |
| std::vector< std::string > | activePythonInterfaces = std::vector< std::string >() |
||
| ) |
Construct a new model instance with vector of window handles.
| std::vector< std::string > MantidQt::MantidWidgets::ProjectSaveModel::getAllPythonInterfaces | ( | ) | const |
Return the list of python interfaces that can be saved.
|
virtual |
Find the size of a project from a list of workspace names.
| std::vector< MantidQt::API::IProjectSerialisable * > MantidQt::MantidWidgets::ProjectSaveModel::getUniqueWindows | ( | const std::vector< std::string > & | wsNames | ) | const |
Get all window handles for a collection of workspace names.
| std::vector< WindowInfo > MantidQt::MantidWidgets::ProjectSaveModel::getWindowInformation | ( | const std::vector< std::string > & | wsNames, |
| bool | includeUnattached = false |
||
| ) | const |
Get all window information for a collection of workspaces.
| std::vector< std::string > MantidQt::MantidWidgets::ProjectSaveModel::getWindowNames | ( | const std::vector< std::string > & | wsNames | ) | const |
Get all window names for a collection of workspace names.
| std::vector< MantidQt::API::IProjectSerialisable * > MantidQt::MantidWidgets::ProjectSaveModel::getWindows | ( | const std::string & | wsName | ) | const |
Get all window handles for this workspace.
| std::vector< WorkspaceInfo > MantidQt::MantidWidgets::ProjectSaveModel::getWorkspaceInformation | ( | ) | const |
Get all workspace information.
| std::vector< std::string > MantidQt::MantidWidgets::ProjectSaveModel::getWorkspaceNames | ( | ) | const |
Get all workspace names.
| std::vector< Mantid::API::Workspace_sptr > MantidQt::MantidWidgets::ProjectSaveModel::getWorkspaces | ( | ) | const |
Get all workspaces from the ADS.
| bool MantidQt::MantidWidgets::ProjectSaveModel::hasWindows | ( | const std::string & | ws | ) | const |
Check if a workspace has any windows attached to it.
|
private |
|
private |
Create a workspace info object for this workspace.
| bool MantidQt::MantidWidgets::ProjectSaveModel::needsSizeWarning | ( | const std::vector< std::string > & | wsNames | ) |
Check if the size of the project is > than the warning size.
|
private |
Definition at line 87 of file ProjectSaveModel.h.
|
private |
Definition at line 86 of file ProjectSaveModel.h.
|
private |
Map to hold which windows are associated with a workspace.
Definition at line 84 of file ProjectSaveModel.h.