|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
A QLineEdit that edits a mitk::StringProperty. More...
#include <QmitkStringPropertyEditor.h>


Public Member Functions | |
| QmitkStringPropertyEditor (mitk::StringProperty *property, QWidget *parent) | |
| Construct an editor for the given string property. More... | |
| ~QmitkStringPropertyEditor () override | |
| Destructor. More... | |
Public Member Functions inherited from mitk::PropertyEditor | |
| PropertyEditor (mitk::BaseProperty *property) | |
| Constructor. Begins observing the given property. More... | |
| ~PropertyEditor () 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 Slots | |
| void | onTextChanged (const QString &) |
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 | |
| mitk::StringProperty * | m_StringProperty |
Protected Attributes inherited from mitk::PropertyEditor | |
| mitk::BaseProperty * | m_Property |
| The observed property (read-write). 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... | |
A QLineEdit that edits a mitk::StringProperty.
Bidirectionally synchronizes the line edit text with a mitk::StringProperty. When the user types, the property is updated. When the property changes externally, the text is updated. If the property is removed, "n/a" is displayed.
Definition at line 29 of file QmitkStringPropertyEditor.h.
| QmitkStringPropertyEditor::QmitkStringPropertyEditor | ( | mitk::StringProperty * | property, |
| QWidget * | parent | ||
| ) |
Construct an editor for the given string property.
| [in] | property | The mitk::StringProperty to edit. |
| [in] | parent | The parent widget. |
|
override |
Destructor.
|
protectedslot |
|
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 48 of file QmitkStringPropertyEditor.h.