--- a/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.PyramidDialog.html Wed Jan 01 11:58:58 2020 +0100 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.PyramidDialog.html Thu Apr 09 18:16:19 2020 +0200 @@ -18,32 +18,41 @@ </style> </head> -<body><a NAME="top" ID="top"></a> +<body> +<a NAME="top" ID="top"></a> <h1>Plugin_Project_Pyramid.ProjectPyramid.PyramidDialog</h1> + <p> Module implementing a dialog starting a process and showing its output. </p> <h3>Global Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> + <table> + <tr> <td><a href="#PyramidDialog">PyramidDialog</a></td> <td>Class implementing a dialog starting a process and showing its output.</td> </tr> </table> <h3>Functions</h3> + <table> <tr><td>None</td></tr> </table> -<hr /><hr /> +<hr /> +<hr /> <a NAME="PyramidDialog" ID="PyramidDialog"></a> <h2>PyramidDialog</h2> + <p> Class implementing a dialog starting a process and showing its output. -</p><p> +</p> +<p> It starts a QProcess and displays a dialog that shows the output of the process. The dialog is modal, which causes a synchronized execution of the process. @@ -51,226 +60,302 @@ <h3>Derived from</h3> QDialog, Ui_PyramidDialog <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="#PyramidDialog.__init__">PyramidDialog</a></td> <td>Constructor</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.__procFinished">__procFinished</a></td> <td>Private slot connected to the finished signal.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.__readStderr">__readStderr</a></td> <td>Private slot to handle the readyReadStandardError signal.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.__readStdout">__readStdout</a></td> <td>Private slot to handle the readyReadStandardOutput signal.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.finish">finish</a></td> <td>Public slot called when the process finished or the user pressed the button.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.keyPressEvent">keyPressEvent</a></td> <td>Protected slot to handle a key press event.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.normalExit">normalExit</a></td> <td>Public method to check for a normal process termination.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.normalExitWithoutErrors">normalExitWithoutErrors</a></td> <td>Public method to check for a normal process termination without error messages.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> <td>Private slot called by a button of the button box clicked.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.on_input_returnPressed">on_input_returnPressed</a></td> <td>Private slot to handle the press of the return key in the input field.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> <td>Private slot to handle the password checkbox toggled.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> <td>Private slot to send the input to the subversion process.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.startBatchProcesses">startBatchProcesses</a></td> <td>Public slot used to start a batch of processes.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyramidDialog.startProcess">startProcess</a></td> <td>Public slot used to start the process.</td> </tr> </table> <h3>Static Methods</h3> + <table> <tr><td>None</td></tr> </table> + <a NAME="PyramidDialog.__init__" ID="PyramidDialog.__init__"></a> <h4>PyramidDialog (Constructor)</h4> <b>PyramidDialog</b>(<i>text, fixed=False, linewrap=True, msgSuccess=None, msgError=None, parent=None</i>) + <p> Constructor -</p><dl> +</p> +<dl> + <dt><i>text</i></dt> <dd> text to be shown by the label (string) -</dd><dt><i>fixed=</i></dt> +</dd> +<dt><i>fixed=</i></dt> <dd> flag indicating a fixed font should be used (boolean) -</dd><dt><i>linewrap=</i></dt> +</dd> +<dt><i>linewrap=</i></dt> <dd> flag indicating to wrap long lines (boolean) -</dd><dt><i>msgSuccess=</i></dt> +</dd> +<dt><i>msgSuccess=</i></dt> <dd> optional string to show upon successful execution (string) -</dd><dt><i>msgError=</i></dt> +</dd> +<dt><i>msgError=</i></dt> <dd> optional string to show upon unsuccessful execution (string) -</dd><dt><i>parent=</i></dt> +</dd> +<dt><i>parent=</i></dt> <dd> parent widget (QWidget) </dd> -</dl><a NAME="PyramidDialog.__procFinished" ID="PyramidDialog.__procFinished"></a> +</dl> +<a NAME="PyramidDialog.__procFinished" ID="PyramidDialog.__procFinished"></a> <h4>PyramidDialog.__procFinished</h4> <b>__procFinished</b>(<i>exitCode, exitStatus</i>) + <p> Private slot connected to the finished signal. -</p><dl> +</p> +<dl> + <dt><i>exitCode</i></dt> <dd> exit code of the process (integer) -</dd><dt><i>exitStatus</i></dt> +</dd> +<dt><i>exitStatus</i></dt> <dd> exit status of the process (QProcess.ExitStatus) </dd> -</dl><a NAME="PyramidDialog.__readStderr" ID="PyramidDialog.__readStderr"></a> +</dl> +<a NAME="PyramidDialog.__readStderr" ID="PyramidDialog.__readStderr"></a> <h4>PyramidDialog.__readStderr</h4> <b>__readStderr</b>(<i></i>) + <p> Private slot to handle the readyReadStandardError signal. -</p><p> +</p> +<p> It reads the error output of the process and inserts it into the error pane. -</p><a NAME="PyramidDialog.__readStdout" ID="PyramidDialog.__readStdout"></a> +</p> +<a NAME="PyramidDialog.__readStdout" ID="PyramidDialog.__readStdout"></a> <h4>PyramidDialog.__readStdout</h4> <b>__readStdout</b>(<i></i>) + <p> Private slot to handle the readyReadStandardOutput signal. -</p><p> +</p> +<p> It reads the output of the process, formats it and inserts it into the contents pane. -</p><a NAME="PyramidDialog.finish" ID="PyramidDialog.finish"></a> +</p> +<a NAME="PyramidDialog.finish" ID="PyramidDialog.finish"></a> <h4>PyramidDialog.finish</h4> <b>finish</b>(<i></i>) + <p> Public slot called when the process finished or the user pressed the button. -</p><a NAME="PyramidDialog.keyPressEvent" ID="PyramidDialog.keyPressEvent"></a> +</p> +<a NAME="PyramidDialog.keyPressEvent" ID="PyramidDialog.keyPressEvent"></a> <h4>PyramidDialog.keyPressEvent</h4> <b>keyPressEvent</b>(<i>evt</i>) + <p> Protected slot to handle a key press event. -</p><dl> +</p> +<dl> + <dt><i>evt</i></dt> <dd> the key press event (QKeyEvent) </dd> -</dl><a NAME="PyramidDialog.normalExit" ID="PyramidDialog.normalExit"></a> +</dl> +<a NAME="PyramidDialog.normalExit" ID="PyramidDialog.normalExit"></a> <h4>PyramidDialog.normalExit</h4> <b>normalExit</b>(<i></i>) + <p> Public method to check for a normal process termination. -</p><dl> +</p> +<dl> <dt>Returns:</dt> <dd> flag indicating normal process termination (boolean) </dd> -</dl><a NAME="PyramidDialog.normalExitWithoutErrors" ID="PyramidDialog.normalExitWithoutErrors"></a> +</dl> +<a NAME="PyramidDialog.normalExitWithoutErrors" ID="PyramidDialog.normalExitWithoutErrors"></a> <h4>PyramidDialog.normalExitWithoutErrors</h4> <b>normalExitWithoutErrors</b>(<i></i>) + <p> Public method to check for a normal process termination without error messages. -</p><dl> +</p> +<dl> <dt>Returns:</dt> <dd> flag indicating normal process termination (boolean) </dd> -</dl><a NAME="PyramidDialog.on_buttonBox_clicked" ID="PyramidDialog.on_buttonBox_clicked"></a> +</dl> +<a NAME="PyramidDialog.on_buttonBox_clicked" ID="PyramidDialog.on_buttonBox_clicked"></a> <h4>PyramidDialog.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> +</p> +<dl> + <dt><i>button</i></dt> <dd> button that was clicked (QAbstractButton) </dd> -</dl><a NAME="PyramidDialog.on_input_returnPressed" ID="PyramidDialog.on_input_returnPressed"></a> +</dl> +<a NAME="PyramidDialog.on_input_returnPressed" ID="PyramidDialog.on_input_returnPressed"></a> <h4>PyramidDialog.on_input_returnPressed</h4> <b>on_input_returnPressed</b>(<i></i>) + <p> Private slot to handle the press of the return key in the input field. -</p><a NAME="PyramidDialog.on_passwordCheckBox_toggled" ID="PyramidDialog.on_passwordCheckBox_toggled"></a> +</p> +<a NAME="PyramidDialog.on_passwordCheckBox_toggled" ID="PyramidDialog.on_passwordCheckBox_toggled"></a> <h4>PyramidDialog.on_passwordCheckBox_toggled</h4> <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) + <p> Private slot to handle the password checkbox toggled. -</p><dl> +</p> +<dl> + <dt><i>isOn</i></dt> <dd> flag indicating the status of the check box (boolean) </dd> -</dl><a NAME="PyramidDialog.on_sendButton_clicked" ID="PyramidDialog.on_sendButton_clicked"></a> +</dl> +<a NAME="PyramidDialog.on_sendButton_clicked" ID="PyramidDialog.on_sendButton_clicked"></a> <h4>PyramidDialog.on_sendButton_clicked</h4> <b>on_sendButton_clicked</b>(<i></i>) + <p> Private slot to send the input to the subversion process. -</p><a NAME="PyramidDialog.startBatchProcesses" ID="PyramidDialog.startBatchProcesses"></a> +</p> +<a NAME="PyramidDialog.startBatchProcesses" ID="PyramidDialog.startBatchProcesses"></a> <h4>PyramidDialog.startBatchProcesses</h4> <b>startBatchProcesses</b>(<i>argsLists, workingDir=None</i>) + <p> Public slot used to start a batch of processes. -</p><dl> +</p> +<dl> + <dt><i>argsLists</i></dt> <dd> list of lists of arguments for the processes (list of list of string) -</dd><dt><i>workingDir</i></dt> +</dd> +<dt><i>workingDir</i></dt> <dd> working directory for the process (string) </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> flag indicating a successful start of the first process (boolean) </dd> -</dl><a NAME="PyramidDialog.startProcess" ID="PyramidDialog.startProcess"></a> +</dl> +<a NAME="PyramidDialog.startProcess" ID="PyramidDialog.startProcess"></a> <h4>PyramidDialog.startProcess</h4> <b>startProcess</b>(<i>command, args, workingDir=None, showArgs=True</i>) + <p> Public slot used to start the process. -</p><dl> +</p> +<dl> + <dt><i>command</i></dt> <dd> command to start (string) -</dd><dt><i>args</i></dt> +</dd> +<dt><i>args</i></dt> <dd> list of arguments for the process (list of strings) -</dd><dt><i>workingDir=</i></dt> +</dd> +<dt><i>workingDir=</i></dt> <dd> working directory for the process (string) -</dd><dt><i>showArgs=</i></dt> +</dd> +<dt><i>showArgs=</i></dt> <dd> flag indicating to show the arguments (boolean) </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> flag indicating a successful start of the process