Via the context menu that
is displayed by a right click the user can select various actions on
the selected file.
Methods
|
|
__init__
createPopupMenus
getOpenChildren
handleDelete
handleEditorSaved
handlePopupMenu
handleProjectSourceAdded
handleRemove
setOpenChildren
|
|
__init__
|
__init__ (
self,
project,
parent=None,
)
Constructor
Arguments
- project
- reference to the project object
- parent
- parent widget of this browser (QWidget)
|
|
createPopupMenus
|
createPopupMenus ( self )
Private overloaded method to generate the popup menu.
|
|
getOpenChildren
|
getOpenChildren ( self, itm )
Private method to get a list of open siblings of QListViewItem itm.
Returns
list of open siblings
|
|
handleDelete
|
handleDelete ( self )
Private method to delete a file from the project.
|
|
handleEditorSaved
|
handleEditorSaved ( self, fn )
Public slot to handle the editorSaved signal.
Arguments
- fn
- filename of the file that was saved
|
|
handlePopupMenu
|
handlePopupMenu ( self )
Private slot called by the pyMenu aboutToShow signal.
|
|
handleProjectSourceAdded
|
handleProjectSourceAdded ( self, fn )
Private slot to handle the projectSourceAdded signal.
Arguments
- fn
- filename of the file that was added (string)
|
|
handleRemove
|
handleRemove ( self )
Private method to remove a file from the project.
|
|
setOpenChildren
|
setOpenChildren (
self,
itm,
childstring,
)
Private method to find a child of a node and open it.
Arguments
- itm
- the node to check
- childstring
- displaytext to search for (QString)
Returns
flag indicating success
|