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
10#include "MantidKernel/System.h"
12#include <QComboBox>
13#include <QLabel>
14
15namespace MantidQt {
16namespace API {
17
25 Q_OBJECT
26
27public:
28 OptionsPropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
29 int row = -1);
31 QString getValue() const override;
32 void setValueImpl(const QString &value) override;
33
35 QWidget *getMainWidget() override { return m_combo; }
36
37protected:
39 QLabel *m_label;
40
42 QComboBox *m_combo;
43
44public slots:
45 void editingFinished();
46};
47
48} // namespace API
49} // namespace MantidQt
double value
The value of the point.
Definition: FitMW.cpp:51
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
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:94
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...