32 """ |
32 """ |
33 Public method to generate the action objects. |
33 Public method to generate the action objects. |
34 """ |
34 """ |
35 self.hgHisteditStartAct = E5Action( |
35 self.hgHisteditStartAct = E5Action( |
36 self.tr('Start'), |
36 self.tr('Start'), |
37 UI.PixmapCache.getIcon("vcsEditHistory.png"), |
37 UI.PixmapCache.getIcon("vcsEditHistory"), |
38 self.tr('Start'), |
38 self.tr('Start'), |
39 0, 0, self, 'mercurial_histedit_start') |
39 0, 0, self, 'mercurial_histedit_start') |
40 self.hgHisteditStartAct.setStatusTip(self.tr( |
40 self.hgHisteditStartAct.setStatusTip(self.tr( |
41 'Start a new changeset history editing session' |
41 'Start a new changeset history editing session' |
42 )) |
42 )) |
98 @param mainMenu reference to the main menu |
98 @param mainMenu reference to the main menu |
99 @type QMenu |
99 @type QMenu |
100 @return populated menu (QMenu) |
100 @return populated menu (QMenu) |
101 """ |
101 """ |
102 menu = QMenu(self.menuTitle(), mainMenu) |
102 menu = QMenu(self.menuTitle(), mainMenu) |
103 menu.setIcon(UI.PixmapCache.getIcon("vcsEditHistory.png")) |
103 menu.setIcon(UI.PixmapCache.getIcon("vcsEditHistory")) |
104 menu.setTearOffEnabled(True) |
104 menu.setTearOffEnabled(True) |
105 |
105 |
106 menu.addAction(self.hgHisteditStartAct) |
106 menu.addAction(self.hgHisteditStartAct) |
107 menu.addSeparator() |
107 menu.addSeparator() |
108 menu.addAction(self.hgHisteditContinueAct) |
108 menu.addAction(self.hgHisteditContinueAct) |