5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>Plugin_Checker_PyLint.PluginPyLint</h1> |
9 <h1>Plugin_Checker_PyLint.PluginPyLint</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the PyLint plug-in. |
11 Module implementing the PyLint plug-in. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>__header__</td></tr> |
17 <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>exePy3</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> |
17 <tr><td>error</td></tr> |
18 </table> |
18 <tr><td>exePy3</td></tr> |
|
19 </table> |
|
20 |
19 <h3>Classes</h3> |
21 <h3>Classes</h3> |
20 |
22 <table> |
21 <table> |
|
22 |
|
23 <tr> |
23 <tr> |
24 <td><a href="#PyLintPlugin">PyLintPlugin</a></td> |
24 <td><a href="#PyLintPlugin">PyLintPlugin</a></td> |
25 <td>Class implementing the PyLint plug-in.</td> |
25 <td>Class implementing the PyLint plug-in.</td> |
26 </tr> |
26 </tr> |
27 </table> |
27 </table> |
|
28 |
28 <h3>Functions</h3> |
29 <h3>Functions</h3> |
29 |
30 <table> |
30 <table> |
|
31 |
|
32 <tr> |
31 <tr> |
33 <td><a href="#__getProgramVersion">__getProgramVersion</a></td> |
32 <td><a href="#__getProgramVersion">__getProgramVersion</a></td> |
34 <td>Private method to generate a program entry.</td> |
33 <td>Private method to generate a program entry.</td> |
35 </tr> |
34 </tr> |
36 <tr> |
35 <tr> |
52 <tr> |
51 <tr> |
53 <td><a href="#installDependencies">installDependencies</a></td> |
52 <td><a href="#installDependencies">installDependencies</a></td> |
54 <td>Function to install dependencies of this plug-in.</td> |
53 <td>Function to install dependencies of this plug-in.</td> |
55 </tr> |
54 </tr> |
56 </table> |
55 </table> |
|
56 |
57 <hr /> |
57 <hr /> |
58 <hr /> |
58 <hr /> |
59 <a NAME="PyLintPlugin" ID="PyLintPlugin"></a> |
59 <a NAME="PyLintPlugin" ID="PyLintPlugin"></a> |
60 <h2>PyLintPlugin</h2> |
60 <h2>PyLintPlugin</h2> |
61 |
|
62 <p> |
61 <p> |
63 Class implementing the PyLint plug-in. |
62 Class implementing the PyLint plug-in. |
64 </p> |
63 </p> |
|
64 |
65 <h3>Derived from</h3> |
65 <h3>Derived from</h3> |
66 QObject |
66 QObject |
67 <h3>Class Attributes</h3> |
67 <h3>Class Attributes</h3> |
68 |
|
69 <table> |
68 <table> |
70 <tr><td>None</td></tr> |
69 <tr><td>None</td></tr> |
71 </table> |
70 </table> |
|
71 |
72 <h3>Class Methods</h3> |
72 <h3>Class Methods</h3> |
73 |
|
74 <table> |
73 <table> |
75 <tr><td>None</td></tr> |
74 <tr><td>None</td></tr> |
76 </table> |
75 </table> |
|
76 |
77 <h3>Methods</h3> |
77 <h3>Methods</h3> |
78 |
78 <table> |
79 <table> |
|
80 |
|
81 <tr> |
79 <tr> |
82 <td><a href="#PyLintPlugin.__init__">PyLintPlugin</a></td> |
80 <td><a href="#PyLintPlugin.__init__">PyLintPlugin</a></td> |
83 <td>Constructor</td> |
81 <td>Constructor</td> |
84 </tr> |
82 </tr> |
85 <tr> |
83 <tr> |
141 <tr> |
139 <tr> |
142 <td><a href="#PyLintPlugin.deactivate">deactivate</a></td> |
140 <td><a href="#PyLintPlugin.deactivate">deactivate</a></td> |
143 <td>Public method to deactivate this plugin.</td> |
141 <td>Public method to deactivate this plugin.</td> |
144 </tr> |
142 </tr> |
145 </table> |
143 </table> |
|
144 |
146 <h3>Static Methods</h3> |
145 <h3>Static Methods</h3> |
147 |
|
148 <table> |
146 <table> |
149 <tr><td>None</td></tr> |
147 <tr><td>None</td></tr> |
150 </table> |
148 </table> |
|
149 |
151 |
150 |
152 <a NAME="PyLintPlugin.__init__" ID="PyLintPlugin.__init__"></a> |
151 <a NAME="PyLintPlugin.__init__" ID="PyLintPlugin.__init__"></a> |
153 <h4>PyLintPlugin (Constructor)</h4> |
152 <h4>PyLintPlugin (Constructor)</h4> |
154 <b>PyLintPlugin</b>(<i>ui</i>) |
153 <b>PyLintPlugin</b>(<i>ui</i>) |
155 |
|
156 <p> |
154 <p> |
157 Constructor |
155 Constructor |
158 </p> |
156 </p> |
|
157 |
159 <dl> |
158 <dl> |
160 |
159 |
161 <dt><i>ui</i> (UserInterface)</dt> |
160 <dt><i>ui</i> (UserInterface)</dt> |
162 <dd> |
161 <dd> |
163 reference to the user interface object |
162 reference to the user interface object |
164 </dd> |
163 </dd> |
165 </dl> |
164 </dl> |
166 <a NAME="PyLintPlugin.__editorClosed" ID="PyLintPlugin.__editorClosed"></a> |
165 <a NAME="PyLintPlugin.__editorClosed" ID="PyLintPlugin.__editorClosed"></a> |
167 <h4>PyLintPlugin.__editorClosed</h4> |
166 <h4>PyLintPlugin.__editorClosed</h4> |
168 <b>__editorClosed</b>(<i>editor</i>) |
167 <b>__editorClosed</b>(<i>editor</i>) |
169 |
|
170 <p> |
168 <p> |
171 Private slot called, when an editor was closed. |
169 Private slot called, when an editor was closed. |
172 </p> |
170 </p> |
|
171 |
173 <dl> |
172 <dl> |
174 |
173 |
175 <dt><i>editor</i> (Editor)</dt> |
174 <dt><i>editor</i> (Editor)</dt> |
176 <dd> |
175 <dd> |
177 reference to the editor |
176 reference to the editor |
178 </dd> |
177 </dd> |
179 </dl> |
178 </dl> |
180 <a NAME="PyLintPlugin.__editorOpened" ID="PyLintPlugin.__editorOpened"></a> |
179 <a NAME="PyLintPlugin.__editorOpened" ID="PyLintPlugin.__editorOpened"></a> |
181 <h4>PyLintPlugin.__editorOpened</h4> |
180 <h4>PyLintPlugin.__editorOpened</h4> |
182 <b>__editorOpened</b>(<i>editor</i>) |
181 <b>__editorOpened</b>(<i>editor</i>) |
183 |
|
184 <p> |
182 <p> |
185 Private slot called, when a new editor was opened. |
183 Private slot called, when a new editor was opened. |
186 </p> |
184 </p> |
|
185 |
187 <dl> |
186 <dl> |
188 |
187 |
189 <dt><i>editor</i> (Editor)</dt> |
188 <dt><i>editor</i> (Editor)</dt> |
190 <dd> |
189 <dd> |
191 reference to the new editor |
190 reference to the new editor |
192 </dd> |
191 </dd> |
193 </dl> |
192 </dl> |
194 <a NAME="PyLintPlugin.__editorPylint" ID="PyLintPlugin.__editorPylint"></a> |
193 <a NAME="PyLintPlugin.__editorPylint" ID="PyLintPlugin.__editorPylint"></a> |
195 <h4>PyLintPlugin.__editorPylint</h4> |
194 <h4>PyLintPlugin.__editorPylint</h4> |
196 <b>__editorPylint</b>(<i></i>) |
195 <b>__editorPylint</b>(<i></i>) |
197 |
|
198 <p> |
196 <p> |
199 Private slot to handle the Pylint context menu action of the editors. |
197 Private slot to handle the Pylint context menu action of the editors. |
200 </p> |
198 </p> |
|
199 |
201 <a NAME="PyLintPlugin.__editorShowMenu" ID="PyLintPlugin.__editorShowMenu"></a> |
200 <a NAME="PyLintPlugin.__editorShowMenu" ID="PyLintPlugin.__editorShowMenu"></a> |
202 <h4>PyLintPlugin.__editorShowMenu</h4> |
201 <h4>PyLintPlugin.__editorShowMenu</h4> |
203 <b>__editorShowMenu</b>(<i>menuName, menu, editor</i>) |
202 <b>__editorShowMenu</b>(<i>menuName, menu, editor</i>) |
204 |
|
205 <p> |
203 <p> |
206 Private slot called, when the the editor context menu or a submenu is |
204 Private slot called, when the the editor context menu or a submenu is |
207 about to be shown. |
205 about to be shown. |
208 </p> |
206 </p> |
|
207 |
209 <dl> |
208 <dl> |
210 |
209 |
211 <dt><i>menuName</i> (str)</dt> |
210 <dt><i>menuName</i> (str)</dt> |
212 <dd> |
211 <dd> |
213 name of the menu to be shown |
212 name of the menu to be shown |
222 </dd> |
221 </dd> |
223 </dl> |
222 </dl> |
224 <a NAME="PyLintPlugin.__initialize" ID="PyLintPlugin.__initialize"></a> |
223 <a NAME="PyLintPlugin.__initialize" ID="PyLintPlugin.__initialize"></a> |
225 <h4>PyLintPlugin.__initialize</h4> |
224 <h4>PyLintPlugin.__initialize</h4> |
226 <b>__initialize</b>(<i></i>) |
225 <b>__initialize</b>(<i></i>) |
227 |
|
228 <p> |
226 <p> |
229 Private slot to (re)initialize the plugin. |
227 Private slot to (re)initialize the plugin. |
230 </p> |
228 </p> |
|
229 |
231 <a NAME="PyLintPlugin.__loadTranslator" ID="PyLintPlugin.__loadTranslator"></a> |
230 <a NAME="PyLintPlugin.__loadTranslator" ID="PyLintPlugin.__loadTranslator"></a> |
232 <h4>PyLintPlugin.__loadTranslator</h4> |
231 <h4>PyLintPlugin.__loadTranslator</h4> |
233 <b>__loadTranslator</b>(<i></i>) |
232 <b>__loadTranslator</b>(<i></i>) |
234 |
|
235 <p> |
233 <p> |
236 Private method to load the translation file. |
234 Private method to load the translation file. |
237 </p> |
235 </p> |
|
236 |
238 <a NAME="PyLintPlugin.__projectBrowserPylint" ID="PyLintPlugin.__projectBrowserPylint"></a> |
237 <a NAME="PyLintPlugin.__projectBrowserPylint" ID="PyLintPlugin.__projectBrowserPylint"></a> |
239 <h4>PyLintPlugin.__projectBrowserPylint</h4> |
238 <h4>PyLintPlugin.__projectBrowserPylint</h4> |
240 <b>__projectBrowserPylint</b>(<i></i>) |
239 <b>__projectBrowserPylint</b>(<i></i>) |
241 |
|
242 <p> |
240 <p> |
243 Private method to handle the Pylint context menu action of the project |
241 Private method to handle the Pylint context menu action of the project |
244 sources browser. |
242 sources browser. |
245 </p> |
243 </p> |
|
244 |
246 <a NAME="PyLintPlugin.__projectBrowserPylintShow" ID="PyLintPlugin.__projectBrowserPylintShow"></a> |
245 <a NAME="PyLintPlugin.__projectBrowserPylintShow" ID="PyLintPlugin.__projectBrowserPylintShow"></a> |
247 <h4>PyLintPlugin.__projectBrowserPylintShow</h4> |
246 <h4>PyLintPlugin.__projectBrowserPylintShow</h4> |
248 <b>__projectBrowserPylintShow</b>(<i></i>) |
247 <b>__projectBrowserPylintShow</b>(<i></i>) |
249 |
|
250 <p> |
248 <p> |
251 Private slot to show the PyLint dialog with the results of the last |
249 Private slot to show the PyLint dialog with the results of the last |
252 run. |
250 run. |
253 </p> |
251 </p> |
|
252 |
254 <a NAME="PyLintPlugin.__projectBrowserShowMenu" ID="PyLintPlugin.__projectBrowserShowMenu"></a> |
253 <a NAME="PyLintPlugin.__projectBrowserShowMenu" ID="PyLintPlugin.__projectBrowserShowMenu"></a> |
255 <h4>PyLintPlugin.__projectBrowserShowMenu</h4> |
254 <h4>PyLintPlugin.__projectBrowserShowMenu</h4> |
256 <b>__projectBrowserShowMenu</b>(<i>menuName, menu</i>) |
255 <b>__projectBrowserShowMenu</b>(<i>menuName, menu</i>) |
257 |
|
258 <p> |
256 <p> |
259 Private slot called, when the the project browser menu or a submenu is |
257 Private slot called, when the the project browser menu or a submenu is |
260 about to be shown. |
258 about to be shown. |
261 </p> |
259 </p> |
|
260 |
262 <dl> |
261 <dl> |
263 |
262 |
264 <dt><i>menuName</i> (str)</dt> |
263 <dt><i>menuName</i> (str)</dt> |
265 <dd> |
264 <dd> |
266 name of the menu to be shown |
265 name of the menu to be shown |
271 </dd> |
270 </dd> |
272 </dl> |
271 </dl> |
273 <a NAME="PyLintPlugin.__projectPylint" ID="PyLintPlugin.__projectPylint"></a> |
272 <a NAME="PyLintPlugin.__projectPylint" ID="PyLintPlugin.__projectPylint"></a> |
274 <h4>PyLintPlugin.__projectPylint</h4> |
273 <h4>PyLintPlugin.__projectPylint</h4> |
275 <b>__projectPylint</b>(<i></i>) |
274 <b>__projectPylint</b>(<i></i>) |
276 |
|
277 <p> |
275 <p> |
278 Private slot used to check the project files with Pylint. |
276 Private slot used to check the project files with Pylint. |
279 </p> |
277 </p> |
|
278 |
280 <a NAME="PyLintPlugin.__projectPylintShow" ID="PyLintPlugin.__projectPylintShow"></a> |
279 <a NAME="PyLintPlugin.__projectPylintShow" ID="PyLintPlugin.__projectPylintShow"></a> |
281 <h4>PyLintPlugin.__projectPylintShow</h4> |
280 <h4>PyLintPlugin.__projectPylintShow</h4> |
282 <b>__projectPylintShow</b>(<i></i>) |
281 <b>__projectPylintShow</b>(<i></i>) |
283 |
|
284 <p> |
282 <p> |
285 Private slot to show the PyLint dialog with the results of the last |
283 Private slot to show the PyLint dialog with the results of the last |
286 run. |
284 run. |
287 </p> |
285 </p> |
|
286 |
288 <a NAME="PyLintPlugin.__projectShowMenu" ID="PyLintPlugin.__projectShowMenu"></a> |
287 <a NAME="PyLintPlugin.__projectShowMenu" ID="PyLintPlugin.__projectShowMenu"></a> |
289 <h4>PyLintPlugin.__projectShowMenu</h4> |
288 <h4>PyLintPlugin.__projectShowMenu</h4> |
290 <b>__projectShowMenu</b>(<i>menuName, menu</i>) |
289 <b>__projectShowMenu</b>(<i>menuName, menu</i>) |
291 |
|
292 <p> |
290 <p> |
293 Private slot called, when the the project menu or a submenu is |
291 Private slot called, when the the project menu or a submenu is |
294 about to be shown. |
292 about to be shown. |
295 </p> |
293 </p> |
|
294 |
296 <dl> |
295 <dl> |
297 |
296 |
298 <dt><i>menuName</i> (str)</dt> |
297 <dt><i>menuName</i> (str)</dt> |
299 <dd> |
298 <dd> |
300 name of the menu to be shown |
299 name of the menu to be shown |
305 </dd> |
304 </dd> |
306 </dl> |
305 </dl> |
307 <a NAME="PyLintPlugin.__pyLint" ID="PyLintPlugin.__pyLint"></a> |
306 <a NAME="PyLintPlugin.__pyLint" ID="PyLintPlugin.__pyLint"></a> |
308 <h4>PyLintPlugin.__pyLint</h4> |
307 <h4>PyLintPlugin.__pyLint</h4> |
309 <b>__pyLint</b>(<i>project, mpName, forProject, forEditor=False</i>) |
308 <b>__pyLint</b>(<i>project, mpName, forProject, forEditor=False</i>) |
310 |
|
311 <p> |
309 <p> |
312 Private method used to perform a PyLint run. |
310 Private method used to perform a PyLint run. |
313 </p> |
311 </p> |
|
312 |
314 <dl> |
313 <dl> |
315 |
314 |
316 <dt><i>project</i> (Project)</dt> |
315 <dt><i>project</i> (Project)</dt> |
317 <dd> |
316 <dd> |
318 reference to the Project object |
317 reference to the Project object |
350 </dd> |
349 </dd> |
351 </dl> |
350 </dl> |
352 <a NAME="PyLintPlugin.deactivate" ID="PyLintPlugin.deactivate"></a> |
351 <a NAME="PyLintPlugin.deactivate" ID="PyLintPlugin.deactivate"></a> |
353 <h4>PyLintPlugin.deactivate</h4> |
352 <h4>PyLintPlugin.deactivate</h4> |
354 <b>deactivate</b>(<i></i>) |
353 <b>deactivate</b>(<i></i>) |
355 |
|
356 <p> |
354 <p> |
357 Public method to deactivate this plugin. |
355 Public method to deactivate this plugin. |
358 </p> |
356 </p> |
|
357 |
359 <div align="right"><a href="#top">Up</a></div> |
358 <div align="right"><a href="#top">Up</a></div> |
360 <hr /> |
359 <hr /> |
361 <hr /> |
360 <hr /> |
362 <a NAME="__getProgramVersion" ID="__getProgramVersion"></a> |
361 <a NAME="__getProgramVersion" ID="__getProgramVersion"></a> |
363 <h2>__getProgramVersion</h2> |
362 <h2>__getProgramVersion</h2> |
364 <b>__getProgramVersion</b>(<i>exe</i>) |
363 <b>__getProgramVersion</b>(<i>exe</i>) |
365 |
|
366 <p> |
364 <p> |
367 Private method to generate a program entry. |
365 Private method to generate a program entry. |
368 </p> |
366 </p> |
|
367 |
369 <dl> |
368 <dl> |
370 |
369 |
371 <dt><i>exe</i> (str)</dt> |
370 <dt><i>exe</i> (str)</dt> |
372 <dd> |
371 <dd> |
373 name of the executable program |
372 name of the executable program |