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 QAbstractItemView::SelectionMode mode = QAbstractItemView::MultiSelection);
40
42 QStringList getSelectedNames() const;
43
44private slots:
45
47 void selectionChanged();
48
50 void customButtonPress();
51
52private:
54 QListWidget *m_wsList;
56 QPushButton *m_okButton;
58 QPushButton *m_customButton;
59};
60} // namespace MantidWidgets
61} // 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...