Table of Contents

Class: ProjectTranslationsBrowser ./Project/ProjectBrowser.py

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

appendStdout(string)
emitted after something was received from a QProcess on stdout
appendStderr(string)
emitted after something was received from a QProcess on stderr
Base Classes   
PBrowser
    Browser
Methods   
__init__
createPopupMenus
generateTSFile
handleDelete
handleGenerateTSFileDone
handleGeneration
handleGenerationObsolete
handlePopupMenu
handleProjectLanguageAdded
handleRelease
handleReleaseDone
handleRemove
handleStderr
handleStdout
handleVCSAdd
handleVCSCommit
handleVCSRemove
handleVCSUpdate
writeTempProjectFile
  __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
  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.

  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 add a file to the VCS repository.

  writeTempProjectFile 
writeTempProjectFile ( self )

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

Returns

flag indicating success


Table of Contents

This document was automatically generated on Fri Mar 14 19:54:50 2003 by HappyDoc version 2.1