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
16
#include "
MitkQtWidgetsExtExports.h
"
17
#include <
mitkProperties.h
>
18
19
class
QWidget;
20
21
class
MITKQTWIDGETSEXT_EXPORT
QmitkPropertyViewFactory
22
{
23
public
:
24
enum
ViewTypes
25
{
26
vtDEFAULT = 0
27
};
28
enum
EditorTypes
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()
45
~
QmitkPropertyViewFactory
();
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
src
MITK
Modules
QtWidgetsExt
include
QmitkPropertyViewFactory.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17