VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Slots | Protected Attributes
makVrv::DtScriptEditorWidget Class Reference

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.

Inheritance diagram for makVrv::DtScriptEditorWidget:
Inheritance graph
[legend]

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
 
DtTextEditorWidgetmyTextEditorWidget
 
QPushButtonmyEditButton
 
QLineEditmyLineEdit
 

Constructor & Destructor Documentation

makVrv::DtScriptEditorWidget::DtScriptEditorWidget ( QWidget *  parentWidget,
bool  isHTML = false 
)

Default CTOR.

Parameters
parentWidgetThe parent widget.
makVrv::DtScriptEditorWidget::~DtScriptEditorWidget ( )

Default DTOR.

Member Function Documentation

void makVrv::DtScriptEditorWidget::setText ( const std::string &  text)

Set/Get the text being edited by this widget.

Parameters
textThe text to be edited.
std::string makVrv::DtScriptEditorWidget::text ( ) const

Set/Get the text being edited by this widget.

Parameters
textThe text to be edited.
void makVrv::DtScriptEditorWidget::setWindowTitle ( const QString &  title)

Set/Get the window title of this text editor widget.

Parameters
titleThe title of the text editor window that can be created.
void makVrv::DtScriptEditorWidget::onScriptValueChanged ( const std::string &  )
signal
virtual void makVrv::DtScriptEditorWidget::onEditButtonPressed ( )
protectedvirtualslot
virtual void makVrv::DtScriptEditorWidget::onCommitButtonPressed ( )
protectedvirtualslot
virtual void makVrv::DtScriptEditorWidget::onLineEditChanged ( )
protectedvirtualslot

Member Data Documentation

QHBoxLayout* makVrv::DtScriptEditorWidget::myMainLayout
protected
DtTextEditorWidget* makVrv::DtScriptEditorWidget::myTextEditorWidget
protected
QPushButton* makVrv::DtScriptEditorWidget::myEditButton
protected
QLineEdit* makVrv::DtScriptEditorWidget::myLineEdit
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)