Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
9
#include "
MantidQtWidgets/Common/IProjectSerialisable.h
"
10
11
#include <QMainWindow>
12
#include <QWidget>
13
#include <set>
14
#include <string>
15
#include <vector>
16
17
namespace
MantidQt
{
18
namespace
MantidWidgets {
19
20
struct
WindowInfo;
21
struct
WorkspaceInfo;
22
28
class
IProjectSaveView
{
29
public
:
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
IProjectSerialisable.h
MantidQt::MantidWidgets::IProjectSaveView
IProjectSaveView is the interface for defining the functions that the project save view needs to impl...
Definition:
IProjectSaveView.h:28
MantidQt::MantidWidgets::IProjectSaveView::getAllPythonInterfaces
virtual std::vector< std::string > getAllPythonInterfaces()=0
Get all active python interfaces names passed to the view.
MantidQt::MantidWidgets::IProjectSaveView::getWindows
virtual std::vector< MantidQt::API::IProjectSerialisable * > getWindows()=0
Get all window handles passed to the view.
MantidQt::MantidWidgets::IProjectSaveView::updateInterfacesList
virtual void updateInterfacesList(const std::vector< std::string > &interfaces)=0
Update the list of interfaces.
MantidQt::MantidWidgets::IProjectSaveView::getUncheckedPythonInterfaces
virtual std::vector< std::string > getUncheckedPythonInterfaces()=0
Get any unchecked interface names on the view.
MantidQt::MantidWidgets::IProjectSaveView::updateExcludedWindowsList
virtual void updateExcludedWindowsList(const std::vector< WindowInfo > &windows)=0
Update the excluded windows list with a collection of window info items.
MantidQt::MantidWidgets::IProjectSaveView::removeFromIncludedWindowsList
virtual void removeFromIncludedWindowsList(const std::vector< std::string > &windows)=0
Remove items from the included window list.
MantidQt::MantidWidgets::IProjectSaveView::getCheckedPythonInterfaces
virtual std::vector< std::string > getCheckedPythonInterfaces()=0
Get any checked interface names on the view.
MantidQt::MantidWidgets::IProjectSaveView::updateWorkspacesList
virtual void updateWorkspacesList(const std::vector< WorkspaceInfo > &workspaces)=0
Update the workspaces list with a collection of workspace info items.
MantidQt::MantidWidgets::IProjectSaveView::removeFromExcludedWindowsList
virtual void removeFromExcludedWindowsList(const std::vector< std::string > &windows)=0
Remove items from the excluded window list.
MantidQt::MantidWidgets::IProjectSaveView::getProjectPath
virtual QString getProjectPath()=0
Get the project path.
MantidQt::MantidWidgets::IProjectSaveView::updateIncludedWindowsList
virtual void updateIncludedWindowsList(const std::vector< WindowInfo > &windows)=0
Update the included windows list with a collection of window info items.
MantidQt::MantidWidgets::IProjectSaveView::getCheckedWorkspaceNames
virtual std::vector< std::string > getCheckedWorkspaceNames()=0
Get the names of all checked workspaces.
MantidQt::MantidWidgets::IProjectSaveView::setProjectPath
virtual void setProjectPath(const QString &path)=0
Set the project path.
MantidQt::MantidWidgets::IProjectSaveView::getUncheckedWorkspaceNames
virtual std::vector< std::string > getUncheckedWorkspaceNames()=0
Get the names of all unchecked workspaces.
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition:
AddWorkspaceDialog.h:20
Generated on Tue Jan 3 2023 11:58:01 for Mantid by
1.9.5