DzLineEdit Class Reference
[Interface Widget Objects]

DAZ Script line edit widget. More...

Inheritance diagram for DzLineEdit:

DzWidget List of all members.

Properties

AlignmentFlags alignment
Number cursorPosition
Boolean frame
String inputMask
Number maxLength
Boolean modified
Boolean readOnly
String text

Methods

void backspace ()
void clear ()
void copy ()
void cursorBackward (Boolean mark, Number steps=1)
void cursorForward (Boolean mark, Number steps=1)
void cursorWordBackward (Boolean mark)
void cursorWordForward (Boolean mark)
void cut ()
void del ()
void deselect ()
void end (Boolean mark)
Boolean hasSelectedText ()
void home (Boolean mark)
void paste ()
void selectAll ()
String selectedText ()
Number selectionStart ()
void setSelection (Number start, Number length)

Constructors

 DzLineEdit (DzWidget parent)

Signals

void lostFocus ()
 Signature: "lostFocus()"
void returnPressed ()
 Signature: "returnPressed()"
void selectionChanged ()
 Signature: "selectionChanged()"
void textChanged (String text)
 Signature: "textChanged(const QString&)"

Detailed Description

DAZ Script line edit widget.

This class provides a single line text editor.


Constructor & Destructor Documentation

DzLineEdit::DzLineEdit ( DzWidget  parent  ) 

Creates label with the given parent widget


Member Function Documentation

void DzLineEdit::backspace (  ) 

If text is currently selected, it will be deleted and the cursor moved to the beginning of the selection. If no text is selected, the cursor will be moved one character to the left and the character will be deleted.

void DzLineEdit::clear (  ) 

Clears the text in the line edit.

void DzLineEdit::copy (  ) 

Copies the selected text into the clipboard.

void DzLineEdit::cursorBackward ( Boolean  mark,
Number  steps = 1 
)

Moves the cursor backward the given number of characters.

Parameters:
mark If true, each character that is stepped over will be added to the current selection.
steps The number of characters to move the cursor.

void DzLineEdit::cursorForward ( Boolean  mark,
Number  steps = 1 
)

Moves the cursor forward the given number of characters.

Parameters:
mark If true, each character that is stepped over will be added to the current selection.
steps The number of characters to move the cursor.

void DzLineEdit::cursorWordBackward ( Boolean  mark  ) 

Moves the cursor backward one word.

Parameters:
mark If true, the word will be added to the current selection.

void DzLineEdit::cursorWordForward ( Boolean  mark  ) 

Moves the cursor forward one word.

Parameters:
mark If true, the word will be added to the current selection.

void DzLineEdit::cut (  ) 

Copies the selected text into the clipboard, and removes it from the line.

void DzLineEdit::del (  ) 

If text is currently selected, it will be deleted and the cursor moved to the beginning of the selection. If no text is selected, the character to the right of the cursor will be deleted.

void DzLineEdit::deselect (  ) 

Clears any selection in the line edit.

void DzLineEdit::end ( Boolean  mark  ) 

Moves the cursor to the end of the line.

Parameters:
mark If true, the text from the end of the line to the cursor's previous position will be added to the current selection.

Boolean DzLineEdit::hasSelectedText (  ) 

Returns:
true if some of the text in the line edit is selected.

void DzLineEdit::home ( Boolean  mark  ) 

Moves the cursor to the beginning of the line.

Parameters:
mark If true, the text from the beginning of the line to the cursor's previous position will be added to the current selection.

void DzLineEdit::lostFocus (  )  [signal]

Signature: "lostFocus()"

Emitted when the line edit loses focus.

void DzLineEdit::paste (  ) 

Inserts any text on the clipbaord into the line at the cursor's current position.

void DzLineEdit::returnPressed (  )  [signal]

Signature: "returnPressed()"

Emitted when the user presses return in the line edit.

void DzLineEdit::selectAll (  ) 

Selects all the text in the line edit.

String DzLineEdit::selectedText (  ) 

Returns:
The currently selected text in the line edit.

void DzLineEdit::selectionChanged (  )  [signal]

Signature: "selectionChanged()"

Emitted when the selected text in the line edit changes.

Number DzLineEdit::selectionStart (  ) 

Returns:
The position in the line edit where the current selection begins.

void DzLineEdit::setSelection ( Number  start,
Number  length 
)

Sets the selected portion of the text in the line edit.

void DzLineEdit::textChanged ( String  text  )  [signal]

Signature: "textChanged(const QString&)"

Emitted when the text of the line edit changes, passes the new text.


Member Data Documentation

int DzLineEdit::alignment

Holds the alignment of the text displayed in the line edit.

int DzLineEdit::cursorPosition

Holds the position of the cursor in the line edit.

bool DzLineEdit::frame

Holds whether or not the line edit is drawn with a frame.

QString DzLineEdit::inputMask

Holds the input mask for the line edit. Set this to an empty string to clear the input mask.

int DzLineEdit::maxLength

Holds the maximum lenght of the text in the line edit.

bool DzLineEdit::modified

Holds whether or not the text in the line edit has been modified. (Read Only)

bool DzLineEdit::readOnly

Holds whether or not the text in the line edit can be edited by the user.

QString DzLineEdit::text

Holds the text displayed in the line edit.


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.