|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Read-only QLabel that displays a mitk::StringProperty value as text. More...
#include <QmitkStringPropertyView.h>


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... | |
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.
Definition at line 28 of file QmitkStringPropertyView.h.
| QmitkStringPropertyView::QmitkStringPropertyView | ( | const mitk::StringProperty * | property, |
| QWidget * | parent | ||
| ) |
Construct a view for the given string property.
| [in] | property | The mitk::StringProperty to observe. |
| [in] | parent | The parent widget. |
|
override |
Destructor.
|
overrideprotectedvirtual |
Called when the observed property value has changed.
Implements mitk::PropertyObserver.
|
overrideprotectedvirtual |
Called when the observed property is about to be deleted.
Implements mitk::PropertyObserver.
|
protected |
Definition at line 47 of file QmitkStringPropertyView.h.