Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
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 QmitkPropertyViewFactory_h
18
#define QmitkPropertyViewFactory_h
19
20
#include "
MitkQtWidgetsExtExports.h
"
21
#include <
mitkProperties.h
>
22
23
class
QWidget;
24
25
class
MITKQTWIDGETSEXT_EXPORT
QmitkPropertyViewFactory
26
{
27
public
:
28
enum
ViewTypes
29
{
30
vtDEFAULT = 0
31
};
32
enum
EditorTypes
33
{
34
etDEFAULT = 0,
35
etALWAYS_EDIT = 1,
36
etON_DEMAND_EDIT = 2
37
};
38
39
static
QmitkPropertyViewFactory
*GetInstance();
// singleton
40
44
QWidget *CreateView(
const
mitk::BaseProperty
*property,
unsigned
int
type = 0, QWidget *parent =
nullptr
);
45
QWidget *CreateEditor(
mitk::BaseProperty
*property,
unsigned
int
type = 0, QWidget *parent =
nullptr
);
46
47
protected
:
48
QmitkPropertyViewFactory
();
// hidden, access through GetInstance()
49
~
QmitkPropertyViewFactory
();
50
};
51
52
#endif
QmitkPropertyViewFactory::EditorTypes
EditorTypes
Definition:
QmitkPropertyViewFactory.h:32
QmitkPropertyViewFactory
Definition:
QmitkPropertyViewFactory.h:25
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
mitkProperties.h
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:39
QmitkPropertyViewFactory::ViewTypes
ViewTypes
Definition:
QmitkPropertyViewFactory.h:28
MitkQtWidgetsExtExports.h
git
MITK
Modules
QtWidgetsExt
include
QmitkPropertyViewFactory.h
Generated on Fri Feb 3 2017 20:52:14 for Medical Imaging Interaction Toolkit by
1.8.9.1