48 Class implementing the code style checker plug-in. |
48 Class implementing the code style checker plug-in. |
49 |
49 |
50 @signal styleChecked(str, dict, int, list) emitted when the style check was |
50 @signal styleChecked(str, dict, int, list) emitted when the style check was |
51 done for a file. |
51 done for a file. |
52 @signal batchFinished() emitted when a style check batch is done |
52 @signal batchFinished() emitted when a style check batch is done |
|
53 @signal error(str, str) emitted in case of an error |
53 """ |
54 """ |
54 styleChecked = pyqtSignal(str, dict, int, list) |
55 styleChecked = pyqtSignal(str, dict, int, list) |
55 batchFinished = pyqtSignal() |
56 batchFinished = pyqtSignal() |
|
57 error = pyqtSignal(str, str) |
56 |
58 |
57 def __init__(self, ui): |
59 def __init__(self, ui): |
58 """ |
60 """ |
59 Constructor |
61 Constructor |
60 |
62 |
87 Private slot handling service errors. |
89 Private slot handling service errors. |
88 |
90 |
89 @param fn file name (string) |
91 @param fn file name (string) |
90 @param msg message text (string) |
92 @param msg message text (string) |
91 """ |
93 """ |
92 self.styleChecked.emit( |
94 self.error.emit(fn, msg) |
93 fn, {}, 0, [[1, 1, '---- ' + msg, False, False, False]]) |
|
94 |
95 |
95 def serviceErrorPy2(self, fx, lang, fn, msg): |
96 def serviceErrorPy2(self, fx, lang, fn, msg): |
96 """ |
97 """ |
97 Public slot handling service errors for Python 2. |
98 Public slot handling service errors for Python 2. |
98 |
99 |