274 self.dirMultiMenu.addAction(self.trUtf8('Collapse all directories'), |
274 self.dirMultiMenu.addAction(self.trUtf8('Collapse all directories'), |
275 self._collapseAllDirs) |
275 self._collapseAllDirs) |
276 self.dirMultiMenu.addSeparator() |
276 self.dirMultiMenu.addSeparator() |
277 self.dirMultiMenu.addAction(self.trUtf8('Configure...'), self._configure) |
277 self.dirMultiMenu.addAction(self.trUtf8('Configure...'), self._configure) |
278 |
278 |
279 self.connect(self.menu, SIGNAL('aboutToShow()'), |
279 self.menu.aboutToShow.connect(self.__showContextMenu) |
280 self.__showContextMenu) |
280 self.multiMenu.aboutToShow.connect(self.__showContextMenuMulti) |
281 self.connect(self.multiMenu, SIGNAL('aboutToShow()'), |
281 self.dirMenu.aboutToShow.connect(self.__showContextMenuDir) |
282 self.__showContextMenuMulti) |
282 self.dirMultiMenu.aboutToShow.connect(self.__showContextMenuDirMulti) |
283 self.connect(self.dirMenu, SIGNAL('aboutToShow()'), |
283 self.backMenu.aboutToShow.connect(self.__showContextMenuBack) |
284 self.__showContextMenuDir) |
|
285 self.connect(self.dirMultiMenu, SIGNAL('aboutToShow()'), |
|
286 self.__showContextMenuDirMulti) |
|
287 self.connect(self.backMenu, SIGNAL('aboutToShow()'), |
|
288 self.__showContextMenuBack) |
|
289 self.mainMenu = self.menu |
284 self.mainMenu = self.menu |
290 |
285 |
291 def _contextMenuRequested(self, coord): |
286 def _contextMenuRequested(self, coord): |
292 """ |
287 """ |
293 Protected slot to show the context menu. |
288 Protected slot to show the context menu. |