#include <Modules/Loadable/Texts/Widgets/qMRMLTextWidget.h>
|
bool | AutoSave {false} |
|
QScopedPointer< qMRMLTextWidgetPrivate > | d_ptr |
|
bool | ReadOnly {false} |
|
QScopedPointer< qSlicerWidgetPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
Definition at line 37 of file qMRMLTextWidget.h.
◆ Superclass
◆ autoSave
bool qMRMLTextWidget::autoSave |
|
readwrite |
◆ editing
bool qMRMLTextWidget::editing |
|
read |
◆ readOnly
bool qMRMLTextWidget::readOnly |
|
readwrite |
◆ wordWrap
bool qMRMLTextWidget::wordWrap |
|
readwrite |
◆ qMRMLTextWidget()
qMRMLTextWidget::qMRMLTextWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~qMRMLTextWidget()
qMRMLTextWidget::~qMRMLTextWidget |
( |
| ) |
|
|
override |
◆ autoSaveChanged
bool qMRMLTextWidget::autoSaveChanged |
( |
bool |
| ) |
|
|
signal |
This signal is emitted if the autoSave property is changed.
◆ cancelEdits
void qMRMLTextWidget::cancelEdits |
( |
| ) |
|
|
slot |
Finish editing, discarding all changes.
◆ editingChanged
void qMRMLTextWidget::editingChanged |
( |
bool |
| ) |
|
|
signal |
This signal is emitted when the user starts/stops the widget edit mode.
◆ isAutoSave()
bool qMRMLTextWidget::isAutoSave |
( |
| ) |
|
Returns true if text changes made in the widget must be immediately saved into the text node. If true, the text editor will propagate text changes to the vtkMRMLTextNode after each keypress. If false, the text editor will only update the node when "Save" is clicked, and changes from the text node will not be shown in the widget while the text is being edited. Save and Cancel buttons are only shown if auto-save is disabled.
- See also
- setAutoSave()
◆ isEditing()
bool qMRMLTextWidget::isEditing |
( |
| ) |
|
Returns true if the text box is in edit mode.
◆ isReadOnly()
bool qMRMLTextWidget::isReadOnly |
( |
| ) |
|
Returns true if the text editor is read only If read only is enabled, only the text edit will be shown, and the user will be unable to type in the text edit.
- See also
- setReadOnly()
◆ mrmlNode()
Q_INVOKABLE vtkMRMLNode* qMRMLTextWidget::mrmlNode |
( |
| ) |
const |
◆ mrmlNodeChanged
void qMRMLTextWidget::mrmlNodeChanged |
( |
vtkMRMLNode * |
| ) |
|
|
signal |
◆ mrmlTextNode()
◆ onTextEditChanged
void qMRMLTextWidget::onTextEditChanged |
( |
| ) |
|
|
protectedslot |
Method invoked when the contents of the text edit is changed.
◆ onTextNodeContentsModified
void qMRMLTextWidget::onTextNodeContentsModified |
( |
| ) |
|
|
protectedslot |
Method invoked when the contents of the text node is modified.
◆ readOnlyChanged
void qMRMLTextWidget::readOnlyChanged |
( |
bool |
| ) |
|
|
signal |
This signal is emitted if the read only property is changed.
◆ saveEdits
void qMRMLTextWidget::saveEdits |
( |
| ) |
|
|
slot |
Finish editing, saving edited contents to the text node.
◆ setAutoSave
void qMRMLTextWidget::setAutoSave |
( |
bool |
autoSave | ) |
|
|
slot |
Set the continuous update property of the text editor If true, the text editor will propogate the text to the vtkMRMLTextNode as it is modified, and vice versa. If false, the text editor will only update the node when "Save" is clicked, and changes from the vtkMRMLTextNode will not be propagated if the text is being edited. When auto update is enabled, only the text edit will be shown.
- See also
- isAutoSave()
◆ setMRMLNode
void qMRMLTextWidget::setMRMLNode |
( |
vtkMRMLNode * |
textNode | ) |
|
|
slot |
Utility function to simply connect signals/slots with Qt Designer
- See also
- mrmlNode()
◆ setMRMLScene
◆ setMRMLTextNode
◆ setReadOnly
void qMRMLTextWidget::setReadOnly |
( |
bool |
readOnly | ) |
|
|
slot |
Set the read only property of the text editor. If read only is enabled, only the text edit will be shown, and the user will be unable to edit the text.
- See also
- isReadOnly()
◆ setup()
virtual void qMRMLTextWidget::setup |
( |
| ) |
|
|
protectedvirtual |
◆ setWordWrap
void qMRMLTextWidget::setWordWrap |
( |
bool |
wordWrap | ) |
|
|
slot |
Set the word wrap mode to be used by the text editor
- See also
- wordWrap()
◆ startEdits
void qMRMLTextWidget::startEdits |
( |
| ) |
|
|
slot |
◆ textEditWidget()
Q_INVOKABLE QTextEdit* qMRMLTextWidget::textEditWidget |
( |
| ) |
|
Returns the internal text editor widget to allow low-level access and customization.
◆ updateMRMLFromWidget
void qMRMLTextWidget::updateMRMLFromWidget |
( |
| ) |
|
|
protectedslot |
Update the MRML node to reflect the currently state of the GUI.
◆ updateMRMLFromWidgetFinished
void qMRMLTextWidget::updateMRMLFromWidgetFinished |
( |
| ) |
|
|
signal |
◆ updateMRMLFromWidgetRequested
void qMRMLTextWidget::updateMRMLFromWidgetRequested |
( |
| ) |
|
|
signal |
◆ updateWidgetFromMRML
void qMRMLTextWidget::updateWidgetFromMRML |
( |
| ) |
|
|
protectedslot |
Update the GUI to reflect the currently selected text node.
◆ updateWidgetFromMRMLFinished
void qMRMLTextWidget::updateWidgetFromMRMLFinished |
( |
| ) |
|
|
signal |
◆ updateWidgetFromMRMLRequested
void qMRMLTextWidget::updateWidgetFromMRMLRequested |
( |
| ) |
|
|
signal |
◆ wordWrap()
bool qMRMLTextWidget::wordWrap |
( |
| ) |
|
Returns the word wrap mode used in the text editor
- See also
- setWordWrap()
◆ AutoSave
bool qMRMLTextWidget::AutoSave {false} |
|
protected |
◆ d_ptr
QScopedPointer<qMRMLTextWidgetPrivate> qMRMLTextWidget::d_ptr |
|
protected |
◆ ReadOnly
bool qMRMLTextWidget::ReadOnly {false} |
|
protected |
The documentation for this class was generated from the following file: