Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 QMITK_BOOLPROPERTYVIEW_H_INCLUDED
13 #define QMITK_BOOLPROPERTYVIEW_H_INCLUDED
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
#define MITKQTWIDGETSEXT_EXPORT
_BoolPropertyWidgetImpl * m_PropEditorImpl