QScintilla/Editor.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2677
3d4277929fb3
parent 2768
eab35f6e709f
child 3056
9986ec0e559a
equal deleted inserted replaced
2790:6686a3326df8 2791:a9577f248f04
46 modification status has changed 46 modification status has changed
47 @signal undoAvailable(bool) emitted to signal the undo availability 47 @signal undoAvailable(bool) emitted to signal the undo availability
48 @signal redoAvailable(bool) emitted to signal the redo availability 48 @signal redoAvailable(bool) emitted to signal the redo availability
49 @signal cursorChanged(str, int, int) emitted when the cursor position 49 @signal cursorChanged(str, int, int) emitted when the cursor position
50 was changed 50 was changed
51 @signal cursorLineChanged(int) emitted when the cursor line was changed
51 @signal editorAboutToBeSaved(str) emitted before the editor is saved 52 @signal editorAboutToBeSaved(str) emitted before the editor is saved
52 @signal editorSaved(str) emitted after the editor has been saved 53 @signal editorSaved(str) emitted after the editor has been saved
53 @signal editorRenamed(str) emitted after the editor got a new name 54 @signal editorRenamed(str) emitted after the editor got a new name
54 (i.e. after a 'Save As') 55 (i.e. after a 'Save As')
55 @signal captionChanged(str, QsciScintillaCompat) emitted when the caption is 56 @signal captionChanged(str, QsciScintillaCompat) emitted when the caption is
80 """ 81 """
81 modificationStatusChanged = pyqtSignal(bool, QsciScintillaCompat) 82 modificationStatusChanged = pyqtSignal(bool, QsciScintillaCompat)
82 undoAvailable = pyqtSignal(bool) 83 undoAvailable = pyqtSignal(bool)
83 redoAvailable = pyqtSignal(bool) 84 redoAvailable = pyqtSignal(bool)
84 cursorChanged = pyqtSignal(str, int, int) 85 cursorChanged = pyqtSignal(str, int, int)
86 cursorLineChanged = pyqtSignal(int)
85 editorAboutToBeSaved = pyqtSignal(str) 87 editorAboutToBeSaved = pyqtSignal(str)
86 editorSaved = pyqtSignal(str) 88 editorSaved = pyqtSignal(str)
87 editorRenamed = pyqtSignal(str) 89 editorRenamed = pyqtSignal(str)
88 captionChanged = pyqtSignal(str, QsciScintillaCompat) 90 captionChanged = pyqtSignal(str, QsciScintillaCompat)
89 breakpointToggled = pyqtSignal(QsciScintillaCompat) 91 breakpointToggled = pyqtSignal(QsciScintillaCompat)
1583 1585
1584 if Preferences.getEditor("MarkOccurrencesEnabled"): 1586 if Preferences.getEditor("MarkOccurrencesEnabled"):
1585 self.__markOccurrencesTimer.stop() 1587 self.__markOccurrencesTimer.stop()
1586 self.__markOccurrencesTimer.start() 1588 self.__markOccurrencesTimer.start()
1587 1589
1590 if self.lastLine != line:
1591 self.cursorLineChanged.emit(line)
1592
1588 if self.spell is not None: 1593 if self.spell is not None:
1589 # do spell checking 1594 # do spell checking
1590 doSpelling = True 1595 doSpelling = True
1591 if self.lastLine == line: 1596 if self.lastLine == line:
1592 start, end = self.getWordBoundaries(line, index, useWordChars=False) 1597 start, end = self.getWordBoundaries(line, index, useWordChars=False)

eric ide

mercurial