Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef QMITK_BOOLPROPERTYVIEW_H_INCLUDED
17 #define QMITK_BOOLPROPERTYVIEW_H_INCLUDED
18 
20 #include <QCheckBox>
21 #include <mitkProperties.h>
22 
23 class _BoolPropertyWidgetImpl;
24 
27 {
28  Q_OBJECT
29 
30 public:
31  QmitkBoolPropertyWidget(QWidget *parent = nullptr);
32  QmitkBoolPropertyWidget(const QString &text, QWidget *parent = nullptr);
33  virtual ~QmitkBoolPropertyWidget();
34 
35  void SetProperty(mitk::BoolProperty *property);
36 
37 protected slots:
38 
39  void onToggle(bool on);
40 
41 protected:
42  _BoolPropertyWidgetImpl *m_PropEditorImpl;
43 };
44 
45 #endif
#define MITKQTWIDGETSEXT_EXPORT
_BoolPropertyWidgetImpl * m_PropEditorImpl