Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
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 (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 
13 #ifndef QmitkEnumerationPropertyWidget_h
14 #define QmitkEnumerationPropertyWidget_h
15 
17 
18 #include <QComboBox>
19 #include <QHash>
20 
21 namespace mitk
22 {
23  class EnumerationProperty;
24 }
25 
26 class _EnumPropEditorImpl;
27 
39 {
40  Q_OBJECT
41 
42 public:
47  QmitkEnumerationPropertyWidget(QWidget *parent = nullptr);
48 
51 
61 
62 protected slots:
63 
64  void OnIndexChanged(int index);
65 
66 protected:
67  _EnumPropEditorImpl *propView;
68 };
69 
70 #endif
#define MITKQTWIDGETSEXT_EXPORT
A QComboBox that edits a mitk::EnumerationProperty.
~QmitkEnumerationPropertyWidget() override
Destructor.
void SetProperty(mitk::EnumerationProperty *property)
Bind this widget to a mitk::EnumerationProperty.
QmitkEnumerationPropertyWidget(QWidget *parent=nullptr)
Construct the widget.
Property for storing enumeration-like values identified by id and name.
Find image slices visible on a given plane.