432 |
432 |
433 def _contextMenuRequested(self, coord): |
433 def _contextMenuRequested(self, coord): |
434 """ |
434 """ |
435 Protected slot to show the context menu. |
435 Protected slot to show the context menu. |
436 |
436 |
437 @param coord the position of the mouse pointer (QPoint) |
437 @param coord the position of the mouse pointer |
|
438 @type QPoint |
438 """ |
439 """ |
439 if not self.project.isOpen(): |
440 if not self.project.isOpen(): |
440 return |
441 return |
441 |
442 |
442 with contextlib.suppress(Exception): # secok |
443 with contextlib.suppress(Exception): # secok |
718 |
719 |
719 def __compileIDLDone(self, exitCode, exitStatus): |
720 def __compileIDLDone(self, exitCode, exitStatus): |
720 """ |
721 """ |
721 Private slot to handle the finished signal of the omniidl process. |
722 Private slot to handle the finished signal of the omniidl process. |
722 |
723 |
723 @param exitCode exit code of the process (integer) |
724 @param exitCode exit code of the process |
724 @param exitStatus exit status of the process (QProcess.ExitStatus) |
725 @type int |
|
726 @param exitStatus exit status of the process |
|
727 @type QProcess.ExitStatus |
725 """ |
728 """ |
726 pixmapSuffix = "dark" if ericApp().usesDarkPalette() else "light" |
729 pixmapSuffix = "dark" if ericApp().usesDarkPalette() else "light" |
727 pixmap = EricPixmapCache.getPixmap( |
730 pixmap = EricPixmapCache.getPixmap( |
728 os.path.join( |
731 os.path.join( |
729 os.path.dirname(__file__), |
732 os.path.dirname(__file__), |
760 |
763 |
761 def __compileIDL(self, fn, noDialog=False, progress=None): |
764 def __compileIDL(self, fn, noDialog=False, progress=None): |
762 """ |
765 """ |
763 Private method to compile a .idl file to python. |
766 Private method to compile a .idl file to python. |
764 |
767 |
765 @param fn filename of the .idl file to be compiled (string) |
768 @param fn filename of the .idl file to be compiled |
766 @param noDialog flag indicating silent operations (boolean) |
769 @type str |
767 @param progress reference to the progress dialog (EricProgressDialog) |
770 @param noDialog flag indicating silent operations |
768 @return reference to the compile process (QProcess) |
771 @type bool |
|
772 @param progress reference to the progress dialog |
|
773 @type EricProgressDialog |
|
774 @return reference to the compile process |
|
775 @rtype QProcess |
769 """ |
776 """ |
770 params = self.project.getProjectData(dataKey="IDLPARAMS") |
777 params = self.project.getProjectData(dataKey="IDLPARAMS") |
771 |
778 |
772 self.compileProc = QProcess() |
779 self.compileProc = QProcess() |
773 args = [] |
780 args = [] |