# eric4.VCS.vcsCVS.ProjectBrowserHelper

Module implementing the VCS project browser helper for CVS.

### Classes

CvsProjectBrowserHelper | Class implementing the VCS project browser helper for CVS.

### Functions

None

## CvsProjectBrowserHelper

Class implementing the VCS project browser helper for CVS.

### Derived from

VcsProjectBrowserHelper

### Methods

CvsProjectBrowserHelper | Constructor
__CVSAddBinary | Private slot called by the context menu.
__CVSEdit | Private slot called by the context menu to edit a file (CVS).
__CVSHistory | Private slot called by the context menu to show the history of a file.
__CVSUnedit | Private slot called by the context menu to unedit a file (CVS).
__itemsHaveDirectories | Private method to check, if items contain directory type items.
__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.
showPopupMenu | Slot called before the context menu is shown.
showPopupMenuDir | Slot called before the context menu is shown.
showPopupMenuDirMulti | Slot called before the context menu is shown.
showPopupMenuMulti | Slot called before the context menu (multiple selections) is shown.

#### CvsProjectBrowserHelper (Constructor)

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

#### CvsProjectBrowserHelper.__CVSAddBinary

__CVSAddBinary()

Private slot called by the context menu.

It is used to add the selected file/directory in binary mode to the VCS repository.

#### CvsProjectBrowserHelper.__CVSEdit

__CVSEdit()

Private slot called by the context menu to edit a file (CVS).

#### CvsProjectBrowserHelper.__CVSHistory

__CVSHistory()

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

#### CvsProjectBrowserHelper.__CVSUnedit

__CVSUnedit()

Private slot called by the context menu to unedit a file (CVS).

#### CvsProjectBrowserHelper.__itemsHaveDirectories

__itemsHaveDirectories(items)

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

items
  items to check (list of QTreeWidgetItems)

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

#### CvsProjectBrowserHelper.__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)

#### CvsProjectBrowserHelper._addVCSMenu

_addVCSMenu(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### CvsProjectBrowserHelper._addVCSMenuBack

_addVCSMenuBack(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### CvsProjectBrowserHelper._addVCSMenuDir

_addVCSMenuDir(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### CvsProjectBrowserHelper._addVCSMenuDirMulti

_addVCSMenuDirMulti(mainMenu)

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

mainMenu
  reference to the menu to be amended

#### CvsProjectBrowserHelper._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

#### CvsProjectBrowserHelper.showPopupMenu

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

#### CvsProjectBrowserHelper.showPopupMenuDir

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

#### CvsProjectBrowserHelper.showPopupMenuDirMulti

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

#### CvsProjectBrowserHelper.showPopupMenuMulti

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