src/eric7/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/ProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
90 90
91 def initMenu(self, mainMenu): 91 def initMenu(self, mainMenu):
92 """ 92 """
93 Public method to generate the extension menu. 93 Public method to generate the extension menu.
94 94
95 @param mainMenu reference to the main menu (QMenu) 95 @param mainMenu reference to the main menu
96 @return populated menu (QMenu) 96 @type QMenu
97 @return populated menu
98 @rtype QMenu
97 """ 99 """
98 menu = QMenu(self.menuTitle(), mainMenu) 100 menu = QMenu(self.menuTitle(), mainMenu)
99 menu.setIcon(EricPixmapCache.getIcon("vcsRebase")) 101 menu.setIcon(EricPixmapCache.getIcon("vcsRebase"))
100 menu.setTearOffEnabled(True) 102 menu.setTearOffEnabled(True)
101 103
107 109
108 def menuTitle(self): 110 def menuTitle(self):
109 """ 111 """
110 Public method to get the menu title. 112 Public method to get the menu title.
111 113
112 @return title of the menu (string) 114 @return title of the menu
115 @rtype str
113 """ 116 """
114 return self.tr("Rebase") 117 return self.tr("Rebase")
115 118
116 def __hgRebase(self): 119 def __hgRebase(self):
117 """ 120 """

eric ide

mercurial