|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
An on-demand string property editor that shows the value as a label with a "..." button to open an input dialog. More...
#include <QmitkStringPropertyOnDemandEdit.h>


Public Member Functions | |
| QmitkStringPropertyOnDemandEdit (mitk::StringProperty *property, QWidget *parent) | |
| Construct an on-demand editor for the given string property. More... | |
| ~QmitkStringPropertyOnDemandEdit () 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 | onToolButtonClicked () |
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 |
| QHBoxLayout * | m_layout |
| QLabel * | m_label |
| QClickableLabel2 * | m_toolbutton |
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... | |
An on-demand string property editor that shows the value as a label with a "..." button to open an input dialog.
Displays the current string property value as a QLabel. Clicking the "..." button opens a QInputDialog to edit the text. The property is updated only when the dialog is accepted. If the property is removed, "n/a" is shown.
Definition at line 56 of file QmitkStringPropertyOnDemandEdit.h.
| QmitkStringPropertyOnDemandEdit::QmitkStringPropertyOnDemandEdit | ( | mitk::StringProperty * | property, |
| QWidget * | parent | ||
| ) |
Construct an on-demand 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 78 of file QmitkStringPropertyOnDemandEdit.h.
|
protected |
Definition at line 77 of file QmitkStringPropertyOnDemandEdit.h.
|
protected |
Definition at line 75 of file QmitkStringPropertyOnDemandEdit.h.
|
protected |
Definition at line 79 of file QmitkStringPropertyOnDemandEdit.h.