Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStringPropertyView Class Reference

Read-only QLabel that displays a mitk::StringProperty value as text. More...

#include <QmitkStringPropertyView.h>

Inheritance diagram for QmitkStringPropertyView:
Collaboration diagram for QmitkStringPropertyView:

Public Member Functions

 QmitkStringPropertyView (const mitk::StringProperty *property, QWidget *parent)
 Construct a view for the given string property. More...
 
 ~QmitkStringPropertyView () override
 Destructor. More...
 
- Public Member Functions inherited from mitk::PropertyView
 PropertyView (const mitk::BaseProperty *property)
 Constructor. Begins observing the given property. More...
 
 ~PropertyView () override
 Destructor. Removes the ITK observer from the property. More...
 
void OnModified (const itk::EventObject &e)
 Callback for itk::ModifiedEvent on the observed property. More...
 
void OnDelete (const itk::EventObject &e)
 Callback for itk::DeleteEvent on the observed property. More...
 
- Public Member Functions inherited from mitk::PropertyObserver
 PropertyObserver ()
 Constructor. More...
 
virtual ~PropertyObserver ()
 Virtual destructor. More...
 

Protected Member Functions

void PropertyChanged () override
 Called when the observed property value has changed. More...
 
void PropertyRemoved () override
 Called when the observed property is about to be deleted. More...
 
- Protected Member Functions inherited from mitk::PropertyObserver
void BeginModifyProperty ()
 Marks the beginning of a self-initiated property modification. More...
 
void EndModifyProperty ()
 Marks the end of a self-initiated property modification. More...
 

Protected Attributes

const mitk::StringProperty * m_StringProperty
 
- Protected Attributes inherited from mitk::PropertyView
const mitk::BaseProperty * m_Property
 The observed property (read-only). More...
 
- Protected Attributes inherited from mitk::PropertyObserver
unsigned long m_ModifiedTag
 ITK observer tag for the ModifiedEvent. More...
 
unsigned long m_DeleteTag
 ITK observer tag for the DeleteEvent. More...
 
bool m_SelfCall
 Guard flag to prevent re-entrant notification. More...
 

Detailed Description

Read-only QLabel that displays a mitk::StringProperty value as text.

Observes a mitk::StringProperty and updates the label text whenever the property value changes. If the property is removed, "n/a" is displayed.

See also
QmitkStringPropertyEditor, QmitkStringPropertyOnDemandEdit, QmitkPropertyViewFactory

Definition at line 28 of file QmitkStringPropertyView.h.

Constructor & Destructor Documentation

◆ QmitkStringPropertyView()

QmitkStringPropertyView::QmitkStringPropertyView ( const mitk::StringProperty *  property,
QWidget *  parent 
)

Construct a view for the given string property.

Parameters
[in]propertyThe mitk::StringProperty to observe.
[in]parentThe parent widget.

◆ ~QmitkStringPropertyView()

QmitkStringPropertyView::~QmitkStringPropertyView ( )
override

Destructor.

Member Function Documentation

◆ PropertyChanged()

void QmitkStringPropertyView::PropertyChanged ( )
overrideprotectedvirtual

Called when the observed property value has changed.

Implements mitk::PropertyObserver.

◆ PropertyRemoved()

void QmitkStringPropertyView::PropertyRemoved ( )
overrideprotectedvirtual

Called when the observed property is about to be deleted.

Implements mitk::PropertyObserver.

Member Data Documentation

◆ m_StringProperty

const mitk::StringProperty* QmitkStringPropertyView::m_StringProperty
protected

Definition at line 47 of file QmitkStringPropertyView.h.


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