Via the context menu that is displayed by a right
click the user can select various actions on the selected file or
directory.
Methods
|
|
|
|
__init__
|
__init__ (
self,
project,
parent=None,
)
Constructor
Arguments
- project
- reference to the project object
- parent
- parent widget of this browser (QWidget)
|
|
addDir
|
addDir ( self )
Private slot to add a directory to the OTHERS project data.
|
|
addFile
|
addFile ( self )
Private slot to add a file to the OTHERS project data.
|
|
addNode
|
addNode ( self, name )
Public slot to add a node to this browser.
Arguments
- name
- filename or directory of this node
|
|
addToOthers
|
addToOthers ( self, fn )
Private method to add file/directory to the OTHERS project data.
Arguments
- fn
- filename or directoryname to add
|
|
addVCSMenu
|
addVCSMenu ( self, menu )
Public method used to add the VCS menu to all project browsers.
Arguments
- menu
- reference to the menu to ammend (QPopupMenu)
|
|
createPopupMenus
|
createPopupMenus ( self )
Private overloaded method to generate the popup menu.
|
|
handleCVSEdit
|
handleCVSEdit ( self )
Private slot called by the context menu to edit a file (CVS).
|
|
handleCVSUnedit
|
handleCVSUnedit ( self )
Private slot called by the context menu to unedit a file (CVS).
|
|
handleCollapseAllDirs
|
handleCollapseAllDirs ( self )
Protected slot to handle the Collapse all directories menu action.
|
|
handleContextMenu
|
handleContextMenu (
self,
itm,
coord,
col,
)
Private slot to show the context menu of the listview.
Arguments
- itm
- the selected item (QListViewItem)
- coord
- the position of the mouse cursor (QPoint)
- col
- the column of the mouse cursor (int)
|
|
handleDelete
|
handleDelete ( self )
Private method to delete the selected entry from the OTHERS project data area.
|
|
handleExpandAllDirs
|
handleExpandAllDirs ( self )
Protected slot to handle the Expand all directories menu action.
|
|
handleOpen
|
handleOpen ( self )
Private slot to handle the open popup menu entry.
|
|
handlePopupMenu
|
handlePopupMenu ( self )
Private slot called by the menu aboutToShow signal.
|
|
handleRemove
|
handleRemove ( self )
Private slot to remove the selected entry from the OTHERS project data area.
|
|
handleShowPopupMenu
|
handleShowPopupMenu ( self, menu )
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.
|
|
handleVCSAdd
|
handleVCSAdd ( self )
Private slot called by the context menu.
It is used to add the selected
file/directory to the VCS repository.
|
|
handleVCSAddBinary
|
handleVCSAddBinary ( self )
Private slot called by the context menu.
It is used to add the selected
file/directory in binary mode to the VCS repository.
|
|
handleVCSAddTree
|
handleVCSAddTree ( self )
Private slot called by the context menu.
It is used to add the selected
directory tree to the VCS repository.
|
|
handleVCSRemove
|
handleVCSRemove ( self )
Private slot called by the context menu.
It is used to remove the selected
file/directory from the VCS repository.
|