278 self.openRejectionsMenuAct = self.__menu.addAction( |
278 self.openRejectionsMenuAct = self.__menu.addAction( |
279 self.tr("Open 'rejection' file"), |
279 self.tr("Open 'rejection' file"), |
280 self.__contextMenuOpenRejections) |
280 self.__contextMenuOpenRejections) |
281 self.__menu.addSeparator() |
281 self.__menu.addSeparator() |
282 self.__menu.addAction( |
282 self.__menu.addAction( |
|
283 UI.PixmapCache.getIcon("printPreview"), |
|
284 self.tr("Print Preview"), self.__contextMenuPrintPreviewFile) |
|
285 self.__menu.addAction( |
283 UI.PixmapCache.getIcon("print"), |
286 UI.PixmapCache.getIcon("print"), |
284 self.tr('Print'), self.__contextMenuPrintFile) |
287 self.tr('Print'), self.__contextMenuPrintFile) |
285 self.__menu.addSeparator() |
288 self.__menu.addSeparator() |
286 self.copyPathAct = self.__menu.addAction( |
289 self.copyPathAct = self.__menu.addAction( |
287 self.tr("Copy Path to Clipboard"), |
290 self.tr("Copy Path to Clipboard"), |
849 """ |
852 """ |
850 Private method to print the selected editor. |
853 Private method to print the selected editor. |
851 """ |
854 """ |
852 if self.contextMenuEditor: |
855 if self.contextMenuEditor: |
853 self.printEditor(self.contextMenuEditor) |
856 self.printEditor(self.contextMenuEditor) |
854 |
857 |
|
858 def __contextMenuPrintPreviewFile(self): |
|
859 """ |
|
860 Private method to show a print preview of the selected editor. |
|
861 """ |
|
862 if self.contextMenuEditor: |
|
863 self.printPreviewEditor(self.contextMenuEditor) |
|
864 |
855 def __contextMenuCopyPathToClipboard(self): |
865 def __contextMenuCopyPathToClipboard(self): |
856 """ |
866 """ |
857 Private method to copy the file name of the selected editor to the |
867 Private method to copy the file name of the selected editor to the |
858 clipboard. |
868 clipboard. |
859 """ |
869 """ |