Module implementing a compatability interface class to QextScintilla.
QextScintillaCompat | Class implementing a compatability interface to QextScintilla. |
QSCINTILLA_VERSION | Module function to return the QScintilla version. |
Class implementing a compatability interface to QextScintilla.
This class implements all the functions, that were added to QextScintilla incrementally. This class ensures compatibility to older versions of QextScintilla.
QextScintillaCompat | Constructor |
_handleModificationChanged | Private slot to handle the modificationChanged signal. |
cancelAutoCompletion | Public method to cancel autocompletion. |
clearAlternateKeys | Protected method to clear the alternate key commands. |
clearStyles | Public method to set the styles according the selected Qt style. |
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. |
editorCommand | Public method to perform a simple editor command. |
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. |
firstVisibleLine | Public method to get the line number of the first visible line. |
isAutoCompletionActive | Public method to check, if autocompletion is active. |
isModified | Public method to retrieve the modification status. |
keyPressEvent | Workaround for QScintilla <= 1.3 bug w/ keyboard layouts having a AltGr key in win32: AltGr is reported as state == Qt.ControlButton | Qt.AltButton, but QScintilla expects (Unix-style) Qt.MetaButton. |
lineAt | Public method to calculate the line at a position. |
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. |
recolor | Public method to recolor the given region. |
resetSelectionForegroundColor | Public method to reset the foreground color of the selection. |
scrollVertical | Public method to scroll the text area. |
setCaretForegroundColor | Public method to set the foreground color of the caret. |
setCaretLineBackgroundColor | Public method to set the background color of the caret line. |
setCaretLineVisible | Public method to enable the highlighting of the caret line. |
setCaretWidth | Public method to enable the highlighting of the caret line. |
setEdgeColor | Public method to set the color of the edge mode highlight. |
setEdgeColumn | Public method to set the edge column. |
setEdgeMode | Public method to set the edge mode. |
setLayoutCache | Public method to set the layout cache mode. |
setLexer | Public method to set the lexer. |
setModified | Public method to set the modification status. |
setSelectionBackgroundColor | Public method to set the background color of the selection. |
setSelectionForegroundColor | Public method to set the foreground color of the selection. |
setWrapMode | Public slot to set the wrap mode of the text display. |
setWrapVisualFlags | Public method to set the visual flags for wrapped lines. |
showUserList | Public method to show a user list. |
textHeight | Public method to get the text height. |
Constructor
Private slot to handle the modificationChanged signal.
It emits the signal modificationStatusChanged with parameters m and self.
Public method to cancel autocompletion.
Protected method to clear the alternate key commands.
Public method to set the styles according the selected Qt style.
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 perform a simple editor command.
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 get the line number of the first visible line.
Public method to check, if autocompletion is active.
Public method to retrieve the modification status.
Workaround for QScintilla <= 1.3 bug w/ keyboard layouts having a AltGr key in win32: AltGr is reported as state == Qt.ControlButton | Qt.AltButton, but QScintilla expects (Unix-style) Qt.MetaButton. Just translate states for infected QScintilla versions.
Reimplemented from QextScintilla.keyPressEvent
Author(s): Torsten Marek, 2004-08-22
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 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 recolor the given region.
Public method to reset the foreground color of the selection.
Public method to scroll the text area.
Public method to set the foreground color of the caret.
Public method to set the background color of the caret line.
Public method to enable the highlighting of the caret line.
Public method to enable the highlighting of the caret line.
Public method to set the color of the edge mode highlight.
Public method to set the edge column.
Public method to set the edge mode.
Public method to set the layout cache mode.
Public method to set the lexer.
Public method to set the modification status.
Public method to set the background color of the selection.
Public method to set the foreground color of the selection.
Public slot to set the wrap mode of the text display.
Public method to set the visual flags for wrapped lines.
Public method to show a user list.
Public method to get the text height.
Module function to return the QScintilla version.
If the installed QScintilla is a snapshot version, then assume it is of the latest release and return a version number of 0x99999.