Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPropertyViewFactory Class Reference

#include <QmitkPropertyViewFactory.h>

Public Types

enum  ViewTypes { vtDEFAULT }
 
enum  EditorTypes { etDEFAULT, etALWAYS_EDIT, etON_DEMAND_EDIT }
 

Public Member Functions

QWidget * CreateView (const mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
 
QWidget * CreateEditor (mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
 

Static Public Member Functions

static QmitkPropertyViewFactoryGetInstance ()
 

Protected Member Functions

 QmitkPropertyViewFactory ()
 
 ~QmitkPropertyViewFactory ()
 

Detailed Description

Definition at line 25 of file QmitkPropertyViewFactory.h.

Member Enumeration Documentation

Enumerator
etDEFAULT 
etALWAYS_EDIT 
etON_DEMAND_EDIT 

Definition at line 32 of file QmitkPropertyViewFactory.h.

Enumerator
vtDEFAULT 

Definition at line 28 of file QmitkPropertyViewFactory.h.

Constructor & Destructor Documentation

QmitkPropertyViewFactory::QmitkPropertyViewFactory ( )
protected

Definition at line 39 of file QmitkPropertyViewFactory.cpp.

QmitkPropertyViewFactory::~QmitkPropertyViewFactory ( )
protected

Definition at line 43 of file QmitkPropertyViewFactory.cpp.

Member Function Documentation

QWidget * QmitkPropertyViewFactory::CreateEditor ( mitk::BaseProperty property,
unsigned int  type = 0,
QWidget *  parent = nullptr 
)

Definition at line 90 of file QmitkPropertyViewFactory.cpp.

References etON_DEMAND_EDIT.

QWidget * QmitkPropertyViewFactory::CreateView ( const mitk::BaseProperty property,
unsigned int  type = 0,
QWidget *  parent = nullptr 
)

Views and editors are created via operator new. After creation they belong to the caller of CreateView()/CreateEditor(), i.e. the caller has to ensure, that the objects are properly deleted!

Definition at line 46 of file QmitkPropertyViewFactory.cpp.

QmitkPropertyViewFactory * QmitkPropertyViewFactory::GetInstance ( )
static

Definition at line 33 of file QmitkPropertyViewFactory.cpp.


The documentation for this class was generated from the following files: