DAZ Script |
---|
DzComboEdit ( DzWidget parent, Boolean updateOnSelect=true ) |
void | cursorPositionChanged ( Number oldPos, Number newPos ) |
void | editingFinished () |
void | itemChanged ( String item ) |
void | returnPressed () |
void | selectionChanged () |
void | textChanged ( String text ) |
void | textEdited ( String text ) |
A DzComboEdit provides a compound widget comprised of a line edit and a button that, when clicked, causes a menu to be displayed. Selecting one of the items in the popup menu causes the value of the editor to update with the text of the selected item by default.
Holds whether or not the input satisfies the inputMask and the validator. (Read Only)
Since:
DzWidget::AlignmentFlags : alignment
Holds the alignment of the text displayed in the text field.
Since:
Holds the character(s) to detect in the text field as the delimiter between multiple values.
Since:
Holds the position of the cursor in the text field.
Since:
Holds whether or not holding the control modifier key causes the value of selection in the popup to be appended to the current text.
Since:
Holds the input mask for the text field. Set this to an empty string to clear the input mask.
Since:
Holds the maximum length of the text in the text field.
Since:
Boolean : menuSelectionIncludesPath
Holds whether or not clicking an item in the menu causes only its text (default - false
), or the entire path (true
), to be inserted into the field.
Since:
Holds whether or not the text in the text field has been modified.
Since:
Holds the text to display to the user when text is an empty string; e.g., a hint.
Holds whether or not the text field can be manually written to by the user.
Holds whether or not a redo operation is available. (Read Only)
Since:
Holds the character(s) to detect in inserted items as the delimiter for constructing submenus.
Since:
Holds the text of the text field.
Holds whether or not an undo operation is available. (Read Only)
Since:
Holds whether or not clicking the button causes a menu (default - false
), or a treeview (true
) to be displayed.
DzComboEdit( DzWidget parent, Boolean updateOnSelect=true )
Creates a combo edit as a child of the given parent widget.
Parameter(s):
void : addItem( String item, Boolean validate=true )
Adds an item with the given text to the list of options in the popup. The item is appended to the list of existing items.
Parameter(s):
true
, causes the item to be checked for validity before being added to the list. (since 4.12.1.29)See Also:
void : addItems( Array items, Boolean validate=true )
Adds each of the strings in the given list to the list of options in the popup. Each item is appended to the list of existing items in turn.
Parameter(s):
true
, causes each item to be checked for validity before being added to the list. (since 4.12.1.29)See Also:
Since:
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.
Since:
void : clear()
Removes all strings used to build the list of options in the popup.
void : clearText()
Clears the text in the editor.
Since:
void : copy()
Copies the selected text into the clipboard.
Since:
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.Since:
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.Since:
void : cursorWordBackward( Boolean mark=false )
Moves the cursor backward one word.
Parameter(s):
true
, the word will be added to the current selection.Since:
void : cursorWordForward( Boolean mark=false )
Moves the cursor forward one word.
Parameter(s):
true
, the word will be added to the current selection.Since:
void : cut()
Copies the selected text into the clipboard and removes it from the editor.
Since:
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.
Since:
void : deselect()
Clears any selection in the editor.
Since:
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.Since:
Number : findItem( String text )
Search the list of items in the popup for the specified text. The search is not case sensitive.
Parameter(s):
Return Value:
DzSettings : getValidatorSettings()
Return Value:
Since:
Boolean : hasAcceptableInput()
Return Value:
true
if the input satisfies the inputMask and the validator, otherwise false
.Since:
Return Value:
true
if some or all of the text in the text field is selected, otherwise false
.Since:
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.Since:
void : insertItem( Number index, String item, Boolean validate=true )
Inserts an item with the given text to the list of options in the popup at the given index.
Parameter(s):
true
, causes the item to be checked for validity before being inserted into the list. (since 4.12.1.29)See Also:
void : insertItems( Number index, Array items, Boolean validate=true )
Inserts each of the strings in the given list to the list of options in the popup at the given index. Each item is appended to the list of existing items, from the given index, in turn.
Parameter(s):
true
, causes each item to be checked for validity before being inserted into the list. (since 4.12.1.29)See Also:
Return Value:
void : paste()
Inserts any text on the clipboard into the line at the cursor's current position.
Since:
void : redo()
If redoAvailable is true
, redoes the next operation in the editor.
Since:
void : removeItem( String item )
Removes the specified item from the list of options in the popup.
Parameter(s):
void : selectAll()
Selects all the text in the editor.
Since:
String : selectedText()
Return Value:
Since:
Number : selectionStart()
Return Value:
Since:
void : setDoubleValidator( Number bottom, Number top, Number decimals, Boolean scientific=false )
Causes this combo 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.Since:
void : setIntValidator( Number bottom, Number top )
Causes this combo edit to only accept characters that represent whole numbers (integers).
Parameter(s):
Since:
void : setRegExValidator( String rx, Boolean caseSensitive=true )
Causes this combo 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.Since:
void : setValidator( DzSettings settings )
Causes this combo 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.
Since:
void : cursorPositionChanged( Number oldPos, Number newPos )
Signature:“cursorPositionChanged(int,int)”
Emitted when the cursor moves within the field.
Parameter(s):
Since:
void : editingFinished()
Signature:“editingFinished()”
Emitted when the Return or Enter key is pressed or the line edit loses focus.
Since:
void : itemChanged( String item )
Signature:“itemChanged(const QString&)”
Emitted when the selected item has changed.
Parameter(s):
void : returnPressed()
Signature:“returnPressed()”
Emitted when the Return or Enter key is pressed.
Since:
void : selectionChanged()
Signature:“selectionChanged()”
Emitted when the selection within the field changes.
Since:
void : textChanged( String text )
Signature:“textChanged(const QString&)”
Emitted when the text has changed.
Parameter(s):
void : textEdited( String text )
Signature:“textEdited(const QString&)”
Emitted when the text is edited.
Parameter(s):
Since: