Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py

changeset 1087
fb8cd56819a9
parent 1075
75bfe8bd4243
child 1106
3e57cd52e0f6
--- a/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py	Tue May 31 09:46:03 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py	Tue May 31 10:31:06 2011 +0200
@@ -7,15 +7,16 @@
 Module implementing the gpg 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 GpgProjectHelper(QObject):
+class GpgProjectHelper(HgExtensionProjectHelper):
     """
     Class implementing the gpg 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):
         """
@@ -113,6 +92,8 @@
     def menuTitle(self):
         """
         Public method to get the menu title.
+        
+        @return title of the menu (string)
         """
         return self.trUtf8("GPG")
     

eric ide

mercurial