eric3.Project.ProjectBrowser

Module implementing the project browser part of the eric3 UI.

Classes

PBrowser Baseclass implementing common functionality for the various browsers.
ProjectBrowser Class implementing the project browser part of the eric3 UI.
ProjectBrowserDirectory Class implementig a BrowserNode that represents a directory.
ProjectBrowserSimpleDir Class implementing a small wrapper around BrowserNode.
ProjectFormsBrowser A class used to display the forms part of the project.
ProjectInterfacesBrowser A class used to display the interfaces (IDL) part of the project.
ProjectOthersBrowser A class used to display the parts of the project, that don't fit the other categories.
ProjectSourcesBrowser A class used to display the Sources part of the project.
ProjectTranslationsBrowser A class used to display the translations part of the project.

Functions

None

PBrowser

Baseclass implementing common functionality for the various browsers.

Derived from

Browser

Methods

PBrowser Constructor
addVCSMenu Public method used to add the VCS menu to all project browsers.
createPopupMenus Private overloaded method to generate the popup menu.
findItem Reimplemented method
findParentNode Private method used to find or create the parent node.
handleCVSEdit Private slot called by the context menu to edit a file (CVS).
handleCVSMerge Private slot called by the context menu to merge changes into to a file.
handleCVSUnedit Private slot called by the context menu to unedit a file (CVS).
handleCollapseAllDirs Protected slot to handle the 'Collapse all directories' menu action.
handleExpandAllDirs Protected slot to handle the 'Expand all directories' menu action.
handleNewProject Private slot to handle the newProject signal.
handleProjectClosed Private slot to handle the projectClosed signal.
handleProjectOpened Private slot to handle the projectOpened signal.
handleSVNCopy Private slot called by the context menu to copy the selected file (Subversion).
handleSVNDelProp Private slot called by the context menu to delete a subversion property of a file.
handleSVNListProps Private slot called by the context menu to list the subversion properties of a file.
handleSVNMove Private slot called by the context menu to move the selected file (Subversion).
handleSVNResolve Private slot called by the context menu to resolve conflicts of a file.
handleSVNSetProp Private slot called by the context menu to set a subversion property of a file.
handleShowPopupMenu Slot called before the context menu is shown.
handleVCSAdd Private slot called by the context menu to add the selected file to the VCS repository.
handleVCSCommit Private slot called by the context menu to commit the changes to the VCS repository.
handleVCSDiff Private slot called by the context menu to show the difference of a file to the repository.
handleVCSHistory Private slot called by the context menu to show the history of a file.
handleVCSLog Private slot called by the context menu to show the VCS log of a file.
handleVCSRemove Private slot called by the context menu to remove the selected file from the VCS repository.
handleVCSRevert Private slot called by the context menu to revert changes made to a file.
handleVCSStatus Private slot called by the context menu to show the status of a file.
handleVCSUpdate Private slot called by the context menu to update a file from the VCS repository.
nodeAdded Public method used to perform common operations on a new node.
populateTree Private method used to populate the listview.
removeNode Private method to remove a parent (dir) node, if it doesn't have any children.
updateVCSStatus Private method used to set the vcs status of a node.

PBrowser (Constructor)

PBrowser(project, pdataKey, parent=None)

Constructor

parent
parent widget of this browser
pdataKey
key of the filelist the browser object is handling (string)
project
reference to the project object

PBrowser.addVCSMenu

addVCSMenu(menu)

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

menu
reference to the menu to be amended

PBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

PBrowser.findItem

findItem(text, column, node=None)

Reimplemented method

It is used to find a specific item with text in column, that is a child of node. If node is None, a child of the QListView is searched.

column
index of column to search in (int)
node
start point of the search
text
text to search for (string or QString)
Returns:
the found item

PBrowser.findParentNode

findParentNode(fn)

Private method used to find or create the parent node.

fn
filename to use for the search
Returns:
tuple of two values giving the parent node and the shortened filename

PBrowser.handleCVSEdit

handleCVSEdit()

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

PBrowser.handleCVSMerge

handleCVSMerge()

Private slot called by the context menu to merge changes into to a file.

PBrowser.handleCVSUnedit

handleCVSUnedit()

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

PBrowser.handleCollapseAllDirs

handleCollapseAllDirs()

Protected slot to handle the 'Collapse all directories' menu action.

PBrowser.handleExpandAllDirs

handleExpandAllDirs()

Protected slot to handle the 'Expand all directories' menu action.

PBrowser.handleNewProject

handleNewProject()

Private slot to handle the newProject signal.

PBrowser.handleProjectClosed

handleProjectClosed()

Private slot to handle the projectClosed signal.

PBrowser.handleProjectOpened

handleProjectOpened()

Private slot to handle the projectOpened signal.

PBrowser.handleSVNCopy

handleSVNCopy()

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

PBrowser.handleSVNDelProp

handleSVNDelProp()

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

PBrowser.handleSVNListProps

handleSVNListProps()

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

PBrowser.handleSVNMove

handleSVNMove()

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

PBrowser.handleSVNResolve

handleSVNResolve()

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

PBrowser.handleSVNSetProp

handleSVNSetProp()

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

PBrowser.handleShowPopupMenu

handleShowPopupMenu(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.

menu
reference to the menu to be shown

PBrowser.handleVCSAdd

handleVCSAdd()

Private slot called by the context menu to add the selected file to the VCS repository.

PBrowser.handleVCSCommit

handleVCSCommit()

Private slot called by the context menu to commit the changes to the VCS repository.

PBrowser.handleVCSDiff

handleVCSDiff()

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

PBrowser.handleVCSHistory

handleVCSHistory()

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

PBrowser.handleVCSLog

handleVCSLog()

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

PBrowser.handleVCSRemove

handleVCSRemove()

Private slot called by the context menu to remove the selected file from the VCS repository.

PBrowser.handleVCSRevert

handleVCSRevert()

Private slot called by the context menu to revert changes made to a file.

PBrowser.handleVCSStatus

handleVCSStatus()

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

PBrowser.handleVCSUpdate

handleVCSUpdate()

Private slot called by the context menu to update a file from the VCS repository.

PBrowser.nodeAdded

nodeAdded(node, name)

Public method used to perform common operations on a new node.

name
filename belonging to this node
node
node to work on

PBrowser.populateTree

populateTree()

Private method used to populate the listview.

PBrowser.removeNode

removeNode(node)

Private method to remove a parent (dir) node, if it doesn't have any children.

node
node to remove

PBrowser.updateVCSStatus

updateVCSStatus(node, name)

Private method used to set the vcs status of a node.

name
filename belonging to this node
node
node to work on

Up

ProjectBrowser

Class implementing the project browser part of the eric3 UI.

It generates a widget with four tabs. The individual tabs contain the project sources browser, the project forms browser, the project translations browser and a browser for stuff that doesn't fit these categories.

Signals

editorSaved(string)
emitted after an editor has been saved

Derived from

QTabWidget

Methods

ProjectBrowser Constructor
handleEditorSaved Public slot to handle the editorSaved signal.
handleProjectOpened Private slot to handle the projectOpened signal.

ProjectBrowser (Constructor)

ProjectBrowser(project, qtdir, parent=None)

Constructor

parent
parent widget (QWidget)
project
reference to the project object
qtdir
Qt installation directory (string)

ProjectBrowser.handleEditorSaved

handleEditorSaved(fn)

Public slot to handle the editorSaved signal.

It simply reemits it.

fn
The filename of the saved files. (string or QString)

ProjectBrowser.handleProjectOpened

handleProjectOpened()

Private slot to handle the projectOpened signal.

Up

ProjectBrowserDirectory

Class implementig a BrowserNode that represents a directory.

Derived from

BrowserDirectory

Methods

ProjectBrowserDirectory Constructor
setOpen Slot called to open/close the directory node.

ProjectBrowserDirectory (Constructor)

ProjectBrowserDirectory(parent, dinfo, after, full=1, bold=0, vcs=None)

Constructor

after
the sibling this node is position after or None, if this is the first child
bold
flag indicating whether the directory name should be displayed in bold
dinfo
name of the directory (string or QString)
full
flag indicating whether the full pathname of the directory should be displayed
parent
the parent Browser or BrowserNode
vcs
if a vcs object is given, the VCS status of the files contained in the directory is displayed

ProjectBrowserDirectory.setOpen

setOpen(o)

Slot called to open/close the directory node.

o
flag indicating the open status (boolean)

Up

ProjectBrowserSimpleDir

Class implementing a small wrapper around BrowserNode.

It sets a pixmap depending on the open state.

Derived from

BrowserNode

Methods

ProjectBrowserSimpleDir Constructor
setOpen Slot called to open/close the tree node.

ProjectBrowserSimpleDir (Constructor)

ProjectBrowserSimpleDir(parent, text)

Constructor

parent
parent widget of this item (QListView or QListViewItem)
text
text to be displayed (string or QString)

ProjectBrowserSimpleDir.setOpen

setOpen(o)

Slot called to open/close the tree node.

It sets the pixmap displayed next to the tree node depending of the open status of the node.

o
flag indicating the open status (boolean)

Up

ProjectFormsBrowser

A class used to display the forms part of the project.

Via the context menu that is displayed by a right click the user can select various actions on the selected file.

Signals

appendStderr(string)
emitted after something was received from a QProcess on stderr
appendStdout(string)
emitted after something was received from a QProcess on stdout
projectSourceAdded(string)
emitted after a compile finished successfully

Derived from

PBrowser

Methods

ProjectFormsBrowser Constructor
createPopupMenus Private overloaded method to generate the popup menu.
handleCompile Private method to compile a form to a python file.
handleCompileAll Private method to compile all forms to python files.
handleCompileUI Privat method to compile a .ui file to a .py file.
handleCompileUIDone Private slot to handle the processExit signal of the pyuic process.
handleDelete Private method to delete a file from the project.
handleNewForm Private slot to handle the New Form menu action.
handlePopupMenu Private slot called by the pyMenu aboutToShow signal.
handleProjectFormAdded Private slot to handle the projectFormAdded signal.
handleRemove Private method to remove a file from the project.
handleStderr Private slot to handle the readyReadStderr signal of the pyuic process.
handleStdout Private slot to handle the readyReadStdout signal of the pyuic process.
handleSubclass Private method to generate a subclass for the form.

ProjectFormsBrowser (Constructor)

ProjectFormsBrowser(project, qtdir, parent=None)

Constructor

parent
parent widget of this browser (QWidget)
project
reference to the project object
qtdir
path of the Qt installation directory (string)

ProjectFormsBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

ProjectFormsBrowser.handleCompile

handleCompile()

Private method to compile a form to a python file.

ProjectFormsBrowser.handleCompileAll

handleCompileAll()

Private method to compile all forms to python files.

ProjectFormsBrowser.handleCompileUI

handleCompileUI(fn, noDialog = 0, progress = None, subclass = 0)

Privat method to compile a .ui file to a .py file.

fn
filename of the .ui file to be compiled
noDialog
flag indicating silent operations
progress
reference to the progress dialog
subclass
flag indicating, if a subclass generation is to be done
Returns:
reference to the compile process (QProcess)

ProjectFormsBrowser.handleCompileUIDone

handleCompileUIDone()

Private slot to handle the processExit signal of the pyuic process.

ProjectFormsBrowser.handleDelete

handleDelete()

Private method to delete a file from the project.

ProjectFormsBrowser.handleNewForm

handleNewForm()

Private slot to handle the New Form menu action.

ProjectFormsBrowser.handlePopupMenu

handlePopupMenu()

Private slot called by the pyMenu aboutToShow signal.

ProjectFormsBrowser.handleProjectFormAdded

handleProjectFormAdded(fn)

Private slot to handle the projectFormAdded signal.

fn
Filename of the added forms file. (QString)

ProjectFormsBrowser.handleRemove

handleRemove()

Private method to remove a file from the project.

ProjectFormsBrowser.handleStderr

handleStderr()

Private slot to handle the readyReadStderr signal of the pyuic process.

ProjectFormsBrowser.handleStdout

handleStdout()

Private slot to handle the readyReadStdout signal of the pyuic process.

ProjectFormsBrowser.handleSubclass

handleSubclass()

Private method to generate a subclass for the form.

Up

ProjectInterfacesBrowser

A class used to display the interfaces (IDL) part of the project.

Via the context menu that is displayed by a right click the user can select various actions on the selected file.

Signals

appendStderr(string)
emitted after something was received from a QProcess on stderr
appendStdout(string)
emitted after something was received from a QProcess on stdout
closeSourceWindow(string)
emitted after a file has been removed/deleted from the project
projectSourceAdded(string)
emitted after a compile finished successfully

Derived from

PBrowser

Methods

ProjectInterfacesBrowser Constructor
createPopupMenus Private overloaded method to generate the popup menu.
handleCompile Private method to compile an interface to python.
handleCompileAll Private method to compile all interfaces to python.
handleCompileIDL Privat method to compile a .idl file to python.
handleCompileIDLDone Private slot to handle the processExit signal of the omniidl process.
handleDelete Private method to delete a file from the project.
handlePopupMenu Private slot called by the pyMenu aboutToShow signal.
handleProjectInterfaceAdded Private slot to handle the projectInterfaceAdded signal.
handleRemove Private method to remove a file from the project.
handleStderr Private slot to handle the readyReadStderr signal of the pyuic process.
handleStdout Private slot to handle the readyReadStdout signal of the pyuic process.

ProjectInterfacesBrowser (Constructor)

ProjectInterfacesBrowser(project, parent=None)

Constructor

parent
parent widget of this browser (QWidget)
project
reference to the project object

ProjectInterfacesBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

ProjectInterfacesBrowser.handleCompile

handleCompile()

Private method to compile an interface to python.

ProjectInterfacesBrowser.handleCompileAll

handleCompileAll()

Private method to compile all interfaces to python.

ProjectInterfacesBrowser.handleCompileIDL

handleCompileIDL(fn, noDialog = 0, progress = None)

Privat method to compile a .idl file to python.

fn
filename of the .idl file to be compiled
noDialog
flag indicating silent operations
progress
reference to the progress dialog
Returns:
reference to the compile process (QProcess)

ProjectInterfacesBrowser.handleCompileIDLDone

handleCompileIDLDone()

Private slot to handle the processExit signal of the omniidl process.

ProjectInterfacesBrowser.handleDelete

handleDelete()

Private method to delete a file from the project.

ProjectInterfacesBrowser.handlePopupMenu

handlePopupMenu()

Private slot called by the pyMenu aboutToShow signal.

ProjectInterfacesBrowser.handleProjectInterfaceAdded

handleProjectInterfaceAdded(fn)

Private slot to handle the projectInterfaceAdded signal.

fn
Filename of the interface file (QString)

ProjectInterfacesBrowser.handleRemove

handleRemove()

Private method to remove a file from the project.

ProjectInterfacesBrowser.handleStderr

handleStderr()

Private slot to handle the readyReadStderr signal of the pyuic process.

ProjectInterfacesBrowser.handleStdout

handleStdout()

Private slot to handle the readyReadStdout signal of the pyuic process.

Up

ProjectOthersBrowser

A class used to display the parts of the project, that don't fit the other categories.

Via the context menu that is displayed by a right click the user can select various actions on the selected file or directory.

Signals

closeSourceWindow(string)
emitted after a file has been removed/deleted from the project
pythonFile(string)
emitted to open a file

Derived from

PBrowser

Methods

ProjectOthersBrowser Constructor
addNode Public slot to add a node to this browser.
addVCSMenu Public method used to add the VCS menu to all project browsers.
createPopupMenus Private overloaded method to generate the popup menu.
handleCVSEdit Private slot called by the context menu to edit a file (CVS).
handleCVSUnedit Private slot called by the context menu to unedit a file (CVS).
handleCollapseAllDirs Protected slot to handle the 'Collapse all directories' menu action.
handleContextMenu Private slot to show the context menu of the listview.
handleDelete Private method to delete the selected entry from the OTHERS project data area.
handleExpandAllDirs Protected slot to handle the 'Expand all directories' menu action.
handleOpen Private slot to handle the open popup menu entry.
handlePopupMenu Private slot called by the menu aboutToShow signal.
handleRemove Private slot to remove the selected entry from the OTHERS project data area.
handleShowPopupMenu Slot called before the context menu is shown.
handleVCSAdd Private slot called by the context menu.
handleVCSAddBinary Private slot called by the context menu.
handleVCSAddTree Private slot called by the context menu.
handleVCSRemove Private slot called by the context menu.

ProjectOthersBrowser (Constructor)

ProjectOthersBrowser(project, parent=None)

Constructor

parent
parent widget of this browser (QWidget)
project
reference to the project object

ProjectOthersBrowser.addNode

addNode(name)

Public slot to add a node to this browser.

name
filename or directory of this node

ProjectOthersBrowser.addVCSMenu

addVCSMenu(menu)

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

menu
reference to the menu to ammend (QPopupMenu)

ProjectOthersBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

ProjectOthersBrowser.handleCVSEdit

handleCVSEdit()

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

ProjectOthersBrowser.handleCVSUnedit

handleCVSUnedit()

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

ProjectOthersBrowser.handleCollapseAllDirs

handleCollapseAllDirs()

Protected slot to handle the 'Collapse all directories' menu action.

ProjectOthersBrowser.handleContextMenu

handleContextMenu(itm, coord, col)

Private slot to show the context menu of the listview.

col
the column of the mouse cursor (int)
coord
the position of the mouse cursor (QPoint)
itm
the selected item (QListViewItem)

ProjectOthersBrowser.handleDelete

handleDelete()

Private method to delete the selected entry from the OTHERS project data area.

ProjectOthersBrowser.handleExpandAllDirs

handleExpandAllDirs()

Protected slot to handle the 'Expand all directories' menu action.

ProjectOthersBrowser.handleOpen

handleOpen()

Private slot to handle the open popup menu entry.

ProjectOthersBrowser.handlePopupMenu

handlePopupMenu()

Private slot called by the menu aboutToShow signal.

ProjectOthersBrowser.handleRemove

handleRemove()

Private slot to remove the selected entry from the OTHERS project data area.

ProjectOthersBrowser.handleShowPopupMenu

handleShowPopupMenu(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.

menu
Reference to the popup menu (QPopupMenu)

ProjectOthersBrowser.handleVCSAdd

handleVCSAdd()

Private slot called by the context menu.

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

ProjectOthersBrowser.handleVCSAddBinary

handleVCSAddBinary()

Private slot called by the context menu.

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

ProjectOthersBrowser.handleVCSAddTree

handleVCSAddTree()

Private slot called by the context menu.

It is used to add the selected directory tree to the VCS repository.

ProjectOthersBrowser.handleVCSRemove

handleVCSRemove()

Private slot called by the context menu.

It is used to remove the selected file/directory from the VCS repository.

Up

ProjectSourcesBrowser

A class used to display the Sources part of the project.

Via the context menu that is displayed by a right click the user can select various actions on the selected file.

Signals

closeSourceWindow(string)
emitted after a file has been removed/deleted from the project

Derived from

PBrowser

Methods

ProjectSourcesBrowser Constructor
createPopupMenus Private overloaded method to generate the popup menu.
getOpenChildren Private method to get a list of open siblings of QListViewItem itm.
handleApplicationDiagram Private method to handle the application diagram context menu action.
handleClassDiagram Private method to handle the class diagram context menu action.
handleCodeCoverage Private method to handle the code coverage context menu action.
handleCodeMetrics Private method to handle the code metrics context menu action.
handleContextMenu Private slot to show the context menu of the listview.
handleCyclopsReport Private method to handle the show cyclops report context menu action.
handleDelete Private method to delete a file from the project.
handleEditorSaved Public slot to handle the editorSaved signal.
handleImportsDiagram Private method to handle the imports diagram context menu action.
handlePackageDiagram Private method to handle the package diagram context menu action.
handlePopupMenu Private slot called by the pyMenu aboutToShow signal.
handleProfileData Private method to handle the show profile data context menu action.
handleProjectClosed Private slot to handle the projectClosed signal.
handleProjectSourceAdded Private slot to handle the projectSourceAdded signal.
handleRemove Private method to remove a file from the project.
handleShowShowMenu Private slot called before the show menu is shown.
handleSyntaxCheck Private method to handle the syntax check context menu action.
handleTabnanny Private method to handle the tabnanny context menu action.
setOpenChildren Private method to find a child of a node and open it.

ProjectSourcesBrowser (Constructor)

ProjectSourcesBrowser(project, parent=None)

Constructor

parent
parent widget of this browser (QWidget)
project
reference to the project object

ProjectSourcesBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

ProjectSourcesBrowser.getOpenChildren

getOpenChildren(itm)

Private method to get a list of open siblings of QListViewItem itm.

Returns:
list of open siblings

ProjectSourcesBrowser.handleApplicationDiagram

handleApplicationDiagram()

Private method to handle the application diagram context menu action.

ProjectSourcesBrowser.handleClassDiagram

handleClassDiagram()

Private method to handle the class diagram context menu action.

ProjectSourcesBrowser.handleCodeCoverage

handleCodeCoverage()

Private method to handle the code coverage context menu action.

ProjectSourcesBrowser.handleCodeMetrics

handleCodeMetrics()

Private method to handle the code metrics context menu action.

ProjectSourcesBrowser.handleContextMenu

handleContextMenu(itm, coord, col)

Private slot to show the context menu of the listview.

col
the column of the mouse pointer (int)
coord
the position of the mouse pointer (QPoint)
itm
the selected listview item (QListViewItem)

ProjectSourcesBrowser.handleCyclopsReport

handleCyclopsReport()

Private method to handle the show cyclops report context menu action.

ProjectSourcesBrowser.handleDelete

handleDelete()

Private method to delete a file from the project.

ProjectSourcesBrowser.handleEditorSaved

handleEditorSaved(fn)

Public slot to handle the editorSaved signal.

fn
filename of the file that was saved

ProjectSourcesBrowser.handleImportsDiagram

handleImportsDiagram()

Private method to handle the imports diagram context menu action.

ProjectSourcesBrowser.handlePackageDiagram

handlePackageDiagram()

Private method to handle the package diagram context menu action.

ProjectSourcesBrowser.handlePopupMenu

handlePopupMenu()

Private slot called by the pyMenu aboutToShow signal.

ProjectSourcesBrowser.handleProfileData

handleProfileData()

Private method to handle the show profile data context menu action.

ProjectSourcesBrowser.handleProjectClosed

handleProjectClosed()

Private slot to handle the projectClosed signal.

ProjectSourcesBrowser.handleProjectSourceAdded

handleProjectSourceAdded(fn)

Private slot to handle the projectSourceAdded signal.

fn
filename of the file that was added (string)

ProjectSourcesBrowser.handleRemove

handleRemove()

Private method to remove a file from the project.

ProjectSourcesBrowser.handleShowShowMenu

handleShowShowMenu()

Private slot called before the show menu is shown.

ProjectSourcesBrowser.handleSyntaxCheck

handleSyntaxCheck()

Private method to handle the syntax check context menu action.

ProjectSourcesBrowser.handleTabnanny

handleTabnanny()

Private method to handle the tabnanny context menu action.

ProjectSourcesBrowser.setOpenChildren

setOpenChildren(itm, childstring)

Private method to find a child of a node and open it.

childstring
displaytext to search for (QString)
itm
the node to check
Returns:
flag indicating success

Up

ProjectTranslationsBrowser

A class used to display the translations part of the project.

Via the context menu that is displayed by a right click the user can select various actions on the selected file.

Signals

appendStderr(string)
emitted after something was received from a QProcess on stderr
appendStdout(string)
emitted after something was received from a QProcess on stdout

Derived from

PBrowser

Methods

ProjectTranslationsBrowser Constructor
createPopupMenus Private overloaded method to generate the popup menu.
generateTSFile Private method used to run pyludate to generate the .ts files.
handleCVSEdit Private slot called by the context menu to edit a file (CVS).
handleCVSUnedit Private slot called by the context menu to unedit a file (CVS).
handleDelete Private method to delete a translation file from the project.
handleGenerateTSFileDone Private slot to handle the processExit signal of the pylupdate/lrelease process.
handleGeneration Private method to generate the translation files (.ts) for Qt Linguist.
handleGenerationObsolete Private method to generate the translation files (.ts) for Qt Linguist.
handlePopupMenu Private slot called by the pyMenu aboutToShow signal.
handleProjectLanguageAdded Private slot to handle the projectLanguageAdded signal.
handleRelease Private method to release the translation files (.qm).
handleReleaseDone Private slot to handle the processExit signal of the pylupdate/lrelease process.
handleRemove Private method to remove a translation from the project.
handleSVNDelProp Private slot called by the context menu to delete a subversion property of a file.
handleSVNListProps Private slot called by the context menu to list the subversion properties of a file.
handleSVNSetProp Private slot called by the context menu to set a subversion property of a file.
handleStderr Private slot to handle the readyReadStderr signal of the pylupdate/lrelease process.
handleStdout Private slot to handle the readyReadStdout signal of the pylupdate/lrelease process.
handleVCSAdd Private slot called by the context menu to add the selected language to the VCS repository.
handleVCSCommit Private slot called by the context menu to commit the changes to the VCS repository.
handleVCSRemove Private slot called by the context menu to remove the selected language from the VCS repository.
handleVCSUpdate Private slot called by the context menu to update a file from the VCS repository.
writeTempProjectFile Private method to write a temporary project file suitable for pylupdate and lrelease.

ProjectTranslationsBrowser (Constructor)

ProjectTranslationsBrowser(project, qtdir, parent=None)

Constructor

parent
parent widget of this browser (QWidget)
project
reference to the project object
qtdir
path of the Qt installation directory (string)

ProjectTranslationsBrowser.createPopupMenus

createPopupMenus()

Private overloaded method to generate the popup menu.

ProjectTranslationsBrowser.generateTSFile

generateTSFile(noobsolete = 0)

Private method used to run pyludate to generate the .ts files.

noobsolete
flag indicating whether obsolete entries should be kept

ProjectTranslationsBrowser.handleCVSEdit

handleCVSEdit()

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

ProjectTranslationsBrowser.handleCVSUnedit

handleCVSUnedit()

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

ProjectTranslationsBrowser.handleDelete

handleDelete()

Private method to delete a translation file from the project.

ProjectTranslationsBrowser.handleGenerateTSFileDone

handleGenerateTSFileDone()

Private slot to handle the processExit signal of the pylupdate/lrelease process.

ProjectTranslationsBrowser.handleGeneration

handleGeneration()

Private method to generate the translation files (.ts) for Qt Linguist.

All obsolete strings are removed from the .ts file.

ProjectTranslationsBrowser.handleGenerationObsolete

handleGenerationObsolete()

Private method to generate the translation files (.ts) for Qt Linguist.

Obsolete strings are kept.

ProjectTranslationsBrowser.handlePopupMenu

handlePopupMenu()

Private slot called by the pyMenu aboutToShow signal.

ProjectTranslationsBrowser.handleProjectLanguageAdded

handleProjectLanguageAdded(fn)

Private slot to handle the projectLanguageAdded signal.

fn
Filename of the added language file (QString)

ProjectTranslationsBrowser.handleRelease

handleRelease()

Private method to release the translation files (.qm).

ProjectTranslationsBrowser.handleReleaseDone

handleReleaseDone()

Private slot to handle the processExit signal of the pylupdate/lrelease process.

ProjectTranslationsBrowser.handleRemove

handleRemove()

Private method to remove a translation from the project.

ProjectTranslationsBrowser.handleSVNDelProp

handleSVNDelProp()

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

ProjectTranslationsBrowser.handleSVNListProps

handleSVNListProps()

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

ProjectTranslationsBrowser.handleSVNSetProp

handleSVNSetProp()

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

ProjectTranslationsBrowser.handleStderr

handleStderr()

Private slot to handle the readyReadStderr signal of the pylupdate/lrelease process.

ProjectTranslationsBrowser.handleStdout

handleStdout()

Private slot to handle the readyReadStdout signal of the pylupdate/lrelease process.

ProjectTranslationsBrowser.handleVCSAdd

handleVCSAdd()

Private slot called by the context menu to add the selected language to the VCS repository.

ProjectTranslationsBrowser.handleVCSCommit

handleVCSCommit()

Private slot called by the context menu to commit the changes to the VCS repository.

ProjectTranslationsBrowser.handleVCSRemove

handleVCSRemove()

Private slot called by the context menu to remove the selected language from the VCS repository.

ProjectTranslationsBrowser.handleVCSUpdate

handleVCSUpdate()

Private slot called by the context menu to update a file from the VCS repository.

ProjectTranslationsBrowser.writeTempProjectFile

writeTempProjectFile()

Private method to write a temporary project file suitable for pylupdate and lrelease.

Returns:
flag indicating success

Up