Mantid
Loading...
Searching...
No Matches
OptionsPropertyWidget.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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 "MantidQtWidgets/Common/DllOption.h"
11#include <QComboBox>
12#include <QLabel>
13
14namespace MantidQt {
15namespace API {
16
23class EXPORT_OPT_MANTIDQT_COMMON OptionsPropertyWidget : public PropertyWidget {
24 Q_OBJECT
25
26public:
27 OptionsPropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
28 int row = -1);
30 QString getValue() const override;
31 void setValueImpl(const QString &value) override;
32
34 QWidget *getMainWidget() override { return m_combo; }
35
36protected:
38 QLabel *m_label;
39
41 QComboBox *m_combo;
42
43public slots:
44 void editingFinished();
45};
46
47} // namespace API
48} // namespace MantidQt
double value
The value of the point.
Definition FitMW.cpp:51
Widget for displaying a Property that has a set of allowed values.
~OptionsPropertyWidget() override
Destructor.
QComboBox * m_combo
Combo box with the allowed options.
QLabel * m_label
Label (name of the property)
Base class for widgets that will set Mantid::Kernel::Property* types.
Base class for properties.
Definition Property.h:95
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...