DAZ Script | |
---|---|
CursorMoveOperation | { NoChange, Start, Up, StartOfLine, StartOfWord, PreviousLine, PreviousCharacter, PreviousWord, Left, WordLeft, End, Down, EndOfWord, EndOfLine, NextLine, NextCharacter, NextWord, Right, WordRight } |
void | blockCountChanged ( Number count ) |
void | copyAvailable ( Boolean yesNo ) |
void | cursorPositionChanged () |
void | modificationChanged ( Boolean state ) |
void | nameChanged () |
void | redoAvailable ( Boolean yesNo ) |
void | selectionChanged () |
void | textChanged () |
void | typeChanged () |
void | undoAvailable ( Boolean yesNo ) |
void | updateRequest ( Rect rect, Number dy ) |
void | versionChanged () |
Provides a widget that is used to display and edit a DAZ Script document.
Since:
Since:
Boolean : appendText( String text )
Appends text to the end of the script.
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Starts a block of editing operations as a single operation from an undo/redo perspective.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
void : centerCursor()
Scrolls the document in order to center the cursor vertically.
void : clear()
Deletes all of in the document.
Attention:
void : clearRedoStack()
Clears the redo stack.
Since:
Clears the current selection by setting the anchor to the cursor position; does not delete the text of the selection.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
void : clearUndoRedoStacks()
Clears the undo and redo stacks.
Since:
void : clearUndoStack()
Clears the undo stack.
Since:
Boolean : copySelection()
Copies the selected text to the clipboard.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : cutSelection()
Copies the selected text to the clipboard and deletes it from the script.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
If there is no text selected in the script, deletes the character at the current cursor position, otherwise deletes the selected text.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : finishEdit()
Finishes a block of editing operations as a single operation from an undo/redo perspective.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : foldLine( Number line )
Causes a foldable line to be folded (collapsed).
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Return Value:
Since:
Number : getCursorColumnNumber()
Return Value:
Since:
Number : getCursorLineNumber()
Return Value:
Since:
Return Value:
Since:
String : getFilename()
Return Value:
String : getFilepath()
Return Value:
String : getLineText( Number line )
Return Value:
Since:
Return Value:
Since:
Return Value:
Since:
Return Value:
DzVersion : getVersion()
Return Value:
Boolean : gotoLine( Number line )
Moves the cursor to the given line number.
Parameter(s):
Return Value:
true
if the script is not encrypted and the line number specified is within the range of lines in the script, otherwise false
.Boolean : indent( Number levels=1 )
Indents the selected line(s) by the specified amount.
Parameter(s):
Return Value:
true
if the script is not encrypted and the operation was successful, otherwise false
.Since:
Boolean : insertText( String text )
Inserts text at the current cursor position.
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : isCursorAtEnd()
Return Value:
true
if the cursor is at the end of the document, otherwise false
.Since:
Return Value:
true
if the cursor is at the end of the line, otherwise false
.Since:
Boolean : isCursorAtLineStart()
Return Value:
true
if the cursor is at the start of the line, otherwise false
.Since:
Return Value:
true
if the cursor is at the start of the document, otherwise false
.Since:
Boolean : isEncrypted()
Return Value:
true
if the script is encrypted, otherwise false
.Since:
Boolean : isLineFoldable( Number line )
Parameter(s):
Return Value:
true
if the script is not encrypted and line is foldable (collapsable), otherwise false
.Boolean : isLineFolded( Number line )
Parameter(s):
Return Value:
true
if the script is not encrypted and line is folded (collapsed), otherwise false
.Boolean : isModified()
Return Value:
true
if the script is in a modified state, otherwise false
.Since:
void : markText( String text, Number caseSense=0 )
Highlights occurances of specified text within the body of the script.
Parameter(s):
0
, case insensitive. If 1
, case sensitive.Boolean : moveCursorPosition( CursorMoveOperation operation, Boolean keepAnchor=false, Number iterations=1 )
Moves the cursor by performing the specified operation a given number of times; the cursor is positioned between characters.
Parameter(s):
true
, the current position of the cursor is kept as the anchor (the start of a selection). If false
, the anchor is set to the same position.Return Value:
true
if all operations were completed successfully; otherwise false
.Since:
Return Value:
true
if the contents of this tab has not been saved, the contents of this tab has been modified since the script was last saved, the version number of this tab does not match the version number last saved for the script, the script type of this tab does not match the script type last saved for the script, otherwise false
.Since:
Boolean : needsSaveAs()
Return Value:
true
if the contents of this tab has not been saved (e.g., started from an empty/new script, or was converted from an earlier deprecated format), otherwise false
.Since:
Number : numAvailableRedoSteps()
Return Value:
Since:
Number : numAvailableUndoSteps()
Return Value:
Since:
Number : numCharacters()
Return Value:
Since:
Return Value:
Since:
Boolean : pasteAtCursor()
Pastes the text from the clipboard into the script at the current cursor position.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
void : redo()
Redoes the last operation. If there is no operation to redo, nothing happens.
Boolean : reloadScript()
Causes the script to be reloaded from disk.
Return Value:
true
if a file was reloaded, otherwise false
.See Also:
Since:
Boolean : saveEncryptedScript()
Prompts the user to save the script to an encrypted file.
Return Value:
true
if a file was saved, otherwise false
.See Also:
Since:
Boolean : saveScript()
Saves the contents of this tab to file, prompting as needed.
Return Value:
true
if a file was saved, otherwise false
.See Also:
Since:
Boolean : saveScriptAs()
Prompts the user to save the script.
Return Value:
true
if a file was saved, otherwise false
.See Also:
Since:
Boolean : selectAllText()
Selects all text in the script.
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
void : setCursorPosition( Number pos, Boolean keepAnchor=false )
Moves the cursor to the absolute position in the script specified by pos
; the cursor is positioned between characters.
Parameter(s):
true
, the text between the current position and the new position is selected. If false
, no text is selected.void : setCursorPosition( Number line, Number column, Boolean keepAnchor=false )
Moves the cursor to the position specified in the script; the cursor is positioned between characters.
Parameter(s):
true
, the text between the current position and the new position is selected. If false
, no text is selected.Since:
Boolean : setLineText( Number line, String text )
Sets the text of the specified line in the script.
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : setText( String text )
Sets the text of the script.
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Since:
Boolean : setType( String type )
Sets the type of the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the type is different, otherwise false
.Since:
Boolean : setVersion( DzVersion version )
Sets the version for the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the version is different, otherwise false
.Since:
Boolean : setVersionBuild( Number build )
Sets the build number of the version for the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the build number is different, otherwise false
.Boolean : setVersionMajor( Number major )
Sets the major number of the version for the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the major number is different, otherwise false
.Boolean : setVersionMinor( Number minor )
Sets the minor number of the version for the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the minor number is different, otherwise false
.Boolean : setVersionRevision( Number revision )
Sets the revision number of the version for the script.
Parameter(s):
Return Value:
true
if the script is not encrypted and the revision number is different, otherwise false
.Boolean : toggleFold( Number line )
Toggles the folded/unfolded (collapsed/expanded) state of a foldable line.
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.void : undo()
Undoes the last operation. If there is no operation to undo, nothing happens.
Boolean : unfoldLine( Number line )
Causes a foldable line to be unfolded (expanded).
Parameter(s):
Return Value:
true
if the script is not encrypted, otherwise false
.Boolean : unindent( Number levels=1 )
Unindent the selected line(s) by the specified amount.
Parameter(s):
Return Value:
true
if the script is not encrypted and the operation was successful, otherwise false
.Since:
void : updateSidebar()
Forces the sidebar (the area on the left of the script that displays line numbers and folding points) to be updated.
void : blockCountChanged( Number count )
Signature:“blockCountChanged(int)”
Emitted when the block count (number of lines) has changed.
Parameter(s):
void : copyAvailable( Boolean yesNo )
Signature:“copyAvailable(bool)”
Emitted when text is selected or de-selected.
Parameter(s):
void : cursorPositionChanged()
Signature:“cursorPositionChanged()”
Emitted when the position of the text cursor has changed.
void : modificationChanged( Boolean state )
Signature:“modificationChanged(bool)”
Emitted when the content of the document changes in a way that affects the modification state.
Parameter(s):
void : nameChanged()
Signature:“nameChanged()”
Emitted when the name of the script has changed.
void : redoAvailable( Boolean yesNo )
Signature:“redoAvailable(bool)”
Emitted when redo operations become available/un-available.
Parameter(s):
void : selectionChanged()
Signature:“selectionChanged()”
Emitted when text selection has changed.
void : textChanged()
Signature:“textChanged()”
Emitted when the text of the document has changed.
void : typeChanged()
Signature:“typeChanged()”
Emitted when the type of the script has changed.
void : undoAvailable( Boolean yesNo )
Signature:“undoAvailable(bool)”
Emitted when undo operations become available/un-available.
Parameter(s):
void : updateRequest( Rect rect, Number dy )
Signature:“updateRequest(const QRect&,int)”
Emitted when the document needs an update of the specified area.
Parameter(s):
void : versionChanged()
Signature:“versionChanged()”
Emitted when the version of the script has changed.