Medical Imaging Interaction Toolkit  2023.12.99-29da53b2
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 
23 {
24  Q_OBJECT
25 
26 public:
27  QmitkBoolPropertyWidget(QWidget *parent = nullptr);
28  QmitkBoolPropertyWidget(const QString &text, QWidget *parent = nullptr);
29  ~QmitkBoolPropertyWidget() override;
30 
31  void SetProperty(mitk::BoolProperty *property);
32 
33 protected slots:
34 
35  void onToggle(bool on);
36 
37 protected:
38  _BoolPropertyWidgetImpl *m_PropEditorImpl;
39 };
40 
41 #endif
mitk::BoolProperty
Definition: mitkProperties.h:22
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition: MitkQtWidgetsExtExports.h:15
QmitkBoolPropertyWidget
Definition: QmitkBoolPropertyWidget.h:22
QmitkBoolPropertyWidget::m_PropEditorImpl
_BoolPropertyWidgetImpl * m_PropEditorImpl
Definition: QmitkBoolPropertyWidget.h:38
MitkQtWidgetsExtExports.h
mitkProperties.h