DAZ Script | |
---|---|
EchoMode | { Normal, NoEcho, Password, PasswordEchoOnEdit } |
DAZ Script |
---|
DzLineEdit ( DzWidget parent ) |
DAZ Script | |
---|---|
void | backspace () |
void | clear () |
void | clearModified () |
void | copy () |
void | cursorBackward ( Boolean mark=false, Number steps=1 ) |
void | cursorForward ( Boolean mark=false, Number steps=1 ) |
void | cursorWordBackward ( Boolean mark=false, Number steps=1 ) |
void | cursorWordForward ( Boolean mark=false, Number steps=1 ) |
void | cut () |
void | del () |
void | deselect () |
void | end ( Boolean mark=false ) |
DzSettings | getValidatorSettings () |
Boolean | hasAcceptableInput () |
Boolean | hasSelectedText () |
void | home ( Boolean mark=false ) |
void | paste () |
void | redo () |
void | selectAll () |
String | selectedText () |
Number | selectionStart () |
void | setDoubleValidator ( Number bottom, Number top, Number decimals, Boolean scientific=false ) |
void | setIntValidator ( Number bottom, Number top ) |
void | setRegExValidator ( String rx, Boolean caseSensitive=true ) |
void | setSelection ( Number start, Number length ) |
void | setValidator ( DzSettings settings ) |
void | undo () |
void | cursorPositionChanged ( Number oldPos, Number newPos ) |
void | editingFinished () |
void | returnPressed () |
void | selectionChanged () |
void | textChanged ( String text ) |
void | textEdited ( String text ) |
Deprecated | |
---|---|
void | lostFocus () |
Enumerated values for describing how a line edit should display its contents.
Since:
Holds whether the input satisfies the inputMask and the validator. (Read Only)
Since:
DzWidget::AlignmentFlags : alignment
Holds the alignment of the text displayed in the editor.
Holds the position of the cursor in the editor.
Holds the value that determines how the text entered is displayed to the user.
Since:
Holds whether the editor is drawn with a frame.
Holds whether text is selected. (Read Only)
Since:
Holds the input mask for the editor. Set this to an empty string to clear the input mask.
Holds the maximum length of the text in the editor.
Holds whether the text in the editor has been modified. (Read Only < 4.9.3.93)
Holds the text string displayed in the editor when its text string is empty.
Since:
Holds whether the text in the editor can be edited by the user.
Holds whether a redo operation is available. (Read Only)
Since:
Holds the selected text (if any) of the editor.
Since:
Holds the text value of the editor.
Holds whether an undo operation is available. (Read Only)
Since:
DzLineEdit( DzWidget parent )
Creates a line edit as a child of the given parent widget.
Parameter(s):
void : 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 : clear()
Clears the text in the editor.
void : clearModified()
Deprecated
Exists only to keep old code working. Do not use in new code. Use the modified property instead.
void : copy()
Copies the selected text into the clipboard.
void : cursorBackward( Boolean mark=false, Number steps=1 )
Moves the cursor backward the given number of characters.
Parameter(s):
true
, each character that is stepped over will be added to the current selection.void : cursorForward( Boolean mark=false, Number steps=1 )
Moves the cursor forward the given number of characters.
Parameter(s):
true
, each character that is stepped over will be added to the current selection.void : cursorWordBackward( Boolean mark=false, Number steps=1 )
Moves the cursor backward one word.
Parameter(s):
true
, the word will be added to the current selection.void : cursorWordForward( Boolean mark=false, Number steps=1 )
Moves the cursor forward one word.
Parameter(s):
true
, the word will be added to the current selection.void : cut()
Copies the selected text into the clipboard and removes it from the editor.
void : 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 : deselect()
Clears any selection in the editor.
void : end( Boolean mark=false )
Moves the cursor to the end of the line.
Parameter(s):
true
, the text from the cursor's previous position to the end of the line will be added to the current selection.DzSettings : getValidatorSettings()
Return Value:
Since:
Boolean : hasAcceptableInput()
Return Value:
true
if the input satisfies the inputMask and the validator, otherwise false
.Return Value:
true
if some or all of the text in the editor is selected, otherwise false
.void : home( Boolean mark=false )
Moves the cursor to the beginning of the line.
Parameter(s):
true
, the text from the beginning of the line to the cursor's previous position will be added to the current selection.void : paste()
Inserts any text on the clipboard into the line at the cursor's current position.
void : redo()
If redoAvailable is true
, redoes the next operation in the editor.
void : selectAll()
Selects all the text in the editor.
String : selectedText()
Return Value:
Number : selectionStart()
Return Value:
void : setDoubleValidator( Number bottom, Number top, Number decimals, Boolean scientific=false )
Causes this line edit to only accept characters that represent double precision floating point (decimal) numbers.
Parameter(s):
true
, the text of the editor is expressed in scientific form; i.e., it may have an exponent part; i.e., 1.5E-2. If false
(default), the text of the editor is expressed as a standard number; i.e., 0.015.Attention:
bottom
and top
are set to the same value, the range of acceptable values is not limited (since 4.20.1.37). In earlier versions, setValidator() can be used to accomplish the same effect by not specifying the “top” or “bottom” values (since 4.12.1.97).Since:
void : setIntValidator( Number bottom, Number top )
Causes this line edit to only accept characters that represent whole numbers (integers).
Parameter(s):
Attention:
bottom
and top
are set to the same value, the range of acceptable values is not limited (since 4.20.1.37). In earlier versions, setValidator() can be used to accomplish the same effect by not specifying the “top” or “bottom” values (since 4.12.1.97).Since:
void : setRegExValidator( String rx, Boolean caseSensitive=true )
Causes this line edit to only accept characters that satisfy a Regular Expression.
Parameter(s):
true
(default), the expression is case sensitive.Since:
void : setSelection( Number start, Number length )
Sets the selected portion of the text in the editor.
Parameter(s):
start
to select.void : setValidator( DzSettings settings )
Causes this line edit to only accept characters that satisfy a validator configured with a settings object.
Parameter(s):
Attention:
Since:
void : undo()
If undoAvailable is true
, undoes the last operation in the editor.
void : cursorPositionChanged( Number oldPos, Number newPos )
Signature:“cursorPositionChanged(int,int)”
Emitted when the current position changes.
Since:
void : editingFinished()
Signature:“editingFinished()”
Emitted when the [Return] or [Enter] key is pressed or the editor loses focus.
Since:
void : returnPressed()
Signature:“returnPressed()”
Emitted when the user presses the [Return] key in the editor.
void : selectionChanged()
Signature:“selectionChanged()”
Emitted when the selected text in the editor changes.
void : textChanged( String text )
Signature:“textChanged(const QString&)”
Emitted when the text of the editor changes, passes the new text.
void : textEdited( String text )
Signature:“textEdited(const QString&)”
Emitted when the text edited, passes the new text.
Since:
void : lostFocus()
Signature:“lostFocus()”
Deprecated
Exists only to keep old code working. Do not use in new code. Use editingFinished() or returnPressed() instead.