Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkBoolPropertyWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef QmitkBoolPropertyWidget_h
13 #define QmitkBoolPropertyWidget_h
14 
16 #include <QCheckBox>
17 #include <mitkProperties.h>
18 
19 class _BoolPropertyWidgetImpl;
20 
33 {
34  Q_OBJECT
35 
36 public:
41  QmitkBoolPropertyWidget(QWidget *parent = nullptr);
42 
48  QmitkBoolPropertyWidget(const QString &text, QWidget *parent = nullptr);
49 
52 
59  void SetProperty(mitk::BoolProperty *property);
60 
61 protected slots:
62 
63  void onToggle(bool on);
64 
65 protected:
66  _BoolPropertyWidgetImpl *m_PropEditorImpl;
67 };
68 
69 #endif
#define MITKQTWIDGETSEXT_EXPORT
A QCheckBox that edits a mitk::BoolProperty.
QmitkBoolPropertyWidget(QWidget *parent=nullptr)
Construct the widget without an associated property.
~QmitkBoolPropertyWidget() override
Destructor.
void SetProperty(mitk::BoolProperty *property)
Bind this widget to a mitk::BoolProperty.
_BoolPropertyWidgetImpl * m_PropEditorImpl
void onToggle(bool on)
QmitkBoolPropertyWidget(const QString &text, QWidget *parent=nullptr)
Construct the widget with a label text.
Declares commonly used GenericProperty specializations for MITK.