Medical Imaging Interaction Toolkit  2024.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 
22 {
23 public:
24  enum ViewTypes
25  {
26  vtDEFAULT = 0
27  };
29  {
30  etDEFAULT = 0,
31  etALWAYS_EDIT = 1,
32  etON_DEMAND_EDIT = 2
33  };
34 
35  static QmitkPropertyViewFactory *GetInstance(); // singleton
36 
40  QWidget *CreateView(const mitk::BaseProperty *property, unsigned int type = 0, QWidget *parent = nullptr);
41  QWidget *CreateEditor(mitk::BaseProperty *property, unsigned int type = 0, QWidget *parent = nullptr);
42 
43 protected:
44  QmitkPropertyViewFactory(); // hidden, access through GetInstance()
46 };
47 
48 #endif
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition: MitkQtWidgetsExtExports.h:15
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
QmitkPropertyViewFactory::EditorTypes
EditorTypes
Definition: QmitkPropertyViewFactory.h:28
MitkQtWidgetsExtExports.h
QmitkPropertyViewFactory
Definition: QmitkPropertyViewFactory.h:21
mitkProperties.h
QmitkPropertyViewFactory::ViewTypes
ViewTypes
Definition: QmitkPropertyViewFactory.h:24