Mantid
Loading...
Searching...
No Matches
BoolPropertyWidget.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 <QCheckBox>
13
14namespace MantidQt {
15namespace API {
16
23 Q_OBJECT
24
25public:
26 BoolPropertyWidget(Mantid::Kernel::PropertyWithValue<bool> *prop, QWidget *parent = nullptr,
27 QGridLayout *layout = nullptr, int row = -1);
29 QString getValue() const override;
30 void setValueImpl(const QString &value) override;
31
33 QWidget *getMainWidget() override { return m_checkBox; }
34
35protected:
37 QCheckBox *m_checkBox;
38};
39
40} // namespace API
41} // 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
Set of widgets representing a PropertyWithValue<bool>.
~BoolPropertyWidget() override
Destructor.
QCheckBox * m_checkBox
Checkbox widget.
Base class for widgets that will set Mantid::Kernel::Property* types.
The concrete, templated class for properties.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...