QScintilla/Editor.py

changeset 2768
eab35f6e709f
parent 2659
7f46c5a7ed73
child 2791
a9577f248f04
child 2900
04a13651238e
equal deleted inserted replaced
2766:c413e9eeaf95 2768:eab35f6e709f
39 modification status has changed 39 modification status has changed
40 @signal undoAvailable(bool) emitted to signal the undo availability 40 @signal undoAvailable(bool) emitted to signal the undo availability
41 @signal redoAvailable(bool) emitted to signal the redo availability 41 @signal redoAvailable(bool) emitted to signal the redo availability
42 @signal cursorChanged(str, int, int) emitted when the cursor position 42 @signal cursorChanged(str, int, int) emitted when the cursor position
43 was changed 43 was changed
44 @signal cursorLineChanged(int) emitted when the cursor line was changed
44 @signal editorAboutToBeSaved(str) emitted before the editor is saved 45 @signal editorAboutToBeSaved(str) emitted before the editor is saved
45 @signal editorSaved(str) emitted after the editor has been saved 46 @signal editorSaved(str) emitted after the editor has been saved
46 @signal editorRenamed(str) emitted after the editor got a new name 47 @signal editorRenamed(str) emitted after the editor got a new name
47 (i.e. after a 'Save As') 48 (i.e. after a 'Save As')
48 @signal captionChanged(str, QsciScintillaCompat) emitted when the caption is 49 @signal captionChanged(str, QsciScintillaCompat) emitted when the caption is
73 """ 74 """
74 modificationStatusChanged = pyqtSignal(bool, QsciScintillaCompat) 75 modificationStatusChanged = pyqtSignal(bool, QsciScintillaCompat)
75 undoAvailable = pyqtSignal(bool) 76 undoAvailable = pyqtSignal(bool)
76 redoAvailable = pyqtSignal(bool) 77 redoAvailable = pyqtSignal(bool)
77 cursorChanged = pyqtSignal(str, int, int) 78 cursorChanged = pyqtSignal(str, int, int)
79 cursorLineChanged = pyqtSignal(int)
78 editorAboutToBeSaved = pyqtSignal(str) 80 editorAboutToBeSaved = pyqtSignal(str)
79 editorSaved = pyqtSignal(str) 81 editorSaved = pyqtSignal(str)
80 editorRenamed = pyqtSignal(str) 82 editorRenamed = pyqtSignal(str)
81 captionChanged = pyqtSignal(str, QsciScintillaCompat) 83 captionChanged = pyqtSignal(str, QsciScintillaCompat)
82 breakpointToggled = pyqtSignal(QsciScintillaCompat) 84 breakpointToggled = pyqtSignal(QsciScintillaCompat)
1576 1578
1577 if Preferences.getEditor("MarkOccurrencesEnabled"): 1579 if Preferences.getEditor("MarkOccurrencesEnabled"):
1578 self.__markOccurrencesTimer.stop() 1580 self.__markOccurrencesTimer.stop()
1579 self.__markOccurrencesTimer.start() 1581 self.__markOccurrencesTimer.start()
1580 1582
1583 if self.lastLine != line:
1584 self.cursorLineChanged.emit(line)
1585
1581 if self.spell is not None: 1586 if self.spell is not None:
1582 # do spell checking 1587 # do spell checking
1583 doSpelling = True 1588 doSpelling = True
1584 if self.lastLine == line: 1589 if self.lastLine == line:
1585 start, end = self.getWordBoundaries(line, index, useWordChars=False) 1590 start, end = self.getWordBoundaries(line, index, useWordChars=False)

eric ide

mercurial