src/eric7/Plugins/VcsPlugins/vcsMercurial/HgExtensionProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
33 def setObjects(self, vcsObject, projectObject): 33 def setObjects(self, vcsObject, projectObject):
34 """ 34 """
35 Public method to set references to the vcs and project objects. 35 Public method to set references to the vcs and project objects.
36 36
37 @param vcsObject reference to the vcs object 37 @param vcsObject reference to the vcs object
38 @type Hg
38 @param projectObject reference to the project object 39 @param projectObject reference to the project object
40 @type Project
39 """ 41 """
40 self.vcs = vcsObject 42 self.vcs = vcsObject
41 self.project = projectObject 43 self.project = projectObject
42 44
43 def getActions(self): 45 def getActions(self):
44 """ 46 """
45 Public method to get a list of all actions. 47 Public method to get a list of all actions.
46 48
47 @return list of all actions (list of EricAction) 49 @return list of all actions
50 @rtype list of EricAction
48 """ 51 """
49 return self.actions[:] 52 return self.actions[:]
50 53
51 def initActions(self): 54 def initActions(self):
52 """ 55 """
63 """ 66 """
64 Public method to generate the extension menu. 67 Public method to generate the extension menu.
65 68
66 Note: Derived class must implement this method. 69 Note: Derived class must implement this method.
67 70
68 @param mainMenu reference to the main menu (QMenu) 71 @param mainMenu reference to the main menu
69 @return populated menu (QMenu) 72 @type QMenu
73 @return populated menu
74 @rtype QMenu
70 @exception NotImplementedError raised if the class has not been 75 @exception NotImplementedError raised if the class has not been
71 reimplemented 76 reimplemented
72 """ 77 """
73 raise NotImplementedError 78 raise NotImplementedError
74 79
78 """ 83 """
79 Public method to get the menu title. 84 Public method to get the menu title.
80 85
81 Note: Derived class must implement this method. 86 Note: Derived class must implement this method.
82 87
83 @return title of the menu (string) 88 @return title of the menu
89 @rtype str
84 @exception NotImplementedError raised if the class has not been 90 @exception NotImplementedError raised if the class has not been
85 reimplemented 91 reimplemented
86 """ 92 """
87 raise NotImplementedError 93 raise NotImplementedError
88 94

eric ide

mercurial