Sat, 23 Feb 2013 15:12:21 +0100
Modified the code to do lazy import.
--- a/ChangeLog Sun Feb 03 16:56:41 2013 +0100 +++ b/ChangeLog Sat Feb 23 15:12:21 2013 +0100 @@ -1,5 +1,9 @@ ChangeLog --------- +Version 5.2.0: +- bug fixes +- modified code to do lazy import + Version 5.1.2: - bug fixes
--- a/PluginPyLint.e4p Sun Feb 03 16:56:41 2013 +0100 +++ b/PluginPyLint.e4p Sat Feb 23 15:12:21 2013 +0100 @@ -44,6 +44,7 @@ <Other>PyLint/Documentation/LICENSE.GPL3</Other> <Other>.hgignore</Other> <Other>PluginPyLint.zip</Other> + <Other>PyLint/Documentation/source</Other> </Others> <MainScript>PluginPyLint.py</MainScript> <Vcs>
--- a/PluginPyLint.py Sun Feb 03 16:56:41 2013 +0100 +++ b/PluginPyLint.py Sat Feb 23 15:12:21 2013 +0100 @@ -18,9 +18,6 @@ from E5Gui.E5Action import E5Action from E5Gui import E5MessageBox -from PyLint.PyLintConfigDialog import PyLintConfigDialog -from PyLint.PyLintExecDialog import PyLintExecDialog - import Utilities # Start-of-Header @@ -28,7 +25,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "5.1.2" +version = "5.2.0" className = "PyLintPlugin" packageName = "PyLint" shortDescription = "Show the PyLint dialogs." @@ -405,6 +402,7 @@ self.trUtf8("""The pylint executable could not be found.""")) return + from PyLint.PyLintConfigDialog import PyLintConfigDialog dlg = PyLintConfigDialog(project.getProjectPath(), exe, parms) if dlg.exec_() == QDialog.Accepted: args, parms = dlg.generateParameters() @@ -413,6 +411,7 @@ project.setData('CHECKERSPARMS', "PYLINT", parms) # now do the call + from PyLint.PyLintExecDialog import PyLintExecDialog dlg2 = PyLintExecDialog() try: reportFile = parms['reportFile']
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/Plugin_Checker_PyLint.PluginPyLint.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,316 @@ +<!DOCTYPE html> +<html><head> +<title>Plugin_Checker_PyLint.PluginPyLint</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>Plugin_Checker_PyLint.PluginPyLint</h1> +<p> +Module implementing the PyLint plug-in. +</p> +<h3>Global Attributes</h3> +<table> +<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>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> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#PyLintPlugin">PyLintPlugin</a></td> +<td>Class implementing the PyLint plug-in.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr> +<td><a href="#_checkProgram">_checkProgram</a></td> +<td>Restricted function to check the availability of pylint.</td> +</tr><tr> +<td><a href="#_findExecutable">_findExecutable</a></td> +<td>Restricted function to determine the name and path of the executable.</td> +</tr><tr> +<td><a href="#exeDisplayData">exeDisplayData</a></td> +<td>Public method to support the display of some executable info.</td> +</tr><tr> +<td><a href="#getExePath">getExePath</a></td> +<td></td> +</tr> +</table> +<hr /><hr /> +<a NAME="PyLintPlugin" ID="PyLintPlugin"></a> +<h2>PyLintPlugin</h2> +<p> + Class implementing the PyLint plug-in. +</p> +<h3>Derived from</h3> +QObject +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#PyLintPlugin.__init__">PyLintPlugin</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#PyLintPlugin.__editorClosed">__editorClosed</a></td> +<td>Private slot called, when an editor was closed.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__editorOpened">__editorOpened</a></td> +<td>Private slot called, when a new editor was opened.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__editorPylint">__editorPylint</a></td> +<td>Private slot to handle the Pylint context menu action of the editors.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__editorShowMenu">__editorShowMenu</a></td> +<td>Private slot called, when the the editor context menu or a submenu is about to be shown.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__initialize">__initialize</a></td> +<td>Private slot to (re)initialize the plugin.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__loadTranslator">__loadTranslator</a></td> +<td>Private method to load the translation file.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectBrowserPylint">__projectBrowserPylint</a></td> +<td>Private method to handle the Pylint context menu action of the project sources browser.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectBrowserPylintShow">__projectBrowserPylintShow</a></td> +<td>Public slot to show the PyLint dialog with the results of the last run.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectBrowserShowMenu">__projectBrowserShowMenu</a></td> +<td>Private slot called, when the the project browser menu or a submenu is about to be shown.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectPylint">__projectPylint</a></td> +<td>Public slot used to check the project files with Pylint.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectPylintShow">__projectPylintShow</a></td> +<td>Public slot to show the PyLint dialog with the results of the last run.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__projectShowMenu">__projectShowMenu</a></td> +<td>Private slot called, when the the project menu or a submenu is about to be shown.</td> +</tr><tr> +<td><a href="#PyLintPlugin.__pyLint">__pyLint</a></td> +<td>Private method used to perform a PyLint run.</td> +</tr><tr> +<td><a href="#PyLintPlugin.activate">activate</a></td> +<td>Public method to activate this plugin.</td> +</tr><tr> +<td><a href="#PyLintPlugin.deactivate">deactivate</a></td> +<td>Public method to deactivate this plugin.</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="PyLintPlugin.__init__" ID="PyLintPlugin.__init__"></a> +<h4>PyLintPlugin (Constructor)</h4> +<b>PyLintPlugin</b>(<i>ui</i>) +<p> + Constructor +</p><dl> +<dt><i>ui</i></dt> +<dd> +reference to the user interface object (UI.UserInterface) +</dd> +</dl><a NAME="PyLintPlugin.__editorClosed" ID="PyLintPlugin.__editorClosed"></a> +<h4>PyLintPlugin.__editorClosed</h4> +<b>__editorClosed</b>(<i>editor</i>) +<p> + Private slot called, when an editor was closed. +</p><dl> +<dt><i>editor</i></dt> +<dd> +reference to the editor (QScintilla.Editor) +</dd> +</dl><a NAME="PyLintPlugin.__editorOpened" ID="PyLintPlugin.__editorOpened"></a> +<h4>PyLintPlugin.__editorOpened</h4> +<b>__editorOpened</b>(<i>editor</i>) +<p> + Private slot called, when a new editor was opened. +</p><dl> +<dt><i>editor</i></dt> +<dd> +reference to the new editor (QScintilla.Editor) +</dd> +</dl><a NAME="PyLintPlugin.__editorPylint" ID="PyLintPlugin.__editorPylint"></a> +<h4>PyLintPlugin.__editorPylint</h4> +<b>__editorPylint</b>(<i></i>) +<p> + Private slot to handle the Pylint context menu action of the editors. +</p><a NAME="PyLintPlugin.__editorShowMenu" ID="PyLintPlugin.__editorShowMenu"></a> +<h4>PyLintPlugin.__editorShowMenu</h4> +<b>__editorShowMenu</b>(<i>menuName, menu, editor</i>) +<p> + Private slot called, when the the editor context menu or a submenu is + about to be shown. +</p><dl> +<dt><i>menuName</i></dt> +<dd> +name of the menu to be shown (string) +</dd><dt><i>menu</i></dt> +<dd> +reference to the menu (QMenu) +</dd><dt><i>editor</i></dt> +<dd> +reference to the editor (QScintilla.Editor) +</dd> +</dl><a NAME="PyLintPlugin.__initialize" ID="PyLintPlugin.__initialize"></a> +<h4>PyLintPlugin.__initialize</h4> +<b>__initialize</b>(<i></i>) +<p> + Private slot to (re)initialize the plugin. +</p><a NAME="PyLintPlugin.__loadTranslator" ID="PyLintPlugin.__loadTranslator"></a> +<h4>PyLintPlugin.__loadTranslator</h4> +<b>__loadTranslator</b>(<i></i>) +<p> + Private method to load the translation file. +</p><a NAME="PyLintPlugin.__projectBrowserPylint" ID="PyLintPlugin.__projectBrowserPylint"></a> +<h4>PyLintPlugin.__projectBrowserPylint</h4> +<b>__projectBrowserPylint</b>(<i></i>) +<p> + Private method to handle the Pylint context menu action of the project + sources browser. +</p><a NAME="PyLintPlugin.__projectBrowserPylintShow" ID="PyLintPlugin.__projectBrowserPylintShow"></a> +<h4>PyLintPlugin.__projectBrowserPylintShow</h4> +<b>__projectBrowserPylintShow</b>(<i></i>) +<p> + Public slot to show the PyLint dialog with the results of the last run. +</p><a NAME="PyLintPlugin.__projectBrowserShowMenu" ID="PyLintPlugin.__projectBrowserShowMenu"></a> +<h4>PyLintPlugin.__projectBrowserShowMenu</h4> +<b>__projectBrowserShowMenu</b>(<i>menuName, menu</i>) +<p> + Private slot called, when the the project browser menu or a submenu is + about to be shown. +</p><dl> +<dt><i>menuName</i></dt> +<dd> +name of the menu to be shown (string) +</dd><dt><i>menu</i></dt> +<dd> +reference to the menu (QMenu) +</dd> +</dl><a NAME="PyLintPlugin.__projectPylint" ID="PyLintPlugin.__projectPylint"></a> +<h4>PyLintPlugin.__projectPylint</h4> +<b>__projectPylint</b>(<i></i>) +<p> + Public slot used to check the project files with Pylint. +</p><a NAME="PyLintPlugin.__projectPylintShow" ID="PyLintPlugin.__projectPylintShow"></a> +<h4>PyLintPlugin.__projectPylintShow</h4> +<b>__projectPylintShow</b>(<i></i>) +<p> + Public slot to show the PyLint dialog with the results of the last run. +</p><a NAME="PyLintPlugin.__projectShowMenu" ID="PyLintPlugin.__projectShowMenu"></a> +<h4>PyLintPlugin.__projectShowMenu</h4> +<b>__projectShowMenu</b>(<i>menuName, menu</i>) +<p> + Private slot called, when the the project menu or a submenu is + about to be shown. +</p><dl> +<dt><i>menuName</i></dt> +<dd> +name of the menu to be shown (string) +</dd><dt><i>menu</i></dt> +<dd> +reference to the menu (QMenu) +</dd> +</dl><a NAME="PyLintPlugin.__pyLint" ID="PyLintPlugin.__pyLint"></a> +<h4>PyLintPlugin.__pyLint</h4> +<b>__pyLint</b>(<i>project, mpName, forProject, forEditor=False</i>) +<p> + Private method used to perform a PyLint run. +</p><dl> +<dt><i>project</i></dt> +<dd> +reference to the Project object +</dd><dt><i>mpName</i></dt> +<dd> +name of module or package to be checked (string) +</dd><dt><i>forProject</i></dt> +<dd> +flag indicating a run for the project (boolean) +</dd> +</dl><a NAME="PyLintPlugin.activate" ID="PyLintPlugin.activate"></a> +<h4>PyLintPlugin.activate</h4> +<b>activate</b>(<i></i>) +<p> + Public method to activate this plugin. +</p><dl> +<dt>Returns:</dt> +<dd> +tuple of None and activation status (boolean) +</dd> +</dl><a NAME="PyLintPlugin.deactivate" ID="PyLintPlugin.deactivate"></a> +<h4>PyLintPlugin.deactivate</h4> +<b>deactivate</b>(<i></i>) +<p> + Public method to deactivate this plugin. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="_checkProgram" ID="_checkProgram"></a> +<h2>_checkProgram</h2> +<b>_checkProgram</b>(<i></i>) +<p> + Restricted function to check the availability of pylint. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating availability (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="_findExecutable" ID="_findExecutable"></a> +<h2>_findExecutable</h2> +<b>_findExecutable</b>(<i></i>) +<p> + Restricted function to determine the name and path of the executable. +</p><dl> +<dt>Returns:</dt> +<dd> +path name of the executable (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="exeDisplayData" ID="exeDisplayData"></a> +<h2>exeDisplayData</h2> +<b>exeDisplayData</b>(<i></i>) +<p> + Public method to support the display of some executable info. +</p><dl> +<dt>Returns:</dt> +<dd> +dictionary containing the data to query the presence of + the executable +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="getExePath" ID="getExePath"></a> +<h2>getExePath</h2> +<b>getExePath</b>(<i>branch</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/Plugin_Checker_PyLint.PyLint.PyLintConfigDialog.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,195 @@ +<!DOCTYPE html> +<html><head> +<title>Plugin_Checker_PyLint.PyLint.PyLintConfigDialog</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>Plugin_Checker_PyLint.PyLint.PyLintConfigDialog</h1> +<p> +Module implementing a dialog to configure the PyLint process +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#PyLintConfigDialog">PyLintConfigDialog</a></td> +<td>Class implementing a dialog to configure the PyLint process</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="PyLintConfigDialog" ID="PyLintConfigDialog"></a> +<h2>PyLintConfigDialog</h2> +<p> + Class implementing a dialog to configure the PyLint process +</p> +<h3>Derived from</h3> +QDialog, Ui_PyLintConfigDialog +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#PyLintConfigDialog.__init__">PyLintConfigDialog</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.__createConfigDone">__createConfigDone</a></td> +<td>Private slot to handle the the finished signal of the pylint process.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.__initializeDefaults">__initializeDefaults</a></td> +<td>Private method to set the default values.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.__readStderr">__readStderr</a></td> +<td>Private slot to handle the readyReadStandardError signal of the pylint process.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.__readStdout">__readStdout</a></td> +<td>Private slot to handle the readyReadStandardOutput signal of the pylint process.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.accept">accept</a></td> +<td>Protected slot called by the Ok button.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.generateParameters">generateParameters</a></td> +<td>Public method that generates the commandline parameters.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.on_configButton_clicked">on_configButton_clicked</a></td> +<td>Public slot to handle the generation of a sample configuration.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.on_configfileButton_clicked">on_configfileButton_clicked</a></td> +<td>Private slot to select the configuration file.</td> +</tr><tr> +<td><a href="#PyLintConfigDialog.on_reportfileButton_clicked">on_reportfileButton_clicked</a></td> +<td>Private slot to select the report file.</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="PyLintConfigDialog.__init__" ID="PyLintConfigDialog.__init__"></a> +<h4>PyLintConfigDialog (Constructor)</h4> +<b>PyLintConfigDialog</b>(<i>ppath, exe, parms=None, parent=None</i>) +<p> + Constructor +</p><dl> +<dt><i>ppath</i></dt> +<dd> +project path (string or QString) + Used to set the default path for the rcfile selection dialog +</dd><dt><i>exe</i></dt> +<dd> +name of the pylint executable (string) +</dd><dt><i>parms</i></dt> +<dd> +parameters to set in the dialog +</dd><dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="PyLintConfigDialog.__createConfigDone" ID="PyLintConfigDialog.__createConfigDone"></a> +<h4>PyLintConfigDialog.__createConfigDone</h4> +<b>__createConfigDone</b>(<i>exitCode, exitStatus</i>) +<p> + Private slot to handle the the finished signal of the pylint process. +</p><dl> +<dt><i>exitCode</i></dt> +<dd> +exit code of the process (integer) +</dd><dt><i>exitStatus</i></dt> +<dd> +exit status of the process (QProcess.ExitStatus) +</dd> +</dl><a NAME="PyLintConfigDialog.__initializeDefaults" ID="PyLintConfigDialog.__initializeDefaults"></a> +<h4>PyLintConfigDialog.__initializeDefaults</h4> +<b>__initializeDefaults</b>(<i></i>) +<p> + Private method to set the default values. +</p><p> + These are needed later on to generate the commandline + parameters. +</p><a NAME="PyLintConfigDialog.__readStderr" ID="PyLintConfigDialog.__readStderr"></a> +<h4>PyLintConfigDialog.__readStderr</h4> +<b>__readStderr</b>(<i></i>) +<p> + Private slot to handle the readyReadStandardError signal of the pylint process. +</p><a NAME="PyLintConfigDialog.__readStdout" ID="PyLintConfigDialog.__readStdout"></a> +<h4>PyLintConfigDialog.__readStdout</h4> +<b>__readStdout</b>(<i></i>) +<p> + Private slot to handle the readyReadStandardOutput signal of the pylint process. +</p><a NAME="PyLintConfigDialog.accept" ID="PyLintConfigDialog.accept"></a> +<h4>PyLintConfigDialog.accept</h4> +<b>accept</b>(<i></i>) +<p> + Protected slot called by the Ok button. +</p><p> + It saves the values in the parameters dictionary. +</p><a NAME="PyLintConfigDialog.generateParameters" ID="PyLintConfigDialog.generateParameters"></a> +<h4>PyLintConfigDialog.generateParameters</h4> +<b>generateParameters</b>(<i></i>) +<p> + Public method that generates the commandline parameters. +</p><p> + It generates a QStringList to be used + to set the QProcess arguments for the pylint call and + a list containing the non default parameters. The second + list can be passed back upon object generation to overwrite + the default settings. +</p><p> + <b>Note</b>: The arguments list contains the name of the pylint executable as + the first parameter. +</p><dl> +<dt>Returns:</dt> +<dd> +a tuple of the commandline parameters and non default parameters + (list of strings, dictionary) +</dd> +</dl><a NAME="PyLintConfigDialog.on_configButton_clicked" ID="PyLintConfigDialog.on_configButton_clicked"></a> +<h4>PyLintConfigDialog.on_configButton_clicked</h4> +<b>on_configButton_clicked</b>(<i></i>) +<p> + Public slot to handle the generation of a sample configuration. +</p><a NAME="PyLintConfigDialog.on_configfileButton_clicked" ID="PyLintConfigDialog.on_configfileButton_clicked"></a> +<h4>PyLintConfigDialog.on_configfileButton_clicked</h4> +<b>on_configfileButton_clicked</b>(<i></i>) +<p> + Private slot to select the configuration file. +</p><p> + It displays a file selection dialog to select the configuration file. +</p><a NAME="PyLintConfigDialog.on_reportfileButton_clicked" ID="PyLintConfigDialog.on_reportfileButton_clicked"></a> +<h4>PyLintConfigDialog.on_reportfileButton_clicked</h4> +<b>on_reportfileButton_clicked</b>(<i></i>) +<p> + Private slot to select the report file. +</p><p> + It displays a file selection dialog to select the report file. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/Plugin_Checker_PyLint.PyLint.PyLintExecDialog.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,231 @@ +<!DOCTYPE html> +<html><head> +<title>Plugin_Checker_PyLint.PyLint.PyLintExecDialog</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>Plugin_Checker_PyLint.PyLint.PyLintExecDialog</h1> +<p> +Module implementing a dialog to show the results of the PyLint run. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#PyLintExecDialog">PyLintExecDialog</a></td> +<td>Class implementing a dialog to show the results of the PyLint run.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="PyLintExecDialog" ID="PyLintExecDialog"></a> +<h2>PyLintExecDialog</h2> +<p> + Class implementing a dialog to show the results of the PyLint run. +</p><p> + This class starts a QProcess and displays a dialog that + shows the results of the PyLint command process. +</p> +<h3>Derived from</h3> +QWidget, Ui_PyLintExecDialog +<h3>Class Attributes</h3> +<table> +<tr><td>filenameRole</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#PyLintExecDialog.__init__">PyLintExecDialog</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__createItem">__createItem</a></td> +<td>Private method to create an entry in the message list.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__finish">__finish</a></td> +<td>Private slot called when the process finished.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__readParseStdout">__readParseStdout</a></td> +<td>Private slot to handle the readyReadStandardOutput signal for parseable output.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__readStderr">__readStderr</a></td> +<td>Private slot to handle the readyReadStandardError signal.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__readStdout">__readStdout</a></td> +<td>Private slot to handle the readyReadStandardOutput signal.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.__writeReport">__writeReport</a></td> +<td>Private slot to write the report to a report file.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> +<td>Private slot called by a button of the button box clicked.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.on_messageList_itemActivated">on_messageList_itemActivated</a></td> +<td>Private slot to handle the itemActivated signal of the message list.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.on_refreshButton_clicked">on_refreshButton_clicked</a></td> +<td>Private slot to refresh the status display.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.on_saveButton_clicked">on_saveButton_clicked</a></td> +<td>Private slot to save the report to a file.</td> +</tr><tr> +<td><a href="#PyLintExecDialog.start">start</a></td> +<td>Public slot to start PyLint.</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="PyLintExecDialog.__init__" ID="PyLintExecDialog.__init__"></a> +<h4>PyLintExecDialog (Constructor)</h4> +<b>PyLintExecDialog</b>(<i>parent=None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent widget of this dialog (QWidget) +</dd> +</dl><a NAME="PyLintExecDialog.__createItem" ID="PyLintExecDialog.__createItem"></a> +<h4>PyLintExecDialog.__createItem</h4> +<b>__createItem</b>(<i>file, line, type_, message</i>) +<p> + Private method to create an entry in the message list. +</p><dl> +<dt><i>file</i></dt> +<dd> +filename of file (string) +</dd><dt><i>line</i></dt> +<dd> +linenumber of message (integer or string) +</dd><dt><i>type_</i></dt> +<dd> +type of message (string) +</dd><dt><i>message</i></dt> +<dd> +message text (string) +</dd> +</dl><a NAME="PyLintExecDialog.__finish" ID="PyLintExecDialog.__finish"></a> +<h4>PyLintExecDialog.__finish</h4> +<b>__finish</b>(<i></i>) +<p> + Private slot called when the process finished. +</p><p> + It is called when the process finished or + the user pressed the button. +</p><a NAME="PyLintExecDialog.__readParseStdout" ID="PyLintExecDialog.__readParseStdout"></a> +<h4>PyLintExecDialog.__readParseStdout</h4> +<b>__readParseStdout</b>(<i></i>) +<p> + Private slot to handle the readyReadStandardOutput signal for parseable output. +</p><p> + It reads the output of the process, formats it and inserts it into + the message list pane. +</p><a NAME="PyLintExecDialog.__readStderr" ID="PyLintExecDialog.__readStderr"></a> +<h4>PyLintExecDialog.__readStderr</h4> +<b>__readStderr</b>(<i></i>) +<p> + Private slot to handle the readyReadStandardError signal. +</p><p> + It reads the error output of the process and inserts it into the + error pane. +</p><a NAME="PyLintExecDialog.__readStdout" ID="PyLintExecDialog.__readStdout"></a> +<h4>PyLintExecDialog.__readStdout</h4> +<b>__readStdout</b>(<i></i>) +<p> + Private slot to handle the readyReadStandardOutput signal. +</p><p> + It reads the output of the process, formats it and inserts it into + the contents pane. +</p><a NAME="PyLintExecDialog.__writeReport" ID="PyLintExecDialog.__writeReport"></a> +<h4>PyLintExecDialog.__writeReport</h4> +<b>__writeReport</b>(<i></i>) +<p> + Private slot to write the report to a report file. +</p><a NAME="PyLintExecDialog.on_buttonBox_clicked" ID="PyLintExecDialog.on_buttonBox_clicked"></a> +<h4>PyLintExecDialog.on_buttonBox_clicked</h4> +<b>on_buttonBox_clicked</b>(<i>button</i>) +<p> + Private slot called by a button of the button box clicked. +</p><dl> +<dt><i>button</i></dt> +<dd> +button that was clicked (QAbstractButton) +</dd> +</dl><a NAME="PyLintExecDialog.on_messageList_itemActivated" ID="PyLintExecDialog.on_messageList_itemActivated"></a> +<h4>PyLintExecDialog.on_messageList_itemActivated</h4> +<b>on_messageList_itemActivated</b>(<i>itm, column</i>) +<p> + Private slot to handle the itemActivated signal of the message list. +</p><dl> +<dt><i>itm</i></dt> +<dd> +The message item that was activated (QTreeWidgetItem) +</dd><dt><i>column</i></dt> +<dd> +column the item was activated in (integer) +</dd> +</dl><a NAME="PyLintExecDialog.on_refreshButton_clicked" ID="PyLintExecDialog.on_refreshButton_clicked"></a> +<h4>PyLintExecDialog.on_refreshButton_clicked</h4> +<b>on_refreshButton_clicked</b>(<i></i>) +<p> + Private slot to refresh the status display. +</p><a NAME="PyLintExecDialog.on_saveButton_clicked" ID="PyLintExecDialog.on_saveButton_clicked"></a> +<h4>PyLintExecDialog.on_saveButton_clicked</h4> +<b>on_saveButton_clicked</b>(<i></i>) +<p> + Private slot to save the report to a file. +</p><a NAME="PyLintExecDialog.start" ID="PyLintExecDialog.start"></a> +<h4>PyLintExecDialog.start</h4> +<b>start</b>(<i>args, fn, reportFile, ppath</i>) +<p> + Public slot to start PyLint. +</p><dl> +<dt><i>args</i></dt> +<dd> +commandline arguments for documentation programPyLint + (list of strings) +</dd><dt><i>fn</i></dt> +<dd> +filename or dirname to be processed by PyLint (string) +</dd><dt><i>reportFile</i></dt> +<dd> +filename of file to write the report to (string) +</dd><dt><i>ppath</i></dt> +<dd> +project path (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating the successful start of the process (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/index-Plugin_Checker_PyLint.PyLint.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html><head> +<title>Plugin_Checker_PyLint.PyLint</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body> +<h1>Plugin_Checker_PyLint.PyLint</h1> +<p> +Package containing the PyLint plugin. +</p> + + +<h3>Modules</h3> +<table> +<tr> +<td><a href="Plugin_Checker_PyLint.PyLint.PyLintConfigDialog.html">PyLintConfigDialog</a></td> +<td>Module implementing a dialog to configure the PyLint process</td> +</tr><tr> +<td><a href="Plugin_Checker_PyLint.PyLint.PyLintExecDialog.html">PyLintExecDialog</a></td> +<td>Module implementing a dialog to show the results of the PyLint run.</td> +</tr> +</table> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/index-Plugin_Checker_PyLint.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html><head> +<title>Plugin_Checker_PyLint</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body> +<h1>Plugin_Checker_PyLint</h1> +<p> +Package containing the PyLint checker plugin. +</p> + +<h3>Packages</h3> +<table> +<tr> +<td><a href="index-Plugin_Checker_PyLint.PyLint.html">PyLint</a></td> +<td>Package containing the PyLint plugin.</td> +</tr> +</table> + +<h3>Modules</h3> +<table> +<tr> +<td><a href="Plugin_Checker_PyLint.PluginPyLint.html">PluginPyLint</a></td> +<td>Module implementing the PyLint plug-in.</td> +</tr> +</table> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyLint/Documentation/source/index.html Sat Feb 23 15:12:21 2013 +0100 @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html><head> +<title>Table of contents</title> +<meta charset="UTF-8"> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body> +<h1>Table of contents</h1> + + +<h3>Packages</h3> +<table> +<tr> +<td><a href="index-Plugin_Checker_PyLint.html">Plugin_Checker_PyLint</a></td> +<td>Package containing the PyLint checker plugin.</td> +</tr> +</table> + +</body></html> \ No newline at end of file