eric3.VCS.mercurialPackage.ProjectBrowserHelper

Module implementing the VCS project browser helper for Mercurial.

Classes

HgProjectBrowserHelper Class implementing the VCS project browser helper for Mercurial.

Functions

None


HgProjectBrowserHelper

Class implementing the VCS project browser helper for Mercurial.

Derived from

VcsProjectBrowserHelper

Methods

HgProjectBrowserHelper Constructor
__itemsHaveFiles Private method to check, if items contain file type items.
addVCSMenu Public method used to add the VCS menu to all project browsers.
addVCSMenuBack Public method used to add the VCS menu to all project browsers.
addVCSMenuDir Public method used to add the VCS menu to all project browsers.
addVCSMenuDirMulti Public method used to add the VCS menu to all project browsers.
addVCSMenuMulti Public method used to add the VCS menu for multi selection to all project browsers.
handleHGCopy Private slot called by the context menu to copy the selected file.
handleHGExtendedDiff Private slot called by the context menu to show the difference of a file to the repository.
handleHGMove Private slot called by the context menu to move the selected file.
handleShowPopupMenu Slot called before the context menu is shown.
handleShowPopupMenuDir Slot called before the context menu is shown.
handleShowPopupMenuDirMulti Slot called before the context menu is shown.
handleShowPopupMenuMulti Slot called before the context menu (multiple selections) is shown.

HgProjectBrowserHelper (Constructor)

HgProjectBrowserHelper(vcsObject, browserObject, projectObject, isTranslationsBrowser, parent=None, name=None)

Constructor

vcsObject
reference to the vcs object
browserObject
reference to the project browser object
projectObject
reference to the project object
isTranslationsBrowser
flag indicating, the helper is requested for the translations browser (this needs some special treatment)
parent
parent widget (QWidget)
name
name of this object (string or QString)

HgProjectBrowserHelper.__itemsHaveFiles

__itemsHaveFiles(items)

Private method to check, if items contain file type items.

items
items to check (list of QListViewItems)
Returns:
flag indicating items contain file type items (boolean)

HgProjectBrowserHelper.addVCSMenu

addVCSMenu(menu)

Public method used to add the VCS menu to all project browsers.

menu
reference to the menu to be amended

HgProjectBrowserHelper.addVCSMenuBack

addVCSMenuBack(menu)

Public method used to add the VCS menu to all project browsers.

menu
reference to the menu to be amended

HgProjectBrowserHelper.addVCSMenuDir

addVCSMenuDir(menu)

Public method used to add the VCS menu to all project browsers.

menu
reference to the menu to be amended

HgProjectBrowserHelper.addVCSMenuDirMulti

addVCSMenuDirMulti(menu)

Public method used to add the VCS menu to all project browsers.

menu
reference to the menu to be amended

HgProjectBrowserHelper.addVCSMenuMulti

addVCSMenuMulti(menu)

Public method used to add the VCS menu for multi selection to all project browsers.

menu
reference to the menu to be amended

HgProjectBrowserHelper.handleHGCopy

handleHGCopy()

Private slot called by the context menu to copy the selected file.

HgProjectBrowserHelper.handleHGExtendedDiff

handleHGExtendedDiff()

Private slot called by the context menu to show the difference of a file to the repository. This gives the chance to enter the revisions to compare.

HgProjectBrowserHelper.handleHGMove

handleHGMove()

Private slot called by the context menu to move the selected file.

HgProjectBrowserHelper.handleShowPopupMenu

handleShowPopupMenu(menu, standardItems)

Slot called before the context menu is shown. It enables/disables the VCS menu entries depending on the overall VCS status and the file status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.handleShowPopupMenuDir

handleShowPopupMenuDir(menu, standardItems)

Slot called before the context menu is shown. It enables/disables the VCS menu entries depending on the overall VCS status and the directory status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.handleShowPopupMenuDirMulti

handleShowPopupMenuDirMulti(menu, standardItems)

Slot called before the context menu is shown. It enables/disables the VCS menu entries depending on the overall VCS status and the directory status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.handleShowPopupMenuMulti

handleShowPopupMenuMulti(menu, standardItems)

Slot called before the context menu (multiple selections) is shown. It enables/disables the VCS menu entries depending on the overall VCS status and the files status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

Up