Thu, 04 Jan 2024 18:02:25 +0100
Fine tuned the source code documentation template and regenerated the source code documentation.
<!DOCTYPE html> <html><head> <title>eric7.Plugins.VcsPlugins.vcsSubversion.SvnDiffDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.Plugins.VcsPlugins.vcsSubversion.SvnDiffDialog</h1> <p> Module implementing a dialog to show the output of the svn diff command process. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#SvnDiffDialog">SvnDiffDialog</a></td> <td>Class implementing a dialog to show the output of the svn diff command process.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="SvnDiffDialog" ID="SvnDiffDialog"></a> <h2>SvnDiffDialog</h2> <p> Class implementing a dialog to show the output of the svn diff command process. </p> <h3>Derived from</h3> QWidget, Ui_SvnDiffDialog <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="#SvnDiffDialog.__init__">SvnDiffDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#SvnDiffDialog.__appendText">__appendText</a></td> <td>Private method to append text to the end of the contents pane.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__extractFileName">__extractFileName</a></td> <td>Private method to extract the file name out of a file separator line.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__getVersionArg">__getVersionArg</a></td> <td>Private method to get a svn revision argument for the given revision.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__procFinished">__procFinished</a></td> <td>Private slot connected to the finished signal.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__processFileLine">__processFileLine</a></td> <td>Private slot to process a line giving the old/new file.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__readStderr">__readStderr</a></td> <td>Private slot to handle the readyReadStandardError signal.</td> </tr> <tr> <td><a href="#SvnDiffDialog.__readStdout">__readStdout</a></td> <td>Private slot to handle the readyReadStandardOutput signal.</td> </tr> <tr> <td><a href="#SvnDiffDialog.closeEvent">closeEvent</a></td> <td>Protected slot implementing a close event handler.</td> </tr> <tr> <td><a href="#SvnDiffDialog.keyPressEvent">keyPressEvent</a></td> <td>Protected slot to handle a key press event.</td> </tr> <tr> <td><a href="#SvnDiffDialog.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="#SvnDiffDialog.on_filesCombo_activated">on_filesCombo_activated</a></td> <td>Private slot to handle the selection of a file.</td> </tr> <tr> <td><a href="#SvnDiffDialog.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> <td><a href="#SvnDiffDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> <td>Private slot to handle the password checkbox toggled.</td> </tr> <tr> <td><a href="#SvnDiffDialog.on_refreshButton_clicked">on_refreshButton_clicked</a></td> <td>Private slot to refresh the display.</td> </tr> <tr> <td><a href="#SvnDiffDialog.on_saveButton_clicked">on_saveButton_clicked</a></td> <td>Private slot to handle the Save button press.</td> </tr> <tr> <td><a href="#SvnDiffDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> <td>Private slot to send the input to the subversion process.</td> </tr> <tr> <td><a href="#SvnDiffDialog.start">start</a></td> <td>Public slot to start the svn diff command.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="SvnDiffDialog.__init__" ID="SvnDiffDialog.__init__"></a> <h4>SvnDiffDialog (Constructor)</h4> <b>SvnDiffDialog</b>(<i>vcs, parent=None</i>) <p> Constructor </p> <dl> <dt><i>vcs</i> (Subversion)</dt> <dd> reference to the vcs object </dd> <dt><i>parent</i> (QWidget)</dt> <dd> parent widget </dd> </dl> <a NAME="SvnDiffDialog.__appendText" ID="SvnDiffDialog.__appendText"></a> <h4>SvnDiffDialog.__appendText</h4> <b>__appendText</b>(<i>txt</i>) <p> Private method to append text to the end of the contents pane. </p> <dl> <dt><i>txt</i> (str)</dt> <dd> text to insert </dd> </dl> <a NAME="SvnDiffDialog.__extractFileName" ID="SvnDiffDialog.__extractFileName"></a> <h4>SvnDiffDialog.__extractFileName</h4> <b>__extractFileName</b>(<i>line</i>) <p> Private method to extract the file name out of a file separator line. </p> <dl> <dt><i>line</i> (str)</dt> <dd> line to be processed </dd> </dl> <dl> <dt>Return:</dt> <dd> extracted file name </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="SvnDiffDialog.__getVersionArg" ID="SvnDiffDialog.__getVersionArg"></a> <h4>SvnDiffDialog.__getVersionArg</h4> <b>__getVersionArg</b>(<i>version</i>) <p> Private method to get a svn revision argument for the given revision. </p> <dl> <dt><i>version</i> (int or str)</dt> <dd> revision </dd> </dl> <dl> <dt>Return:</dt> <dd> version argument </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="SvnDiffDialog.__procFinished" ID="SvnDiffDialog.__procFinished"></a> <h4>SvnDiffDialog.__procFinished</h4> <b>__procFinished</b>(<i>exitCode, exitStatus</i>) <p> Private slot connected to the finished signal. </p> <dl> <dt><i>exitCode</i> (int)</dt> <dd> exit code of the process </dd> <dt><i>exitStatus</i> (QProcess.ExitStatus)</dt> <dd> exit status of the process </dd> </dl> <a NAME="SvnDiffDialog.__processFileLine" ID="SvnDiffDialog.__processFileLine"></a> <h4>SvnDiffDialog.__processFileLine</h4> <b>__processFileLine</b>(<i>line</i>) <p> Private slot to process a line giving the old/new file. </p> <dl> <dt><i>line</i> (str)</dt> <dd> line to be processed </dd> </dl> <a NAME="SvnDiffDialog.__readStderr" ID="SvnDiffDialog.__readStderr"></a> <h4>SvnDiffDialog.__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="SvnDiffDialog.__readStdout" ID="SvnDiffDialog.__readStdout"></a> <h4>SvnDiffDialog.__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="SvnDiffDialog.closeEvent" ID="SvnDiffDialog.closeEvent"></a> <h4>SvnDiffDialog.closeEvent</h4> <b>closeEvent</b>(<i>e</i>) <p> Protected slot implementing a close event handler. </p> <dl> <dt><i>e</i> (QCloseEvent)</dt> <dd> close event </dd> </dl> <a NAME="SvnDiffDialog.keyPressEvent" ID="SvnDiffDialog.keyPressEvent"></a> <h4>SvnDiffDialog.keyPressEvent</h4> <b>keyPressEvent</b>(<i>evt</i>) <p> Protected slot to handle a key press event. </p> <dl> <dt><i>evt</i> (QKeyEvent)</dt> <dd> the key press event </dd> </dl> <a NAME="SvnDiffDialog.on_buttonBox_clicked" ID="SvnDiffDialog.on_buttonBox_clicked"></a> <h4>SvnDiffDialog.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> (QAbstractButton)</dt> <dd> button that was clicked </dd> </dl> <a NAME="SvnDiffDialog.on_filesCombo_activated" ID="SvnDiffDialog.on_filesCombo_activated"></a> <h4>SvnDiffDialog.on_filesCombo_activated</h4> <b>on_filesCombo_activated</b>(<i>index</i>) <p> Private slot to handle the selection of a file. </p> <dl> <dt><i>index</i> (int)</dt> <dd> activated row </dd> </dl> <a NAME="SvnDiffDialog.on_input_returnPressed" ID="SvnDiffDialog.on_input_returnPressed"></a> <h4>SvnDiffDialog.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="SvnDiffDialog.on_passwordCheckBox_toggled" ID="SvnDiffDialog.on_passwordCheckBox_toggled"></a> <h4>SvnDiffDialog.on_passwordCheckBox_toggled</h4> <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) <p> Private slot to handle the password checkbox toggled. </p> <dl> <dt><i>isOn</i> (bool)</dt> <dd> flag indicating the status of the check box </dd> </dl> <a NAME="SvnDiffDialog.on_refreshButton_clicked" ID="SvnDiffDialog.on_refreshButton_clicked"></a> <h4>SvnDiffDialog.on_refreshButton_clicked</h4> <b>on_refreshButton_clicked</b>(<i></i>) <p> Private slot to refresh the display. </p> <a NAME="SvnDiffDialog.on_saveButton_clicked" ID="SvnDiffDialog.on_saveButton_clicked"></a> <h4>SvnDiffDialog.on_saveButton_clicked</h4> <b>on_saveButton_clicked</b>(<i></i>) <p> Private slot to handle the Save button press. </p> <p> It saves the diff shown in the dialog to a file in the local filesystem. </p> <a NAME="SvnDiffDialog.on_sendButton_clicked" ID="SvnDiffDialog.on_sendButton_clicked"></a> <h4>SvnDiffDialog.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="SvnDiffDialog.start" ID="SvnDiffDialog.start"></a> <h4>SvnDiffDialog.start</h4> <b>start</b>(<i>fn, versions=None, urls=None, summary=False, refreshable=False</i>) <p> Public slot to start the svn diff command. </p> <dl> <dt><i>fn</i> (str)</dt> <dd> filename to be diffed </dd> <dt><i>versions</i> (list of up to 2 str or None)</dt> <dd> list of versions to be diffed </dd> <dt><i>urls</i> (list of [str, str])</dt> <dd> list of repository URLs </dd> <dt><i>summary</i> (bool)</dt> <dd> flag indicating a summarizing diff (only valid for URL diffs) </dd> <dt><i>refreshable</i> (bool)</dt> <dd> flag indicating a refreshable diff </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>