eric7.Plugins.VcsPlugins.vcsGit.GitReflogBrowserDialog

Module implementing a dialog to browse the reflog history.

Global Attributes

None

Classes

GitReflogBrowserDialog Class implementing a dialog to browse the reflog history.

Functions

None


GitReflogBrowserDialog

Class implementing a dialog to browse the reflog history.

Derived from

QWidget, Ui_GitReflogBrowserDialog

Class Attributes

CommitIdColumn
NameColumn
OperationColumn
SelectorColumn
SubjectColumn

Class Methods

None

Methods

GitReflogBrowserDialog Constructor
__finish Private slot called when the process finished or the user pressed the button.
__generateReflogItem Private method to generate a reflog tree entry.
__getReflogEntries Private method to retrieve reflog entries from the repository.
__initData Private method to (re-)initialize some data.
__procFinished Private slot connected to the finished signal.
__processBuffer Private method to process the buffered output of the git log command.
__readStderr Private slot to handle the readyReadStandardError signal.
__readStdout Private slot to handle the readyReadStandardOutput signal.
__resetUI Private method to reset the user interface.
__resizeColumnsLog Private method to resize the log tree columns.
__showError Private slot to show some error.
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_nextButton_clicked Private slot to handle the Next button.
on_passwordCheckBox_toggled Private slot to handle the password checkbox toggled.
on_refreshButton_clicked Private slot to refresh the log.
on_sendButton_clicked Private slot to send the input to the git process.
show Public slot to show the dialog.
start Public slot to start the git log command.

Static Methods

None

GitReflogBrowserDialog (Constructor)

GitReflogBrowserDialog(vcs, parent=None)

Constructor

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

GitReflogBrowserDialog.__finish

__finish()

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

GitReflogBrowserDialog.__generateReflogItem

__generateReflogItem(commitId, selector, name, subject)

Private method to generate a reflog tree entry.

commitId (str)
commit id info
selector (str)
selector info
name (str)
name info
subject (str)
subject of the reflog entry
Return:
reference to the generated item
Return Type:
QTreeWidgetItem

GitReflogBrowserDialog.__getReflogEntries

__getReflogEntries(skip=0)

Private method to retrieve reflog entries from the repository.

skip (int)
number of reflog entries to skip

GitReflogBrowserDialog.__initData

__initData()

Private method to (re-)initialize some data.

GitReflogBrowserDialog.__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)

GitReflogBrowserDialog.__processBuffer

__processBuffer()

Private method to process the buffered output of the git log command.

GitReflogBrowserDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

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

GitReflogBrowserDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

It reads the output of the process and inserts it into a buffer.

GitReflogBrowserDialog.__resetUI

__resetUI()

Private method to reset the user interface.

GitReflogBrowserDialog.__resizeColumnsLog

__resizeColumnsLog()

Private method to resize the log tree columns.

GitReflogBrowserDialog.__showError

__showError(out)

Private slot to show some error.

out (str)
error to be shown

GitReflogBrowserDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
close event

GitReflogBrowserDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
the key press event

GitReflogBrowserDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button (QAbstractButton)
button that was clicked

GitReflogBrowserDialog.on_input_returnPressed

on_input_returnPressed()

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

GitReflogBrowserDialog.on_nextButton_clicked

on_nextButton_clicked()

Private slot to handle the Next button.

GitReflogBrowserDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

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

GitReflogBrowserDialog.on_refreshButton_clicked

on_refreshButton_clicked()

Private slot to refresh the log.

GitReflogBrowserDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the git process.

GitReflogBrowserDialog.show

show()

Public slot to show the dialog.

GitReflogBrowserDialog.start

start(projectdir)

Public slot to start the git log command.

projectdir (str)
directory name of the project
Up