Plugins/VcsPlugins/vcsMercurial/StripExtension/ProjectHelper.py

changeset 5270
7758f0c7d9f6
parent 5268
748e4c50523b
child 5389
9b1c800daff3
equal deleted inserted replaced
5268:748e4c50523b 5270:7758f0c7d9f6
52 52
53 def initMenu(self, mainMenu): 53 def initMenu(self, mainMenu):
54 """ 54 """
55 Public method to generate the extension menu. 55 Public method to generate the extension menu.
56 56
57 @param mainMenu reference to the main menu (QMenu) 57 @param mainMenu reference to the main menu
58 @type QMenu
58 @return populated menu (QMenu) 59 @return populated menu (QMenu)
59 """ 60 """
60 menu = QMenu(self.menuTitle(), mainMenu) 61 menu = QMenu(self.menuTitle(), mainMenu)
61 menu.setIcon(UI.PixmapCache.getIcon("fileDelete.png")) 62 menu.setIcon(UI.PixmapCache.getIcon("fileDelete.png"))
62 menu.setTearOffEnabled(True) 63 menu.setTearOffEnabled(True)
67 68
68 def menuTitle(self): 69 def menuTitle(self):
69 """ 70 """
70 Public method to get the menu title. 71 Public method to get the menu title.
71 72
72 @return title of the menu (string) 73 @return title of the menu
74 @rtype str
73 """ 75 """
74 return self.tr("Strip") 76 return self.tr("Strip")
75 77
76 def __hgStrip(self): 78 def __hgStrip(self):
77 """ 79 """

eric ide

mercurial