9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt5.QtCore import pyqtSignal, QSignalMapper, QTimer, \ |
14 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QSignalMapper, QTimer, \ |
15 QFileInfo, QRegExp, QObject, Qt, QCoreApplication |
15 QFileInfo, QRegExp, QObject, Qt, QCoreApplication |
16 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap |
16 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap |
17 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \ |
17 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \ |
18 QApplication, QMenu, QComboBox |
18 QApplication, QMenu, QComboBox |
19 from PyQt5.Qsci import QsciScintilla |
19 from PyQt5.Qsci import QsciScintilla |
6560 self.editorRenamed.emit(fn) |
6560 self.editorRenamed.emit(fn) |
6561 editor = self.sender() |
6561 editor = self.sender() |
6562 if editor: |
6562 if editor: |
6563 self.editorRenamedEd.emit(editor) |
6563 self.editorRenamedEd.emit(editor) |
6564 |
6564 |
|
6565 ## @pyqtSlot(str, int, int) |
6565 def __cursorChanged(self, fn, line, pos): |
6566 def __cursorChanged(self, fn, line, pos): |
6566 """ |
6567 """ |
6567 Private slot to handle the cursorChanged signal. |
6568 Private slot to handle the cursorChanged signal. |
6568 |
6569 |
6569 It emits the signal cursorChanged with parameter editor. |
6570 It emits the signal cursorChanged with parameter editor. |