# eric4.Plugins.VcsPlugins.vcsSubversion.ProjectBrowserHelper

Module implementing the VCS project browser helper for subversion.

### Global Attributes

None

### Classes

SvnProjectBrowserHelper | Class implementing the VCS project browser helper for subversion.

### Functions

None

## SvnProjectBrowserHelper

Class implementing the VCS project browser helper for subversion.

### Derived from

VcsProjectBrowserHelper

### Class Attributes

None

### Class Methods

None

### Methods

SvnProjectBrowserHelper | Constructor
__SVNAddToChangelist | Private slot called by the context menu to add files to a changelist.
__SVNBlame | Private slot called by the context menu to show the blame of a file.
__SVNBreakLock | Private slot called by the context menu to break lock files in the repository.
__SVNConfigure | Private method to open the configuration dialog.
__SVNCopy | Private slot called by the context menu to copy the selected file.
__SVNDelProp | Private slot called by the context menu to delete a subversion property of a file.
__SVNExtendedDiff | Private slot called by the context menu to show the difference of a file to the repository.
__SVNListProps | Private slot called by the context menu to list the subversion properties of a file.
__SVNLock | Private slot called by the context menu to lock files in the repository.
__SVNLogBrowser | Private slot called by the context menu to show the log browser for a file.
__SVNLogLimited | Private slot called by the context menu to show the limited log of a file.
__SVNMove | Private slot called by the context menu to move the selected file.
__SVNRemoveFromChangelist | Private slot called by the context menu to remove files from their changelist.
__SVNResolve | Private slot called by the context menu to resolve conflicts of a file.
__SVNSetProp | Private slot called by the context menu to set a subversion property of a file.
__SVNStealLock | Private slot called by the context menu to steal lock files in the repository.
__SVNUnlock | Private slot called by the context menu to unlock files in the repository.
__SVNUrlDiff | Private slot called by the context menu to show the difference of a file of two repository URLs.
__itemsHaveFiles | Private method to check, if items contain file type items.
_addVCSMenu | Protected method used to add the VCS menu to all project browsers.
_addVCSMenuBack | Protected method used to add the VCS menu to all project browsers.
_addVCSMenuDir | Protected method used to add the VCS menu to all project browsers.
_addVCSMenuDirMulti | Protected method used to add the VCS menu to all project browsers.
_addVCSMenuMulti | Protected method used to add the VCS menu for multi selection to all project browsers.
showContextMenu | Slot called before the context menu is shown.
showContextMenuDir | Slot called before the context menu is shown.
showContextMenuDirMulti | Slot called before the context menu is shown.
showContextMenuMulti | Slot called before the context menu (multiple selections) is shown.

### Static Methods

None

#### SvnProjectBrowserHelper (Constructor)

SvnProjectBrowserHelper(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)

#### SvnProjectBrowserHelper.__SVNAddToChangelist

__SVNAddToChangelist()

Private slot called by the context menu to add files to a changelist.

#### SvnProjectBrowserHelper.__SVNBlame

__SVNBlame()

Private slot called by the context menu to show the blame of a file.

#### SvnProjectBrowserHelper.__SVNBreakLock

__SVNBreakLock()

Private slot called by the context menu to break lock files in the repository.

#### SvnProjectBrowserHelper.__SVNConfigure

__SVNConfigure()

Private method to open the configuration dialog.

#### SvnProjectBrowserHelper.__SVNCopy

__SVNCopy()

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

#### SvnProjectBrowserHelper.__SVNDelProp

__SVNDelProp()

Private slot called by the context menu to delete a subversion property of a file.

#### SvnProjectBrowserHelper.__SVNExtendedDiff

__SVNExtendedDiff()

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.

#### SvnProjectBrowserHelper.__SVNListProps

__SVNListProps()

Private slot called by the context menu to list the subversion properties of a file.

#### SvnProjectBrowserHelper.__SVNLock

__SVNLock()

Private slot called by the context menu to lock files in the repository.

#### SvnProjectBrowserHelper.__SVNLogBrowser

__SVNLogBrowser()

Private slot called by the context menu to show the log browser for a file.

#### SvnProjectBrowserHelper.__SVNLogLimited

__SVNLogLimited()

Private slot called by the context menu to show the limited log of a file.

#### SvnProjectBrowserHelper.__SVNMove

__SVNMove()

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

#### SvnProjectBrowserHelper.__SVNRemoveFromChangelist

__SVNRemoveFromChangelist()

Private slot called by the context menu to remove files from their changelist.

#### SvnProjectBrowserHelper.__SVNResolve

__SVNResolve()

Private slot called by the context menu to resolve conflicts of a file.

#### SvnProjectBrowserHelper.__SVNSetProp

__SVNSetProp()

Private slot called by the context menu to set a subversion property of a file.

#### SvnProjectBrowserHelper.__SVNStealLock

__SVNStealLock()

Private slot called by the context menu to steal lock files in the repository.

#### SvnProjectBrowserHelper.__SVNUnlock

__SVNUnlock()

Private slot called by the context menu to unlock files in the repository.

#### SvnProjectBrowserHelper.__SVNUrlDiff

__SVNUrlDiff()

Private slot called by the context menu to show the difference of a file of two repository URLs.

This gives the chance to enter the repository URLs to compare.

#### SvnProjectBrowserHelper.__itemsHaveFiles

__itemsHaveFiles(items)

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

items
  items to check (list of QTreeWidgetItems)

Returns:
  flag indicating items contain file type items (boolean)

#### SvnProjectBrowserHelper._addVCSMenu

_addVCSMenu(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### SvnProjectBrowserHelper._addVCSMenuBack

_addVCSMenuBack(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### SvnProjectBrowserHelper._addVCSMenuDir

_addVCSMenuDir(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### SvnProjectBrowserHelper._addVCSMenuDirMulti

_addVCSMenuDirMulti(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### SvnProjectBrowserHelper._addVCSMenuMulti

_addVCSMenuMulti(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### SvnProjectBrowserHelper.showContextMenu

showContextMenu(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

#### SvnProjectBrowserHelper.showContextMenuDir

showContextMenuDir(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

#### SvnProjectBrowserHelper.showContextMenuDirMulti

showContextMenuDirMulti(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

#### SvnProjectBrowserHelper.showContextMenuMulti

showContextMenuMulti(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