7 Module implementing the histedit extension project helper. |
7 Module implementing the histedit extension project helper. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtWidgets import QMenu |
10 from PyQt6.QtWidgets import QMenu |
11 |
11 |
12 from EricGui.EricAction import EricAction |
12 from eric7.EricGui.EricAction import EricAction |
13 from EricWidgets import EricMessageBox |
13 from eric7.EricWidgets import EricMessageBox |
14 |
14 |
15 from ..HgExtensionProjectHelper import HgExtensionProjectHelper |
15 from ..HgExtensionProjectHelper import HgExtensionProjectHelper |
16 |
16 |
17 import UI.PixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 |
18 |
19 |
19 |
20 class HisteditProjectHelper(HgExtensionProjectHelper): |
20 class HisteditProjectHelper(HgExtensionProjectHelper): |
21 """ |
21 """ |
22 Class implementing the histedit extension project helper. |
22 Class implementing the histedit extension project helper. |
32 """ |
32 """ |
33 Public method to generate the action objects. |
33 Public method to generate the action objects. |
34 """ |
34 """ |
35 self.hgHisteditStartAct = EricAction( |
35 self.hgHisteditStartAct = EricAction( |
36 self.tr("Start"), |
36 self.tr("Start"), |
37 UI.PixmapCache.getIcon("vcsEditHistory"), |
37 EricPixmapCache.getIcon("vcsEditHistory"), |
38 self.tr("Start"), |
38 self.tr("Start"), |
39 0, |
39 0, |
40 0, |
40 0, |
41 self, |
41 self, |
42 "mercurial_histedit_start", |
42 "mercurial_histedit_start", |
117 @param mainMenu reference to the main menu |
117 @param mainMenu reference to the main menu |
118 @type QMenu |
118 @type QMenu |
119 @return populated menu (QMenu) |
119 @return populated menu (QMenu) |
120 """ |
120 """ |
121 menu = QMenu(self.menuTitle(), mainMenu) |
121 menu = QMenu(self.menuTitle(), mainMenu) |
122 menu.setIcon(UI.PixmapCache.getIcon("vcsEditHistory")) |
122 menu.setIcon(EricPixmapCache.getIcon("vcsEditHistory")) |
123 menu.setTearOffEnabled(True) |
123 menu.setTearOffEnabled(True) |
124 |
124 |
125 menu.addAction(self.hgHisteditStartAct) |
125 menu.addAction(self.hgHisteditStartAct) |
126 menu.addSeparator() |
126 menu.addSeparator() |
127 menu.addAction(self.hgHisteditContinueAct) |
127 menu.addAction(self.hgHisteditContinueAct) |