Mantid
Loading...
Searching...
No Matches
WorkspacePresenter.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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
13#include <memory>
14
15namespace MantidQt {
16namespace MantidWidgets {
17
18class IWorkspaceDockView;
19class WorkspaceProvider;
20
21using ADSAdapter_uptr = std::unique_ptr<WorkspaceProvider>;
30
31public:
34
35 void init();
36
37 void notifyFromWorkspaceProvider(WorkspaceProviderNotifiable::Flag flag) override;
38 void notifyFromView(ViewNotifiable::Flag flag) override;
39
40private:
41 void loadWorkspace();
42 void loadLiveData();
43 void renameWorkspace();
44 void groupWorkspaces();
45 void ungroupWorkspaces();
46 void sortWorkspaces();
47 void deleteWorkspaces();
48 void clearWorkspaces();
49 void saveSingleWorkspace();
50 void saveWorkspaceCollection();
51 void filterWorkspaces();
52 void populateAndShowWorkspaceContextMenu();
53 void showWorkspaceData();
54 void showInstrumentView();
55 void saveToProgram();
56 void plotSpectrum();
57 void plotSpectrumWithErrors();
58 void plotSpectrumAdvanced();
59 void showColourFillPlot();
60 void showDetectorsTable();
61 void showBoxDataTable();
62 void showMDPlot();
63 void showListData();
64 void showSpectrumViewer();
65 void showSliceViewer();
66 void showLogs();
67 void showSampleMaterialWindow();
68 void showAlgorithmHistory();
69 void showTransposed();
70 void convertToMatrixWorkspace();
71 void convertMDHistoToMatrixWorkspace();
72 void clearUBMatrix();
73 void refreshWorkspaces();
74
75 void workspaceLoaded();
76 void workspaceRenamed();
77 void workspacesGrouped();
78 void workspacesUngrouped();
79 void workspaceGroupUpdated();
80 void workspacesDeleted();
81 void workspacesCleared();
82
83 void updateView();
84
85private:
88};
89} // namespace MantidWidgets
90} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
Presenter class for Workspace dock in MantidPlot UI.
std::unique_ptr< WorkspaceProvider > ADSAdapter_uptr
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
void renameWorkspace(const IAlgorithm_sptr &renamer, const Workspace_sptr &workspace, const std::string &newName)