--- a/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/ProjectHelper.py Tue May 31 09:46:03 2011 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/ProjectHelper.py Tue May 31 10:31:06 2011 +0200 @@ -7,15 +7,16 @@ Module implementing the bookmarks extension project helper. """ -from PyQt4.QtCore import QObject from PyQt4.QtGui import QMenu from E5Gui.E5Action import E5Action +from ..HgExtensionProjectHelper import HgExtensionProjectHelper + import UI.PixmapCache -class BookmarksProjectHelper(QObject): +class BookmarksProjectHelper(HgExtensionProjectHelper): """ Class implementing the bookmarks extension project helper. """ @@ -23,29 +24,7 @@ """ Constructor """ - QObject.__init__(self) - - self.actions = [] - - self.initActions() - - def setObjects(self, vcsObject, projectObject): - """ - Public method to set references to the vcs and project objects. - - @param vcsObject reference to the vcs object - @param projectObject reference to the project object - """ - self.vcs = vcsObject - self.project = projectObject - - def getActions(self): - """ - Public method to get a list of all actions. - - @return list of all actions (list of E5Action) - """ - return self.actions[:] + super().__init__() def initActions(self): """ @@ -209,6 +188,8 @@ def menuTitle(self): """ Public method to get the menu title. + + @return title of the menu (string) """ return self.trUtf8("Bookmarks")