Mantid
Loading...
Searching...
No Matches
IProjectSaveView.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10
11#include <QMainWindow>
12#include <QWidget>
13#include <set>
14#include <string>
15#include <vector>
16
17namespace MantidQt {
18namespace MantidWidgets {
19
20struct WindowInfo;
21struct WorkspaceInfo;
22
29public:
31 virtual std::vector<MantidQt::API::IProjectSerialisable *> getWindows() = 0;
33 virtual std::vector<std::string> getAllPythonInterfaces() = 0;
34
36 virtual std::vector<std::string> getCheckedWorkspaceNames() = 0;
38 virtual std::vector<std::string> getUncheckedWorkspaceNames() = 0;
40 virtual std::vector<std::string> getCheckedPythonInterfaces() = 0;
42 virtual std::vector<std::string> getUncheckedPythonInterfaces() = 0;
44 virtual QString getProjectPath() = 0;
46 virtual void setProjectPath(const QString &path) = 0;
48 virtual void updateWorkspacesList(const std::vector<WorkspaceInfo> &workspaces) = 0;
50 virtual void updateInterfacesList(const std::vector<std::string> &interfaces) = 0;
52 virtual void updateIncludedWindowsList(const std::vector<WindowInfo> &windows) = 0;
54 virtual void updateExcludedWindowsList(const std::vector<WindowInfo> &windows) = 0;
56 virtual void removeFromIncludedWindowsList(const std::vector<std::string> &windows) = 0;
58 virtual void removeFromExcludedWindowsList(const std::vector<std::string> &windows) = 0;
59};
60} // namespace MantidWidgets
61} // namespace MantidQt
IProjectSaveView is the interface for defining the functions that the project save view needs to impl...
virtual std::vector< std::string > getAllPythonInterfaces()=0
Get all active python interfaces names passed to the view.
virtual std::vector< MantidQt::API::IProjectSerialisable * > getWindows()=0
Get all window handles passed to the view.
virtual void updateInterfacesList(const std::vector< std::string > &interfaces)=0
Update the list of interfaces.
virtual std::vector< std::string > getUncheckedPythonInterfaces()=0
Get any unchecked interface names on the view.
virtual void updateExcludedWindowsList(const std::vector< WindowInfo > &windows)=0
Update the excluded windows list with a collection of window info items.
virtual void removeFromIncludedWindowsList(const std::vector< std::string > &windows)=0
Remove items from the included window list.
virtual std::vector< std::string > getCheckedPythonInterfaces()=0
Get any checked interface names on the view.
virtual void updateWorkspacesList(const std::vector< WorkspaceInfo > &workspaces)=0
Update the workspaces list with a collection of workspace info items.
virtual void removeFromExcludedWindowsList(const std::vector< std::string > &windows)=0
Remove items from the excluded window list.
virtual QString getProjectPath()=0
Get the project path.
virtual void updateIncludedWindowsList(const std::vector< WindowInfo > &windows)=0
Update the included windows list with a collection of window info items.
virtual std::vector< std::string > getCheckedWorkspaceNames()=0
Get the names of all checked workspaces.
virtual void setProjectPath(const QString &path)=0
Set the project path.
virtual std::vector< std::string > getUncheckedWorkspaceNames()=0
Get the names of all unchecked workspaces.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...