52 def start(self, args, fn): |
52 def start(self, args, fn): |
53 """ |
53 """ |
54 Public slot to start the ericdoc command. |
54 Public slot to start the ericdoc command. |
55 |
55 |
56 @param args commandline arguments for ericdoc program (list of strings) |
56 @param args commandline arguments for ericdoc program (list of strings) |
57 @param fn filename or dirname to be processed by ericdoc program (string) |
57 @param fn filename or dirname to be processed by ericdoc program |
|
58 (string) |
58 @return flag indicating the successful start of the process (boolean) |
59 @return flag indicating the successful start of the process (boolean) |
59 """ |
60 """ |
60 self.errorGroup.hide() |
61 self.errorGroup.hide() |
61 |
62 |
62 self.filename = fn |
63 self.filename = fn |
82 |
83 |
83 self.process.readyReadStandardOutput.connect(self.__readStdout) |
84 self.process.readyReadStandardOutput.connect(self.__readStdout) |
84 self.process.readyReadStandardError.connect(self.__readStderr) |
85 self.process.readyReadStandardError.connect(self.__readStderr) |
85 self.process.finished.connect(self.__finish) |
86 self.process.finished.connect(self.__finish) |
86 |
87 |
87 self.setWindowTitle(self.trUtf8('{0} - {1}').format(self.cmdname, self.filename)) |
88 self.setWindowTitle( |
|
89 self.trUtf8('{0} - {1}').format(self.cmdname, self.filename)) |
88 self.process.start(program, args) |
90 self.process.start(program, args) |
89 procStarted = self.process.waitForStarted(5000) |
91 procStarted = self.process.waitForStarted(5000) |
90 if not procStarted: |
92 if not procStarted: |
91 E5MessageBox.critical(self, |
93 E5MessageBox.critical(self, |
92 self.trUtf8('Process Generation Error'), |
94 self.trUtf8('Process Generation Error'), |