Mantid
Loading...
Searching...
No Matches
SelectWorkspacesDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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//----------------------------
10// Includes
11//----------------------------
12
13#include "DllOption.h"
14#include <QDialog>
15#include <QListWidget>
16#include <QStringList>
17#include <string>
18
19namespace MantidQt {
20namespace MantidWidgets {
21
29 Q_OBJECT
30
31public:
33 static const int CustomButton = 45654; // do not use this number direct, just
34 // refer to this static constant
35
37 SelectWorkspacesDialog(QWidget *parent = nullptr, const std::string &typeFilter = "",
38 const std::string &customButtonLabel = "");
39
41 QStringList getSelectedNames() const;
42
43private slots:
44
46 void selectionChanged();
47
49 void customButtonPress();
50
51private:
53 QListWidget *m_wsList;
55 QPushButton *m_okButton;
57 QPushButton *m_customButton;
58};
59} // namespace MantidWidgets
60} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
This is a dialog for selecting workspaces.
QListWidget * m_wsList
Displays available workspace names.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...