Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkEnumerationPropertyWidget.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 
17 #ifndef QMITK_ENUMERATIONPROPERTYWIDGET_H_INCLUDED
18 #define QMITK_ENUMERATIONPROPERTYWIDGET_H_INCLUDED
19 
21 
22 #include <QComboBox>
23 #include <QHash>
24 
25 namespace mitk
26 {
27  class EnumerationProperty;
28 }
29 
30 class _EnumPropEditorImpl;
31 
34 {
35  Q_OBJECT
36 
37 public:
38  QmitkEnumerationPropertyWidget(QWidget *parent = nullptr);
40 
41  void SetProperty(mitk::EnumerationProperty *property);
42 
43 protected slots:
44 
45  void OnIndexChanged(int index);
46 
47 protected:
48  _EnumPropEditorImpl *propView;
49 };
50 
51 #endif
#define MITKQTWIDGETSEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.