![]() |
VR-Forces 5.0.1 Developer's Guide
|
A dialog widget that allows the user to edit multi-line text. The user can indicate the widget is targeted toward editing HTML, so that additional UI elements are added to the dialog, allowing the user to toggle between a preview of the HTML source and the HTML source as plain text.

Signals | |
| void | commitButtonPressed () |
Public Member Functions | |
| DtTextEditorWidget (QWidget *parentWidget, bool isHTML=false) | |
| void | setText (const std::string &text) |
| std::string | text () const |
Protected Slots | |
| virtual void | onCommitButtonPressed () |
| virtual void | onCancelButtonPressed () |
| virtual void | onToggleButtonPressed () |
Protected Attributes | |
| QVBoxLayout * | myMainLayout |
| QTextEdit * | myTextEdit |
| QTextBrowser * | myDescriptionView |
| QDialogButtonBox * | myButtonBox |
| QPushButton * | myToggleButton |
| makVrv::DtTextEditorWidget::DtTextEditorWidget | ( | QWidget * | parentWidget, |
| bool | isHTML = false |
||
| ) |
Default CTOR.
| parentWidget | The parent widget. |
| void makVrv::DtTextEditorWidget::setText | ( | const std::string & | text | ) |
Set/Get the plain text being edited by this widget.
| text | The plain text to be edited. |
| std::string makVrv::DtTextEditorWidget::text | ( | ) | const |
Set/Get the plain text being edited by this widget.
| text | The plain text to be edited. |
|
signal |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |