eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py

branch
eric7
changeset 8519
fd4722a8f782
parent 8366
2a9f5153c438
child 8532
a392af4b87e8
equal deleted inserted replaced
8518:6a3eadfc3fb6 8519:fd4722a8f782
277 self.openRejectionsMenuAct = self.__menu.addAction( 277 self.openRejectionsMenuAct = self.__menu.addAction(
278 self.tr("Open 'rejection' file"), 278 self.tr("Open 'rejection' file"),
279 self.__contextMenuOpenRejections) 279 self.__contextMenuOpenRejections)
280 self.__menu.addSeparator() 280 self.__menu.addSeparator()
281 self.__menu.addAction( 281 self.__menu.addAction(
282 UI.PixmapCache.getIcon("printPreview"),
283 self.tr("Print Preview"), self.__contextMenuPrintPreviewFile)
284 self.__menu.addAction(
282 UI.PixmapCache.getIcon("print"), 285 UI.PixmapCache.getIcon("print"),
283 self.tr('Print'), self.__contextMenuPrintFile) 286 self.tr('Print'), self.__contextMenuPrintFile)
284 self.__menu.addSeparator() 287 self.__menu.addSeparator()
285 self.copyPathAct = self.__menu.addAction( 288 self.copyPathAct = self.__menu.addAction(
286 self.tr("Copy Path to Clipboard"), 289 self.tr("Copy Path to Clipboard"),
667 """ 670 """
668 Private method to print the selected tab. 671 Private method to print the selected tab.
669 """ 672 """
670 if self.contextMenuEditor: 673 if self.contextMenuEditor:
671 self.vm.printEditor(self.contextMenuEditor) 674 self.vm.printEditor(self.contextMenuEditor)
675
676 def __contextMenuPrintPreviewFile(self):
677 """
678 Private method to show a print preview of the selected tab.
679 """
680 if self.contextMenuEditor:
681 self.vm.printPreviewEditor(self.contextMenuEditor)
672 682
673 def __contextMenuCopyPathToClipboard(self): 683 def __contextMenuCopyPathToClipboard(self):
674 """ 684 """
675 Private method to copy the file name of the selected tab to the 685 Private method to copy the file name of the selected tab to the
676 clipboard. 686 clipboard.

eric ide

mercurial