Home ⌂Doc Index ◂Up ▴

eric6.Plugins.VcsPlugins.vcsGit.GitPushDialog

Module implementing a dialog to enter data for a Push operation.

Global Attributes

None

Classes

GitPushDialog Class implementing a dialog to enter data for a Push operation.

Functions

None


GitPushDialog

Class implementing a dialog to enter data for a Push operation.

Derived from

QDialog, Ui_GitPushDialog

Class Attributes

ForceColumn
LocalBranchColumn
PushColumn
RemoteBranchColumn

Class Methods

None

Methods

GitPushDialog Constructor
__resizeColumns Private slot to adjust the column sizes.
getData Public method to get the entered data.
on_branchesTree_itemChanged Private slot handling changes of a branch item.
on_remotesComboBox_currentTextChanged Private slot to handle changes of the selected repository.
on_selectAllCheckBox_stateChanged Private slot to select/deselect all branch items.

Static Methods

None

GitPushDialog (Constructor)

GitPushDialog(vcs, repodir, parent=None)

Constructor

vcs
reference to the git object
repodir
directory name of the local repository (string)
parent
reference to the parent widget (QWidget)

GitPushDialog.__resizeColumns

__resizeColumns()

Private slot to adjust the column sizes.

GitPushDialog.getData

getData()

Public method to get the entered data.

Returns:
remote name, list of branches to be pushed, a flag indicating to push tags as well, a flag indicating to set tracking information and the push method for submodules
Return Type:
tuple of (str, list of str, bool, bool, str)

GitPushDialog.on_branchesTree_itemChanged

on_branchesTree_itemChanged(item, column)

Private slot handling changes of a branch item.

item
reference to the changed item (QTreeWidgetItem)
column
changed column (integer)

GitPushDialog.on_remotesComboBox_currentTextChanged

on_remotesComboBox_currentTextChanged(txt)

Private slot to handle changes of the selected repository.

txt
current text of the combo box (string)

GitPushDialog.on_selectAllCheckBox_stateChanged

on_selectAllCheckBox_stateChanged(state)

Private slot to select/deselect all branch items.

state
check state of the check box (Qt.CheckState)
Up



Home ⌂Doc Index ◂Up ▴