# eric3.VCS.cvsPackage.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
__itemsHaveDirectories | Private method to check, if items contain directory type items.
__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.
handleCVSAddBinary | Private slot called by the context menu.
handleCVSEdit | Private slot called by the context menu to edit a file (CVS).
handleCVSHistory | Private slot called by the context menu to show the history of a file.
handleCVSUnedit | Private slot called by the context menu to unedit a file (CVS).
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.

### 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.__itemsHaveDirectories

__itemsHaveDirectories(items)

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

items
  items to check (list of QListViewItems)

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 QListViewItems)

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

### CvsProjectBrowserHelper.addVCSMenu

addVCSMenu(menu)

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

menu
  reference to the menu to be amended

### CvsProjectBrowserHelper.addVCSMenuBack

addVCSMenuBack(menu)

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

menu
  reference to the menu to be amended

### CvsProjectBrowserHelper.addVCSMenuDir

addVCSMenuDir(menu)

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

menu
  reference to the menu to be amended

### CvsProjectBrowserHelper.addVCSMenuDirMulti

addVCSMenuDirMulti(menu)

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

menu
  reference to the menu to be amended

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

### CvsProjectBrowserHelper.handleCVSAddBinary

handleCVSAddBinary()

Private slot called by the context menu. It is used to add the selected file/directory in binary mode to the VCS repository.

### CvsProjectBrowserHelper.handleCVSEdit

handleCVSEdit()

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

### CvsProjectBrowserHelper.handleCVSHistory

handleCVSHistory()

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

### CvsProjectBrowserHelper.handleCVSUnedit

handleCVSUnedit()

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

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

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

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

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