![]() |
VR-Forces 4.10 Class Documentation
|
A widget that is (horizontally) composed of a QLineEdit widget and a QPushButton widget. More...

Signals | |
| void | onScriptValueChanged (const std::string &) |
Public Member Functions | |
| DtScriptEditorWidget (QWidget *parentWidget, bool isHTML=false) | |
| Default CTOR. More... | |
| ~DtScriptEditorWidget () | |
| Default DTOR. More... | |
| void | setWindowTitle (const QString &title) |
| Set/Get the window title of this text editor widget. More... | |
| void | setText (const std::string &text) |
| Set/Get the text being edited by this widget. More... | |
| 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 |
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.
| 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 |
| 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 |