eric7.Plugins.VcsPlugins.vcsGit.GitStashBrowserDialog

Module implementing a dialog to show the stashes.

Global Attributes

None

Classes

GitStashBrowserDialog Class implementing a dialog to show the stashes.

Functions

None


GitStashBrowserDialog

Class implementing a dialog to show the stashes.

Derived from

QWidget, Ui_GitStashBrowserDialog

Class Attributes

DateColumn
FileStatisticsRole
MessageColumn
NameColumn
Separator
TotalStatisticsRole

Class Methods

None

Methods

GitStashBrowserDialog Constructor
__apply Private slot to apply the selected stash but keep it.
__branch Private slot to create a branch from the selected stash.
__clear Private slot to delete all stashes.
__drop Private slot to delete the selected stash.
__finish Private slot called when the process finished or the user pressed the button.
__generateStashEntry Private method to generate the stash items.
__getStashEntries Private method to retrieve the list of stashes.
__pop Private slot to apply the selected stash and delete it.
__procFinished Private slot connected to the finished signal.
__processBuffer Private method to process the buffered output of the git stash 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.
__resizeColumnsStashes Private method to resize the shelve list columns.
__showPatch Private slot to show the contents of the selected stash.
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_refreshButton_clicked Private slot to refresh the list of shelves.
on_sendButton_clicked Private slot to send the input to the git process.
on_stashList_currentItemChanged Private slot called, when the current item of the stash list changes.
on_stashList_customContextMenuRequested Private slot to show the context menu of the stash list.
show Public slot to show the dialog.
start Public slot to start the git stash command.

Static Methods

None

GitStashBrowserDialog (Constructor)

GitStashBrowserDialog(vcs, parent=None)

Constructor

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

GitStashBrowserDialog.__apply

__apply()

Private slot to apply the selected stash but keep it.

GitStashBrowserDialog.__branch

__branch()

Private slot to create a branch from the selected stash.

GitStashBrowserDialog.__clear

__clear()

Private slot to delete all stashes.

GitStashBrowserDialog.__drop

__drop()

Private slot to delete the selected stash.

GitStashBrowserDialog.__finish

__finish()

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

GitStashBrowserDialog.__generateStashEntry

__generateStashEntry(name, date, message)

Private method to generate the stash items.

name (str)
name of the stash
date (str)
date the stash was created
message (str)
stash message

GitStashBrowserDialog.__getStashEntries

__getStashEntries()

Private method to retrieve the list of stashes.

GitStashBrowserDialog.__pop

__pop()

Private slot to apply the selected stash and delete it.

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

GitStashBrowserDialog.__processBuffer

__processBuffer()

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

GitStashBrowserDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

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

GitStashBrowserDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

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

GitStashBrowserDialog.__resetUI

__resetUI()

Private method to reset the user interface.

GitStashBrowserDialog.__resizeColumnsStashes

__resizeColumnsStashes()

Private method to resize the shelve list columns.

GitStashBrowserDialog.__showPatch

__showPatch()

Private slot to show the contents of the selected stash.

GitStashBrowserDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
close event

GitStashBrowserDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
the key press event

GitStashBrowserDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button (QAbstractButton)
button that was clicked

GitStashBrowserDialog.on_input_returnPressed

on_input_returnPressed()

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

GitStashBrowserDialog.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

GitStashBrowserDialog.on_refreshButton_clicked

on_refreshButton_clicked()

Private slot to refresh the list of shelves.

GitStashBrowserDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the git process.

GitStashBrowserDialog.on_stashList_currentItemChanged

on_stashList_currentItemChanged(current, _previous)

Private slot called, when the current item of the stash list changes.

current (QTreeWidgetItem)
reference to the new current item
_previous (QTreeWidgetItem)
reference to the old current item (unused)

GitStashBrowserDialog.on_stashList_customContextMenuRequested

on_stashList_customContextMenuRequested(pos)

Private slot to show the context menu of the stash list.

pos (QPoint)
position of the mouse pointer

GitStashBrowserDialog.show

show()

Public slot to show the dialog.

GitStashBrowserDialog.start

start(projectDir)

Public slot to start the git stash command.

projectDir (str)
name of the project directory
Up