Project/ProjectResourcesBrowser.py

changeset 461
34528aaedf1c
parent 427
6af5d12cfecb
child 464
a2b1d1770ef0
equal deleted inserted replaced
460:6a3899e91d76 461:34528aaedf1c
231 self.dirMultiMenu.addAction(self.trUtf8('Collapse all directories'), 231 self.dirMultiMenu.addAction(self.trUtf8('Collapse all directories'),
232 self._collapseAllDirs) 232 self._collapseAllDirs)
233 self.dirMultiMenu.addSeparator() 233 self.dirMultiMenu.addSeparator()
234 self.dirMultiMenu.addAction(self.trUtf8('Configure...'), self._configure) 234 self.dirMultiMenu.addAction(self.trUtf8('Configure...'), self._configure)
235 235
236 self.connect(self.menu, SIGNAL('aboutToShow()'), 236 self.menu.aboutToShow.connect(self.__showContextMenu)
237 self.__showContextMenu) 237 self.multiMenu.aboutToShow.connect(self.__showContextMenuMulti)
238 self.connect(self.multiMenu, SIGNAL('aboutToShow()'), 238 self.dirMenu.aboutToShow.connect(self.__showContextMenuDir)
239 self.__showContextMenuMulti) 239 self.dirMultiMenu.aboutToShow.connect(self.__showContextMenuDirMulti)
240 self.connect(self.dirMenu, SIGNAL('aboutToShow()'), 240 self.backMenu.aboutToShow.connect(self.__showContextMenuBack)
241 self.__showContextMenuDir)
242 self.connect(self.dirMultiMenu, SIGNAL('aboutToShow()'),
243 self.__showContextMenuDirMulti)
244 self.connect(self.backMenu, SIGNAL('aboutToShow()'),
245 self.__showContextMenuBack)
246 self.mainMenu = self.menu 241 self.mainMenu = self.menu
247 242
248 def _contextMenuRequested(self, coord): 243 def _contextMenuRequested(self, coord):
249 """ 244 """
250 Protected slot to show the context menu. 245 Protected slot to show the context menu.

eric ide

mercurial