44 Class implementing the Tabnanny plugin. |
44 Class implementing the Tabnanny plugin. |
45 |
45 |
46 @signal indentChecked(str, bool, str, str) emitted when the indent |
46 @signal indentChecked(str, bool, str, str) emitted when the indent |
47 check was done. |
47 check was done. |
48 @signal batchFinished() emitted when a style check batch is done |
48 @signal batchFinished() emitted when a style check batch is done |
|
49 @signal error(str, str) emitted in case of an error |
49 """ |
50 """ |
50 indentChecked = pyqtSignal(str, bool, str, str) |
51 indentChecked = pyqtSignal(str, bool, str, str) |
51 batchFinished = pyqtSignal() |
52 batchFinished = pyqtSignal() |
|
53 error = pyqtSignal(str, str) |
52 |
54 |
53 def __init__(self, ui): |
55 def __init__(self, ui): |
54 """ |
56 """ |
55 Constructor |
57 Constructor |
56 |
58 |
83 Private slot handling service errors. |
85 Private slot handling service errors. |
84 |
86 |
85 @param fn file name (string) |
87 @param fn file name (string) |
86 @param msg message text (string) |
88 @param msg message text (string) |
87 """ |
89 """ |
88 self.indentChecked.emit(fn, True, "1", msg) |
90 self.error.emit(fn, msg) |
89 |
91 |
90 def serviceErrorPy2(self, fx, lang, fn, msg): |
92 def serviceErrorPy2(self, fx, lang, fn, msg): |
91 """ |
93 """ |
92 Public slot handling service errors for Python 2. |
94 Public slot handling service errors for Python 2. |
93 |
95 |