Mantid
Loading...
Searching...
No Matches
AddWorkspaceDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 "DllOption.h"
12#include "ui_AddWorkspaceDialog.h"
13
14#include <vector>
15
16#include <QDialog>
17
18namespace MantidQt {
19namespace MantidWidgets {
20
22 Q_OBJECT
23public:
24 explicit AddWorkspaceDialog(QWidget *parent);
25
26 std::string workspaceName() const override;
27 FunctionModelSpectra workspaceIndices() const;
28
29 void setWSSuffices(const QStringList &suffices) override;
30 void setFBSuffices(const QStringList &suffices) override;
31 void setLoadProperty(const std::string &propName, bool enable) override;
32
33 void updateSelectedSpectra() override;
34
35 std::string getFileName() const;
36
37signals:
39
40private slots:
41 void selectAllSpectra(int state);
42 void workspaceChanged(const QString &workspaceName);
43 void emitAddData();
44 void handleAutoLoaded();
45
46private:
47 void setWorkspace(const std::string &workspace);
48 void setAllSpectraSelectionEnabled(bool doEnable);
49
50 Ui::AddWorkspaceDialog m_uiForm;
51};
52
53} // namespace MantidWidgets
54} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
IPeaksWorkspace_sptr workspace
void addData(MantidWidgets::IAddWorkspaceDialog *dialog)
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...