src/eric7/Documentation/Source/eric7.Plugins.VcsPlugins.vcsGit.GitBlameDialog.html

Mon, 22 Apr 2024 18:23:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 22 Apr 2024 18:23:20 +0200
branch
eric7
changeset 10690
fab36645aa7d
parent 10479
856476537696
permissions
-rw-r--r--

Changed the source code and the source code documentation to improve the indication of unused method/function arguments.

<!DOCTYPE html>
<html><head>
<title>eric7.Plugins.VcsPlugins.vcsGit.GitBlameDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Plugins.VcsPlugins.vcsGit.GitBlameDialog</h1>
<p>
Module implementing a dialog to show the output of git blame.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#GitBlameDialog">GitBlameDialog</a></td>
<td>Class implementing a dialog to show the output of git blame.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="GitBlameDialog" ID="GitBlameDialog"></a>
<h2>GitBlameDialog</h2>
<p>
    Class implementing a dialog to show the output of git blame.
</p>

<h3>Derived from</h3>
QDialog, Ui_GitBlameDialog
<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="#GitBlameDialog.__init__">GitBlameDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__finish">__finish</a></td>
<td>Private slot called when the process finished or the user pressed the button.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__generateItem">__generateItem</a></td>
<td>Private method to generate a blame item in the annotation list.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__procFinished">__procFinished</a></td>
<td>Private slot connected to the finished signal.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__readStderr">__readStderr</a></td>
<td>Private slot to handle the readyReadStderr signal.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__readStdout">__readStdout</a></td>
<td>Private slot to handle the readyReadStdout signal.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.__resizeColumns">__resizeColumns</a></td>
<td>Private method to resize the list columns.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.closeEvent">closeEvent</a></td>
<td>Protected slot implementing a close event handler.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.keyPressEvent">keyPressEvent</a></td>
<td>Protected slot to handle a key press event.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.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="#GitBlameDialog.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="#GitBlameDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td>
<td>Private slot to handle the password checkbox toggled.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.on_sendButton_clicked">on_sendButton_clicked</a></td>
<td>Private slot to send the input to the git process.</td>
</tr>
<tr>
<td><a href="#GitBlameDialog.start">start</a></td>
<td>Public slot to start the blame command.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="GitBlameDialog.__init__" ID="GitBlameDialog.__init__"></a>
<h4>GitBlameDialog (Constructor)</h4>
<b>GitBlameDialog</b>(<i>vcs, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>vcs</i> (Git)</dt>
<dd>
reference to the vcs object
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="GitBlameDialog.__finish" ID="GitBlameDialog.__finish"></a>
<h4>GitBlameDialog.__finish</h4>
<b>__finish</b>(<i></i>)
<p>
        Private slot called when the process finished or the user pressed
        the button.
</p>

<a NAME="GitBlameDialog.__generateItem" ID="GitBlameDialog.__generateItem"></a>
<h4>GitBlameDialog.__generateItem</h4>
<b>__generateItem</b>(<i>mark, commitId, author, date, time, lineno, text</i>)
<p>
        Private method to generate a blame item in the annotation list.
</p>

<dl>

<dt><i>mark</i> (str)</dt>
<dd>
mark character
</dd>
<dt><i>commitId</i> (str)</dt>
<dd>
commit identifier
</dd>
<dt><i>author</i> (str)</dt>
<dd>
author of the change
</dd>
<dt><i>date</i> (str)</dt>
<dd>
date of the change
</dd>
<dt><i>time</i> (str)</dt>
<dd>
time of the change
</dd>
<dt><i>lineno</i> (str)</dt>
<dd>
line number of the change
</dd>
<dt><i>text</i> (str)</dt>
<dd>
text line of the file
</dd>
</dl>
<a NAME="GitBlameDialog.__procFinished" ID="GitBlameDialog.__procFinished"></a>
<h4>GitBlameDialog.__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 (unused)
</dd>
<dt><i>_exitStatus</i> (QProcess.ExitStatus)</dt>
<dd>
exit status of the process (unused)
</dd>
</dl>
<a NAME="GitBlameDialog.__readStderr" ID="GitBlameDialog.__readStderr"></a>
<h4>GitBlameDialog.__readStderr</h4>
<b>__readStderr</b>(<i></i>)
<p>
        Private slot to handle the readyReadStderr signal.
</p>
<p>
        It reads the error output of the process and inserts it into the
        error pane.
</p>

<a NAME="GitBlameDialog.__readStdout" ID="GitBlameDialog.__readStdout"></a>
<h4>GitBlameDialog.__readStdout</h4>
<b>__readStdout</b>(<i></i>)
<p>
        Private slot to handle the readyReadStdout signal.
</p>
<p>
        It reads the output of the process, formats it and inserts it into
        the annotation list.
</p>

<a NAME="GitBlameDialog.__resizeColumns" ID="GitBlameDialog.__resizeColumns"></a>
<h4>GitBlameDialog.__resizeColumns</h4>
<b>__resizeColumns</b>(<i></i>)
<p>
        Private method to resize the list columns.
</p>

<a NAME="GitBlameDialog.closeEvent" ID="GitBlameDialog.closeEvent"></a>
<h4>GitBlameDialog.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="GitBlameDialog.keyPressEvent" ID="GitBlameDialog.keyPressEvent"></a>
<h4>GitBlameDialog.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="GitBlameDialog.on_buttonBox_clicked" ID="GitBlameDialog.on_buttonBox_clicked"></a>
<h4>GitBlameDialog.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="GitBlameDialog.on_input_returnPressed" ID="GitBlameDialog.on_input_returnPressed"></a>
<h4>GitBlameDialog.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="GitBlameDialog.on_passwordCheckBox_toggled" ID="GitBlameDialog.on_passwordCheckBox_toggled"></a>
<h4>GitBlameDialog.on_passwordCheckBox_toggled</h4>
<b>on_passwordCheckBox_toggled</b>(<i>checked</i>)
<p>
        Private slot to handle the password checkbox toggled.
</p>

<dl>

<dt><i>checked</i> (bool)</dt>
<dd>
flag indicating the status of the check box
</dd>
</dl>
<a NAME="GitBlameDialog.on_sendButton_clicked" ID="GitBlameDialog.on_sendButton_clicked"></a>
<h4>GitBlameDialog.on_sendButton_clicked</h4>
<b>on_sendButton_clicked</b>(<i></i>)
<p>
        Private slot to send the input to the git process.
</p>

<a NAME="GitBlameDialog.start" ID="GitBlameDialog.start"></a>
<h4>GitBlameDialog.start</h4>
<b>start</b>(<i>fn, skiplist=""</i>)
<p>
        Public slot to start the blame command.
</p>

<dl>

<dt><i>fn</i> (str)</dt>
<dd>
filename to show the blame for
</dd>
<dt><i>skiplist</i> (str)</dt>
<dd>
name of a skip list file
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial