Plugins/ViewManagerPlugins/Listspace/Listspace.py

changeset 3025
67064c71df21
parent 3005
3953ddfb991d
child 3037
a417a0670a36
child 3058
0a02c433f52d
equal deleted inserted replaced
3024:17c01303a239 3025:67064c71df21
223 def __initMenu(self): 223 def __initMenu(self):
224 """ 224 """
225 Private method to initialize the viewlist context menu. 225 Private method to initialize the viewlist context menu.
226 """ 226 """
227 self.__menu = QMenu(self) 227 self.__menu = QMenu(self)
228 self.__menu.addAction(UI.PixmapCache.getIcon("tabClose.png"), 228 self.__menu.addAction(
229 UI.PixmapCache.getIcon("tabClose.png"),
229 self.trUtf8('Close'), self.__contextMenuClose) 230 self.trUtf8('Close'), self.__contextMenuClose)
230 self.closeOthersMenuAct = self.__menu.addAction( 231 self.closeOthersMenuAct = self.__menu.addAction(
231 UI.PixmapCache.getIcon("tabCloseOther.png"), 232 UI.PixmapCache.getIcon("tabCloseOther.png"),
232 self.trUtf8("Close Others"), 233 self.trUtf8("Close Others"),
233 self.__contextMenuCloseOthers) 234 self.__contextMenuCloseOthers)
234 self.__menu.addAction( 235 self.__menu.addAction(
235 self.trUtf8('Close All'), self.__contextMenuCloseAll) 236 self.trUtf8('Close All'), self.__contextMenuCloseAll)
236 self.__menu.addSeparator() 237 self.__menu.addSeparator()
237 self.saveMenuAct = \ 238 self.saveMenuAct = self.__menu.addAction(
238 self.__menu.addAction(UI.PixmapCache.getIcon("fileSave.png"), 239 UI.PixmapCache.getIcon("fileSave.png"),
239 self.trUtf8('Save'), self.__contextMenuSave) 240 self.trUtf8('Save'), self.__contextMenuSave)
240 self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveAs.png"), 241 self.__menu.addAction(
242 UI.PixmapCache.getIcon("fileSaveAs.png"),
241 self.trUtf8('Save As...'), self.__contextMenuSaveAs) 243 self.trUtf8('Save As...'), self.__contextMenuSaveAs)
242 self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveAll.png"), 244 self.__menu.addAction(
245 UI.PixmapCache.getIcon("fileSaveAll.png"),
243 self.trUtf8('Save All'), self.__contextMenuSaveAll) 246 self.trUtf8('Save All'), self.__contextMenuSaveAll)
244 self.__menu.addSeparator() 247 self.__menu.addSeparator()
245 self.openRejectionsMenuAct = \ 248 self.openRejectionsMenuAct = self.__menu.addAction(
246 self.__menu.addAction(self.trUtf8("Open 'rejection' file"), 249 self.trUtf8("Open 'rejection' file"),
247 self.__contextMenuOpenRejections) 250 self.__contextMenuOpenRejections)
248 self.__menu.addSeparator() 251 self.__menu.addSeparator()
249 self.__menu.addAction(UI.PixmapCache.getIcon("print.png"), 252 self.__menu.addAction(
253 UI.PixmapCache.getIcon("print.png"),
250 self.trUtf8('Print'), self.__contextMenuPrintFile) 254 self.trUtf8('Print'), self.__contextMenuPrintFile)
251 self.__menu.addSeparator() 255 self.__menu.addSeparator()
252 self.copyPathAct = self.__menu.addAction( 256 self.copyPathAct = self.__menu.addAction(
253 self.trUtf8("Copy Path to Clipboard"), 257 self.trUtf8("Copy Path to Clipboard"),
254 self.__contextMenuCopyPathToClipboard) 258 self.__contextMenuCopyPathToClipboard)

eric ide

mercurial