Module implementing a compatability interface class to QsciScintilla.
None |
QsciScintillaCompat | Class implementing a compatability interface to QsciScintilla. |
QSCINTILLA_VERSION | Module function to return the QScintilla version. |
Class implementing a compatability interface to QsciScintilla.
This class implements all the functions, that were added to QsciScintilla incrementally. This class ensures compatibility to older versions of QsciScintilla.
ArrowFoldStyle |
ArrowTreeFoldStyle |
IndicatorStyleMax |
UserSeparator |
None |
QsciScintillaCompat | Constructor |
__completionListSelected | Private slot to handle the selection from the completion list. |
__doSearchTarget | Private method to perform the search in target. |
__modificationChanged | Private slot to handle the modificationChanged signal. |
__setFoldMarker | Private method to define a fold marker. |
_encodeString | Protected method to encode a string depending on the current mode. |
autoCompleteFromAPIs | Public method to resize list box after creation. |
autoCompleteFromAll | Public method to resize list box after creation. |
autoCompleteFromDocument | Public method to resize list box after creation. |
byteAt | Public method to get the raw character (bytes) at a position in the text. |
canPaste | Public method to test, if the paste action is available (i.e. |
charAt | Public method to get the character at a position in the text observing multibyte characters. |
clearAllIndicators | Public method to clear all occurrences of an indicator. |
clearAlternateKeys | Public method to clear the alternate key commands. |
clearIndicator | Public method to clear an indicator for the given range. |
clearIndicatorRange | Public method to clear an indicator for the given range. |
clearKeys | Public method to clear the key commands. |
clearStyles | Public method to set the styles according the selected Qt style. |
contractedFolds | Public method to get a list of line numbers of collapsed folds. |
currentPosition | Public method to get the current position. |
currentStyle | Public method to get the style at the current position. |
delete | Public method to delete the character to the right of the cursor. |
deleteBack | Public method to delete the character to the left of the cursor. |
deleteLineLeft | Public method to delete the line to the left of the cursor. |
deleteLineRight | Public method to delete the line to the right of the cursor. |
deleteWordLeft | Public method to delete the word to the left of the cursor. |
deleteWordRight | Public method to delete the word to the right of the cursor. |
detectEolString | Public method to determine the eol string used. |
editorCommand | Public method to perform a simple editor command. |
event | Public method to handle events. |
extendSelectionLeft | Public method to extend the selection one character to the left. |
extendSelectionRight | Public method to extend the selection one character to the right. |
extendSelectionToBOL | Public method to extend the selection to the beginning of the line. |
extendSelectionToEOL | Public method to extend the selection to the end of the line. |
extendSelectionWordLeft | Public method to extend the selection one word to the left. |
extendSelectionWordRight | Public method to extend the selection one word to the right. |
findFirst | Public method to search in the current editor text. |
findFirstTarget | Public method to search in a specified range of text without setting the selection. |
findNextTarget | Public method to find the next occurrence in the target range. |
flashFindIndicator | Public method to flash the find indicator for the given range. |
focusOutEvent | Protected method called when the editor loses focus. |
foldExpandedAt | Public method to determine, if a fold is expanded. |
foldFlagsAt | Public method to get the fold flags of a line of the document. |
foldHeaderAt | Public method to determine, if a line of the document is a fold header line. |
foldLevelAt | Public method to get the fold level of a line of the document. |
getCaretLineAlwaysVisible | Public method to determine, if the caret line is visible even if the editor doesn't have the focus. |
getCursorFlashTime | Public method to get the flash (blink) time of the cursor in milliseconds. |
getDocLineFromVisibleLine | Public method to convert a visible line number to a document line number (i.e. |
getEndStyled | Public method to get the last styled position. |
getEolIndicator | Public method to get the eol indicator for the current eol mode. |
getFileName | Public method to return the name of the file being displayed. |
getFoundTarget | Public method to get the recently found target. |
getIndicatorEndPos | Public method to get the end position of an indicator at a position. |
getIndicatorStartPos | Public method to get the start position of an indicator at a position. |
getLineSeparator | Public method to get the line separator for the current eol mode. |
getRectangularSelection | Public method to retrieve the start and end of a rectangular selection. |
getSelectionCount | Public method to get the number of active selections. |
getSelectionN | Public method to get the start and end of a selection given by its index. |
getSelections | Public method to get the start and end coordinates of all active selections. |
getVisibleLineFromDocLine | Public method to convert a document line number to a visible line number (i.e. |
getZoom | Public method used to retrieve the current zoom factor. |
gotoNextIndicator | Public method to move the cursor to the next position of an indicator. |
gotoPreviousIndicator | Public method to move the cursor to the previous position of an indicator. |
hasIndicator | Public method to test for the existence of an indicator. |
hasSelectedText | Public method to indicate the presence of selected text. |
hasSelection | Public method to check for a selection. |
hideFindIndicator | Public method to hide the find indicator. |
indentationGuideView | Public method to get the indentation guide view. |
indicatorDefine | Public method to define the appearance of an indicator. |
insert | Public method to insert text at the cursor position. |
isModified | Public method to return the modification status. |
lineAt | Public method to calculate the line at a position. |
lineEndPosition | Public method to determine the line end position of the given line. |
lineIndexFromPosition | Public method to convert an absolute position to line and index. |
linesOnScreen | Public method to get the amount of visible lines. |
monospacedStyles | Public method to set the current style to be monospaced. |
moveCursorLeft | Public method to move the cursor left. |
moveCursorRight | Public method to move the cursor right. |
moveCursorToEOL | Public method to move the cursor to the end of line. |
moveCursorWordLeft | Public method to move the cursor left one word. |
moveCursorWordRight | Public method to move the cursor right one word. |
newLineBelow | Public method to insert a new line below the current one. |
positionAfter | Public method to get the position after the given position taking into account multibyte characters. |
positionBefore | Public method to get the position before the given position taking into account multibyte characters. |
positionFromLineIndex | Public method to convert line and index to an absolute position. |
positionFromPoint | Public method to calculate the scintilla position from a point in the window. |
replaceTarget | Public method to replace the string found by the last search in target. |
scrollVertical | Public method to scroll the text area. |
selectionIsRectangle | Public method to check, if the current selection is rectangular. |
setCaretLineAlwaysVisible | Public method to set the caret line visible even if the editor doesn't have the focus. |
setContractedFolds | Public method to set a list of line numbers of collapsed folds. |
setCurrentIndicator | Public method to set the current indicator. |
setCursorFlashTime | Public method to set the flash (blink) time of the cursor in milliseconds. |
setEolModeByEolString | Public method to set the eol mode given the eol string. |
setFoldMarkersColors | Public method to set the foreground and background colors of the fold markers. |
setFolding | Public method to set the folding style and margin. |
setIndentationGuideView | Public method to set the view of the indentation guides. |
setIndicator | Public method to set an indicator for the given range. |
setIndicatorRange | Public method to set an indicator for the given range. |
setLexer | Public method to set the lexer. |
setModified | Public slot to set the modification status. |
setRectangularSelection | Public method to set a rectangular selection. |
setStyling | Public method to style some text. |
setVirtualSpaceOptions | Public method to set the virtual space usage options. |
setWrapStartIndent | Public method to set a the amount of characters wrapped sublines shall be indented. |
showFindIndicator | Public method to show the find indicator for the given range. |
showUserList | Public method to show a user supplied list. |
startStyling | Public method to prepare styling. |
styleAt | Public method to get the style at a position in the text. |
updateUserListSize | Public method to resize the completion list to fit with contents. |
updateVerticalScrollBar | Public method to update the vertical scroll bar to reflect the additional lines added by annotations. |
zoomIn | Public method used to increase the zoom factor. |
zoomOut | Public method used to decrease the zoom factor. |
zoomTo | Public method used to zoom to a specific zoom factor. |
None |
Constructor
Private slot to handle the selection from the completion list.
Note: This works around an issue of some window managers taking focus away from the application when clicked inside a completion list but not giving it back when an item is selected via a double-click.
Private method to perform the search in target.
Private slot to handle the modificationChanged signal.
Private method to define a fold marker.
Protected method to encode a string depending on the current mode.
Public method to resize list box after creation.
Public method to resize list box after creation.
Public method to resize list box after creation.
Public method to get the raw character (bytes) at a position in the text.
Public method to test, if the paste action is available (i.e. if the clipboard contains some text).
Public method to get the character at a position in the text observing multibyte characters.
Public method to clear all occurrences of an indicator.
Public method to clear the alternate key commands.
Public method to clear an indicator for the given range.
Public method to clear an indicator for the given range.
Public method to clear the key commands.
Public method to set the styles according the selected Qt style.
Public method to get a list of line numbers of collapsed folds.
Public method to get the current position.
Public method to get the style at the current position.
Public method to delete the character to the right of the cursor.
Public method to delete the character to the left of the cursor.
Public method to delete the line to the left of the cursor.
Public method to delete the line to the right of the cursor.
Public method to delete the word to the left of the cursor.
Public method to delete the word to the right of the cursor.
Public method to determine the eol string used.
Public method to perform a simple editor command.
Public method to handle events.
Note: We are not interested in the standard QsciScintilla event handling because we do it ourselves.
Public method to extend the selection one character to the left.
Public method to extend the selection one character to the right.
Public method to extend the selection to the beginning of the line.
Public method to extend the selection to the end of the line.
Public method to extend the selection one word to the left.
Public method to extend the selection one word to the right.
Public method to search in the current editor text.
Public method to search in a specified range of text without setting the selection.
Public method to find the next occurrence in the target range.
Public method to flash the find indicator for the given range.
Protected method called when the editor loses focus.
Public method to determine, if a fold is expanded.
Public method to get the fold flags of a line of the document.
Public method to determine, if a line of the document is a fold header line.
Public method to get the fold level of a line of the document.
Public method to determine, if the caret line is visible even if the editor doesn't have the focus.
Public method to get the flash (blink) time of the cursor in milliseconds.
The flash time is the time required to display, invert and restore the caret display. Usually the text cursor is displayed for half the cursor flash time, then hidden for the same amount of time.
Public method to convert a visible line number to a document line number (i.e. respect folded lines and annotations).
Public method to get the last styled position.
Public method to get the eol indicator for the current eol mode.
Public method to return the name of the file being displayed.
Public method to get the recently found target.
Public method to get the end position of an indicator at a position.
Public method to get the start position of an indicator at a position.
Public method to get the line separator for the current eol mode.
Public method to retrieve the start and end of a rectangular selection.
Public method to get the number of active selections.
Public method to get the start and end of a selection given by its index.
Public method to get the start and end coordinates of all active selections.
Public method to convert a document line number to a visible line number (i.e. respect folded lines and annotations).
Public method used to retrieve the current zoom factor.
Public method to move the cursor to the next position of an indicator.
This method ensures, that the position found is visible (i.e. unfolded and inside the visible range). The text containing the indicator is selected.
Public method to move the cursor to the previous position of an indicator.
This method ensures, that the position found is visible (i.e. unfolded and inside the visible range). The text containing the indicator is selected.
Public method to test for the existence of an indicator.
Public method to indicate the presence of selected text.
This is an overriding method to cope with a bug in QsciScintilla.
Public method to check for a selection.
Public method to hide the find indicator.
Public method to get the indentation guide view.
Public method to define the appearance of an indicator.
Public method to insert text at the cursor position.
Public method to return the modification status.
Public method to calculate the line at a position.
This variant is able to calculate the line for positions in the margins and for empty lines.
Public method to determine the line end position of the given line.
Public method to convert an absolute position to line and index.
Public method to get the amount of visible lines.
Public method to set the current style to be monospaced.
Public method to move the cursor left.
Public method to move the cursor right.
Public method to move the cursor to the end of line.
Public method to move the cursor left one word.
Public method to move the cursor right one word.
Public method to insert a new line below the current one.
Public method to get the position after the given position taking into account multibyte characters.
Public method to get the position before the given position taking into account multibyte characters.
Public method to convert line and index to an absolute position.
Public method to calculate the scintilla position from a point in the window.
Public method to replace the string found by the last search in target.
Public method to scroll the text area.
Public method to check, if the current selection is rectangular.
Public method to set the caret line visible even if the editor doesn't have the focus.
Public method to set a list of line numbers of collapsed folds.
Public method to set the current indicator.
Public method to set the flash (blink) time of the cursor in milliseconds.
The flash time is the time required to display, invert and restore the caret display. Usually the text cursor is displayed for half the cursor flash time, then hidden for the same amount of time.
Public method to set the eol mode given the eol string.
Public method to set the foreground and background colors of the fold markers.
Public method to set the folding style and margin.
Public method to set the view of the indentation guides.
Public method to set an indicator for the given range.
Public method to set an indicator for the given range.
Public method to set the lexer.
Public slot to set the modification status.
Public method to set a rectangular selection.
Public method to style some text.
Public method to set the virtual space usage options.
Public method to set a the amount of characters wrapped sublines shall be indented.
Public method to show the find indicator for the given range.
Public method to show a user supplied list.
Public method to prepare styling.
Public method to get the style at a position in the text.
Public method to resize the completion list to fit with contents.
Public method to update the vertical scroll bar to reflect the additional lines added by annotations.
Public method used to increase the zoom factor.
Public method used to decrease the zoom factor.
Public method used to zoom to a specific zoom factor.
Module function to return the QScintilla version.