VR-Forces 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::DtTextEditorWidget Class Reference

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.

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

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
 
QPushButtonmyToggleButton
 

Constructor & Destructor Documentation

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

Default CTOR.

Parameters
parentWidgetThe parent widget.

Member Function Documentation

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

Set/Get the plain text being edited by this widget.

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

Set/Get the plain text being edited by this widget.

Parameters
textThe plain text to be edited.
void makVrv::DtTextEditorWidget::commitButtonPressed ( )
signal
virtual void makVrv::DtTextEditorWidget::onCommitButtonPressed ( )
protectedvirtualslot
virtual void makVrv::DtTextEditorWidget::onCancelButtonPressed ( )
protectedvirtualslot
virtual void makVrv::DtTextEditorWidget::onToggleButtonPressed ( )
protectedvirtualslot

Member Data Documentation

QVBoxLayout* makVrv::DtTextEditorWidget::myMainLayout
protected
QTextEdit* makVrv::DtTextEditorWidget::myTextEdit
protected
QTextBrowser* makVrv::DtTextEditorWidget::myDescriptionView
protected
QDialogButtonBox* makVrv::DtTextEditorWidget::myButtonBox
protected
QPushButton* makVrv::DtTextEditorWidget::myToggleButton
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)