21#ifndef __qMRMLTextWidget_h
22#define __qMRMLTextWidget_h
28#include "qSlicerTextsModuleWidgetsExport.h"
32class qMRMLTextWidgetPrivate;
159 QScopedPointer<qMRMLTextWidgetPrivate>
d_ptr;
void saveEdits()
Finish editing, saving edited contents to the text node.
void editingChanged(bool)
This signal is emitted when the user starts/stops the widget edit mode.
void updateWidgetFromMRMLRequested()
void mrmlNodeChanged(vtkMRMLNode *)
void setReadOnly(bool readOnly)
void updateMRMLFromWidget()
Update the MRML node to reflect the currently state of the GUI.
void readOnlyChanged(bool)
This signal is emitted if the read only property is changed.
bool autoSaveChanged(bool)
This signal is emitted if the autoSave property is changed.
void setMRMLNode(vtkMRMLNode *textNode)
void updateMRMLFromWidgetFinished()
Q_INVOKABLE vtkMRMLTextNode * mrmlTextNode() const
Get the text node.
QScopedPointer< qMRMLTextWidgetPrivate > d_ptr
void startEdits()
Start editing mode.
void setWordWrap(bool wordWrap)
~qMRMLTextWidget() override
void cancelEdits()
Finish editing, discarding all changes.
qMRMLTextWidget(QWidget *parent=nullptr)
Q_INVOKABLE vtkMRMLNode * mrmlNode() const
void updateWidgetFromMRML()
Update the GUI to reflect the currently selected text node.
void updateWidgetFromMRMLFinished()
void setAutoSave(bool autoSave)
void updateMRMLFromWidgetRequested()
void setMRMLScene(vtkMRMLScene *scene) override
Reimplemented from qSlicerWidget.
Q_INVOKABLE QTextEdit * textEditWidget()
Returns the internal text editor widget to allow low-level access and customization.
void onTextNodeContentsModified()
Method invoked when the contents of the text node is modified.
void setMRMLTextNode(vtkMRMLTextNode *textNode)
void onTextEditChanged()
Method invoked when the contents of the text edit is changed.
bool isEditing()
Returns true if the text box is in edit mode.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.