Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkPropertyViewFactory.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 QmitkPropertyViewFactory_h
14 #define QmitkPropertyViewFactory_h
15 
17 #include <mitkProperties.h>
18 
19 class QWidget;
20 
35 {
36 public:
38  enum ViewTypes
39  {
40  vtDEFAULT = 0
41  };
42 
45  {
46  etDEFAULT = 0,
47  etALWAYS_EDIT = 1,
48  etON_DEMAND_EDIT = 2
49  };
50 
56 
67  QWidget *CreateView(const mitk::BaseProperty *property, unsigned int type = 0, QWidget *parent = nullptr);
68 
79  QWidget *CreateEditor(mitk::BaseProperty *property, unsigned int type = 0, QWidget *parent = nullptr);
80 
81 protected:
86 };
87 
88 #endif
#define MITKQTWIDGETSEXT_EXPORT
Singleton factory for creating property view and editor widgets.
QmitkPropertyViewFactory()
Hidden constructor; use GetInstance().
static QmitkPropertyViewFactory * GetInstance()
Get the singleton instance.
QWidget * CreateEditor(mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
Create an editor widget for the given property.
EditorTypes
Editor type identifiers.
ViewTypes
View type identifiers.
~QmitkPropertyViewFactory()
Destructor.
QWidget * CreateView(const mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
Create a read-only view widget for the given property.
Abstract base class for properties.
Declares commonly used GenericProperty specializations for MITK.