Via the context
menu that is displayed by a right click the user can select various actions on
the selected file.
Methods
|
|
|
|
__init__
|
__init__ (
self,
project,
qtdir,
parent=None,
)
Constructor
Arguments
- project
- reference to the project object
- qtdir
- path of the Qt installation directory (string)
- parent
- parent widget of this browser (QWidget)
|
|
createPopupMenus
|
createPopupMenus ( self )
Private overloaded method to generate the popup menu.
|
|
generateTSFile
|
generateTSFile ( self, noobsolete=0 )
Private method used to run pyludate to generate the .ts files.
Arguments
- noobsolete
- flag indicating whether obsolete entries should be kept
|
|
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).
|
|
handleDelete
|
handleDelete ( self )
Private method to delete a translation file from the project.
|
|
handleGenerateTSFileDone
|
handleGenerateTSFileDone ( self )
Private slot to handle the processExit signal of the pylupdate/lrelease process.
|
|
handleGeneration
|
handleGeneration ( self )
Private method to generate the translation files (.ts) for Qt Linguist.
All obsolete strings are removed from the .ts file.
|
|
handleGenerationObsolete
|
handleGenerationObsolete ( self )
Private method to generate the translation files (.ts) for Qt Linguist.
Obsolete strings are kept.
|
|
handlePopupMenu
|
handlePopupMenu ( self )
Private slot called by the pyMenu aboutToShow signal.
|
|
handleProjectLanguageAdded
|
handleProjectLanguageAdded ( self, fn )
Private slot to handle the projectLanguageAdded signal.
|
|
handleRelease
|
handleRelease ( self )
Private method to release the translation files (.qm).
|
|
handleReleaseDone
|
handleReleaseDone ( self )
Private slot to handle the processExit signal of the pylupdate/lrelease process.
|
|
handleRemove
|
handleRemove ( self )
Private method to remove a translation from the project.
|
|
handleSVNDelProp
|
handleSVNDelProp ( self )
Private slot called by the context menu to delete a subversion property of a file.
|
|
handleSVNListProps
|
handleSVNListProps ( self )
Private slot called by the context menu to list the subversion properties of a file.
|
|
handleSVNSetProp
|
handleSVNSetProp ( self )
Private slot called by the context menu to set a subversion property of a file.
|
|
handleStderr
|
handleStderr ( self )
Private slot to handle the readyReadStderr signal of the pylupdate/lrelease process.
|
|
handleStdout
|
handleStdout ( self )
Private slot to handle the readyReadStdout signal of the pylupdate/lrelease process.
|
|
handleVCSAdd
|
handleVCSAdd ( self )
Private slot called by the context menu to add the selected language to the VCS repository.
|
|
handleVCSCommit
|
handleVCSCommit ( self )
Private slot called by the context menu to commit the changes to the VCS repository.
|
|
handleVCSRemove
|
handleVCSRemove ( self )
Private slot called by the context menu to remove the selected language from the VCS repository.
|
|
handleVCSUpdate
|
handleVCSUpdate ( self )
Private slot called by the context menu to update a file from the VCS repository.
|
|
writeTempProjectFile
|
writeTempProjectFile ( self )
Private method to write a temporary project file suitable for pylupdate and lrelease.
Returns
flag indicating success
|