![]() |
VR-Forces Developer's Guide
|
A widget that is (horizontally) composed of a QLineEdit widget and a QPushButton widget. The QLineEdit widget will hold some script text. The QPushButton will pop up a text editor dialog that allows the user to edit the script text using a multi-line text box (as opposed to the single-line text box). The user can indicate the widget is targeted toward editing HTML, so that the user can preview the HTML or view the HTML source as plain text.

Signals | |
| void | onScriptValueChanged (const std::string &) |
Public Member Functions | |
| DtScriptEditorWidget (QWidget *parentWidget, bool isHTML=false) | |
| ~DtScriptEditorWidget () | |
| void | setWindowTitle (const QString &title) |
| void | setText (const std::string &text) |
| std::string | text () const |
Protected Slots | |
| virtual void | onEditButtonPressed () |
| virtual void | onCommitButtonPressed () |
| virtual void | onLineEditChanged () |
Protected Attributes | |
| QHBoxLayout * | myMainLayout |
| DtTextEditorWidget * | myTextEditorWidget |
| QPushButton * | myEditButton |
| QLineEdit * | myLineEdit |
| makVrv::DtScriptEditorWidget::DtScriptEditorWidget | ( | QWidget * | parentWidget, |
| bool | isHTML = false |
||
| ) |
Default CTOR.
| parentWidget | The parent widget. |
| makVrv::DtScriptEditorWidget::~DtScriptEditorWidget | ( | ) |
Default DTOR.
| void makVrv::DtScriptEditorWidget::setText | ( | const std::string & | text | ) |
Set/Get the text being edited by this widget.
| text | The text to be edited. |
| std::string makVrv::DtScriptEditorWidget::text | ( | ) | const |
Set/Get the text being edited by this widget.
| text | The text to be edited. |
| void makVrv::DtScriptEditorWidget::setWindowTitle | ( | const QString & | title | ) |
Set/Get the window title of this text editor widget.
| title | The title of the text editor window that can be created. |
|
signal |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protected |