eric7.Plugins.VcsPlugins.vcsGit.GitBlameDialog

Module implementing a dialog to show the output of git blame.

Global Attributes

None

Classes

GitBlameDialog Class implementing a dialog to show the output of git blame.

Functions

None


GitBlameDialog

Class implementing a dialog to show the output of git blame.

Derived from

QDialog, Ui_GitBlameDialog

Class Attributes

None

Class Methods

None

Methods

GitBlameDialog Constructor
__finish Private slot called when the process finished or the user pressed the button.
__generateItem Private method to generate a blame item in the annotation list.
__procFinished Private slot connected to the finished signal.
__readStderr Private slot to handle the readyReadStderr signal.
__readStdout Private slot to handle the readyReadStdout signal.
__resizeColumns Private method to resize the list columns.
closeEvent Protected slot implementing a close event handler.
keyPressEvent Protected slot to handle a key press event.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_input_returnPressed Private slot to handle the press of the return key in the input field.
on_passwordCheckBox_toggled Private slot to handle the password checkbox toggled.
on_sendButton_clicked Private slot to send the input to the git process.
start Public slot to start the blame command.

Static Methods

None

GitBlameDialog (Constructor)

GitBlameDialog(vcs, parent=None)

Constructor

vcs (Git)
reference to the vcs object
parent (QWidget)
reference to the parent widget

GitBlameDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the button.

GitBlameDialog.__generateItem

__generateItem(mark, commitId, author, date, time, lineno, text)

Private method to generate a blame item in the annotation list.

mark (str)
mark character
commitId (str)
commit identifier
author (str)
author of the change
date (str)
date of the change
time (str)
time of the change
lineno (str)
line number of the change
text (str)
text line of the file

GitBlameDialog.__procFinished

__procFinished(_exitCode, _exitStatus)

Private slot connected to the finished signal.

_exitCode (int)
exit code of the process (unused)
_exitStatus (QProcess.ExitStatus)
exit status of the process (unused)

GitBlameDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStderr signal.

It reads the error output of the process and inserts it into the error pane.

GitBlameDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStdout signal.

It reads the output of the process, formats it and inserts it into the annotation list.

GitBlameDialog.__resizeColumns

__resizeColumns()

Private method to resize the list columns.

GitBlameDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
close event

GitBlameDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
the key press event

GitBlameDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
button that was clicked

GitBlameDialog.on_input_returnPressed

on_input_returnPressed()

Private slot to handle the press of the return key in the input field.

GitBlameDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(checked)

Private slot to handle the password checkbox toggled.

checked (bool)
flag indicating the status of the check box

GitBlameDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the git process.

GitBlameDialog.start

start(fn, skiplist="")

Public slot to start the blame command.

fn (str)
filename to show the blame for
skiplist (str)
name of a skip list file
Up