21 #ifndef __qMRMLTextWidget_h 22 #define __qMRMLTextWidget_h 28 #include "qSlicerTextsModuleWidgetsExport.h" 29 #include "ui_qMRMLTextWidget.h" 33 class qMRMLTextWidgetPrivate;
46 Q_PROPERTY(
bool autoSave READ isAutoSave WRITE setAutoSave);
47 Q_PROPERTY(
bool editing READ isEditing);
48 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly);
49 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap);
76 Q_INVOKABLE QTextEdit* textEditWidget();
85 void setReadOnly(
bool readOnly);
93 void setAutoSave(
bool autoSave);
97 void setWordWrap(
bool wordWrap);
120 void updateWidgetFromMRMLRequested();
124 void updateMRMLFromWidgetRequested();
128 void updateWidgetFromMRMLFinished();
132 void updateMRMLFromWidgetFinished();
139 void readOnlyChanged(
bool);
142 bool autoSaveChanged(
bool);
145 void editingChanged(
bool);
149 void updateWidgetFromMRML();
152 void updateMRMLFromWidget();
155 void onTextNodeContentsModified();
158 void onTextEditChanged();
161 QScopedPointer<qMRMLTextWidgetPrivate>
d_ptr;
164 virtual void setup();
171 bool AutoSave{
false};
172 bool ReadOnly{
false};
A set of MRML Nodes that supports serialization and undo/redo.
QScopedPointer< qMRMLTextWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.