Mantid
Loading...
Searching...
No Matches
GenericDialog.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#include "AlgorithmDialog.h"
13
16#include <QHash>
17#include <QVariant>
18
19//----------------------------------
20// Forward declarations
21//----------------------------------
22class QSignalMapper;
23class QGridLayout;
24class QLineEdit;
25
26namespace MantidQt {
27
28namespace API {
29
36class EXPORT_OPT_MANTIDQT_COMMON GenericDialog : public AlgorithmDialog {
37
38 Q_OBJECT
39
40public:
41 // Constructor
42 GenericDialog(QWidget *parent = nullptr);
43 // Destructor
44 ~GenericDialog() override;
45
46protected slots:
47 void accept() override;
48
49private:
50 void initLayout() override;
51
52 void parseInput() override;
53
56};
57} // namespace API
58} // namespace MantidQt
This class should be the basis for all customised algorithm dialogs.
Widget that contains dynamically generated PropertyWidget's for each property of an algorithm,...
This class gives a basic dialog that is not tailored to a particular algorithm.
AlgorithmPropertiesWidget * m_algoPropertiesWidget
Widget containing all the PropertyWidgets.
~GenericDialog() override
Destructor.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...