eric6/Plugins/VcsPlugins/vcsMercurial/HgExtensionProjectBrowserHelper.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 7165
375c077ef7e2
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
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
46 and 'dirMultiMenu'. 47 and 'dirMultiMenu'.
47 @exception NotImplementedError raised if the class has not been 48 @exception NotImplementedError raised if the class has not been
48 reimplemented 49 reimplemented
49 """ 50 """
50 raise NotImplementedError 51 raise NotImplementedError
52
53 return {
54 'mainMenu': QMenu(),
55 'multiMenu': QMenu(),
56 'backMenu': QMenu(),
57 'dirMenu': QMenu(),
58 'dirMultiMenu': QMenu(),
59 }
51 60
52 def menuTitle(self): 61 def menuTitle(self):
53 """ 62 """
54 Public method to get the menu title. 63 Public method to get the menu title.
55 64
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

eric ide

mercurial