VR-Forces 4.10 Class Documentation
 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. More...

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

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

Detailed Description

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.

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
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)