src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py

branch
eric7
changeset 10069
435cc5875135
parent 9973
d537cba05d38
child 10438
4cd7e5a8b3cf
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
98 not self.__extensionMenus[extensionName][key].isEnabled() 98 not self.__extensionMenus[extensionName][key].isEnabled()
99 and self.__extensionMenus[extensionName][key].isTearOffMenuVisible() 99 and self.__extensionMenus[extensionName][key].isTearOffMenuVisible()
100 ): 100 ):
101 self.__extensionMenus[extensionName][key].hideTearOffMenu() 101 self.__extensionMenus[extensionName][key].hideTearOffMenu()
102 102
103 def showContextMenu(self, menu, standardItems): 103 def showContextMenu(self, menu, standardItems): # noqa: U100
104 """ 104 """
105 Public slot called before the context menu is shown. 105 Public slot called before the context menu is shown.
106 106
107 It enables/disables the VCS menu entries depending on the overall 107 It enables/disables the VCS menu entries depending on the overall
108 VCS status and the file status. 108 VCS status and the file status.
132 act.setEnabled(True) 132 act.setEnabled(True)
133 for act in standardItems: 133 for act in standardItems:
134 act.setEnabled(True) 134 act.setEnabled(True)
135 self.__showExtensionMenu("mainMenu", controlled) 135 self.__showExtensionMenu("mainMenu", controlled)
136 136
137 def showContextMenuMulti(self, menu, standardItems): 137 def showContextMenuMulti(self, menu, standardItems): # noqa: U100
138 """ 138 """
139 Public slot called before the context menu (multiple selections) is 139 Public slot called before the context menu (multiple selections) is
140 shown. 140 shown.
141 141
142 It enables/disables the VCS menu entries depending on the overall 142 It enables/disables the VCS menu entries depending on the overall
174 act.setEnabled(True) 174 act.setEnabled(True)
175 for act in standardItems: 175 for act in standardItems:
176 act.setEnabled(True) 176 act.setEnabled(True)
177 self.__showExtensionMenu("multiMenu", controlled) 177 self.__showExtensionMenu("multiMenu", controlled)
178 178
179 def showContextMenuDir(self, menu, standardItems): 179 def showContextMenuDir(self, menu, standardItems): # noqa: U100
180 """ 180 """
181 Public slot called before the context menu is shown. 181 Public slot called before the context menu is shown.
182 182
183 It enables/disables the VCS menu entries depending on the overall 183 It enables/disables the VCS menu entries depending on the overall
184 VCS status and the directory status. 184 VCS status and the directory status.
203 act.setEnabled(True) 203 act.setEnabled(True)
204 for act in standardItems: 204 for act in standardItems:
205 act.setEnabled(True) 205 act.setEnabled(True)
206 self.__showExtensionMenu("dirMenu", controlled) 206 self.__showExtensionMenu("dirMenu", controlled)
207 207
208 def showContextMenuDirMulti(self, menu, standardItems): 208 def showContextMenuDirMulti(self, menu, standardItems): # noqa: U100
209 """ 209 """
210 Public slot called before the context menu is shown. 210 Public slot called before the context menu is shown.
211 211
212 It enables/disables the VCS menu entries depending on the overall 212 It enables/disables the VCS menu entries depending on the overall
213 VCS status and the directory status. 213 VCS status and the directory status.

eric ide

mercurial