9 """ |
9 """ |
10 |
10 |
11 from __future__ import unicode_literals |
11 from __future__ import unicode_literals |
12 |
12 |
13 from PyQt5.QtCore import QObject |
13 from PyQt5.QtCore import QObject |
|
14 from PyQt5.QtWidgets import QMenu |
14 |
15 |
15 |
16 |
16 class HgExtensionProjectBrowserHelper(QObject): |
17 class HgExtensionProjectBrowserHelper(QObject): |
17 """ |
18 """ |
18 Class implementing the project browser helper base for Mercurial extension |
19 Class implementing the project browser helper base for Mercurial extension |
58 @return title of the menu (string) |
67 @return title of the menu (string) |
59 @exception NotImplementedError raised if the class has not been |
68 @exception NotImplementedError raised if the class has not been |
60 reimplemented |
69 reimplemented |
61 """ |
70 """ |
62 raise NotImplementedError |
71 raise NotImplementedError |
|
72 |
|
73 return "" |
63 |
74 |
64 def showExtensionMenu(self, key, controlled): |
75 def showExtensionMenu(self, key, controlled): |
65 """ |
76 """ |
66 Public method to prepare the extension menu for display. |
77 Public method to prepare the extension menu for display. |
67 |
78 |