46 def start(self, args, fn): |
46 def start(self, args, fn): |
47 """ |
47 """ |
48 Public slot to start the ericdoc command. |
48 Public slot to start the ericdoc command. |
49 |
49 |
50 @param args commandline arguments for ericdoc program (list of strings) |
50 @param args commandline arguments for ericdoc program (list of strings) |
51 @param fn filename or dirname to be processed by ericdoc program (string) |
51 @param fn filename or dirname to be processed by ericdoc program |
|
52 (string) |
52 @return flag indicating the successful start of the process (boolean) |
53 @return flag indicating the successful start of the process (boolean) |
53 """ |
54 """ |
54 self.errorGroup.hide() |
55 self.errorGroup.hide() |
55 |
56 |
56 self.filename = fn |
57 self.filename = fn |
76 |
77 |
77 self.process.readyReadStandardOutput.connect(self.__readStdout) |
78 self.process.readyReadStandardOutput.connect(self.__readStdout) |
78 self.process.readyReadStandardError.connect(self.__readStderr) |
79 self.process.readyReadStandardError.connect(self.__readStderr) |
79 self.process.finished.connect(self.__finish) |
80 self.process.finished.connect(self.__finish) |
80 |
81 |
81 self.setWindowTitle(self.trUtf8('{0} - {1}').format(self.cmdname, self.filename)) |
82 self.setWindowTitle( |
|
83 self.trUtf8('{0} - {1}').format(self.cmdname, self.filename)) |
82 self.process.start(program, args) |
84 self.process.start(program, args) |
83 procStarted = self.process.waitForStarted(5000) |
85 procStarted = self.process.waitForStarted(5000) |
84 if not procStarted: |
86 if not procStarted: |
85 E5MessageBox.critical(self, |
87 E5MessageBox.critical(self, |
86 self.trUtf8('Process Generation Error'), |
88 self.trUtf8('Process Generation Error'), |