DzTextEdit Class Reference
[Interface Widget Objects]

DAZ Script a powerful single-page rich text editor widget. More...

Inheritance diagram for DzTextEdit:

DzWidget DzTextBrowser List of all members.

Properties

Number blockCount
Boolean bold
Color color
String documentTitle
Boolean italic
Number length
Number lines
Boolean linkUnderline
Number paragraphs
Number pointSize
String text
Boolean underline

Methods

void append (String text)
void clear ()
Boolean hasSelectedText ()
String selectedText ()
Number selectionEnd ()
Number selectionIndexEnd ()
Number selectionIndexStart ()
Number selectionParaEnd ()
Number selectionParaStart ()
Number selectionStart ()
String text (Number para)

Constructors

 DzTextEdit (DzWidget parent)

Detailed Description

DAZ Script a powerful single-page rich text editor widget.


Constructor & Destructor Documentation

DzTextEdit::DzTextEdit ( DzWidget  parent  ) 

Creates a text edit widget as a child of the given parent widget


Member Function Documentation

void DzTextEdit::append ( String  text  ) 

Adds the given text as a new paragraph to the end of the editor

void DzTextEdit::clear (  ) 

Removes all text from the editor

Boolean DzTextEdit::hasSelectedText (  ) 

Returns:
TRUE if some text is selected; otherwise returns FALSE.

String DzTextEdit::selectedText (  ) 

Returns:
The selected text or an empty string if there is no currently selected text.

Number DzTextEdit::selectionEnd (  ) 

Returns:
The character position at which the currect selection ends

Number DzTextEdit::selectionIndexEnd (  ) 

Deprecated:
Use selectionEnd() instead.
Returns:
The index of the character in the last paragraph of the selection where the selection ends

Number DzTextEdit::selectionIndexStart (  ) 

Deprecated:
Use selectionStart() instead.
Returns:
The index of the first character selected in the first paragraph of the selection

Number DzTextEdit::selectionParaEnd (  ) 

Deprecated:
Use selectionEnd() instead.
Returns:
The number of the paragraph in which the currect selection ends

Number DzTextEdit::selectionParaStart (  ) 

Deprecated:
Use selectionStart() instead.
Returns:
The number of the paragraph in which the currect selection begins

Number DzTextEdit::selectionStart (  ) 

Returns:
The character position at which the currect selection begins

String DzTextEdit::text ( Number  para  ) 

Returns:
The text of paragraph para


Member Data Documentation

int DzTextEdit::blockCount

The number of text blocks (read-only)

bool DzTextEdit::bold

Whether or not bold is currently turned on

QColor DzTextEdit::color

The current text color

QString DzTextEdit::documentTitle

The title of the document

bool DzTextEdit::italic

Whether or not italics are currently turned on

int DzTextEdit::length

The length of the text (read-only)

int DzTextEdit::lines

Deprecated:
Has the same value as textBlocks (read-only)

bool DzTextEdit::linkUnderline

Deprecated:
This is always false

int DzTextEdit::paragraphs

Deprecated:
The number of paragraphs (read-only) use blockCount instead

int DzTextEdit::pointSize

The current point size for the text.

QString DzTextEdit::text

The text of the widget

bool DzTextEdit::underline

Whether or not underline is currently turned on


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.