35 |
35 |
36 @param vcs reference to the vcs object |
36 @param vcs reference to the vcs object |
37 @type Hg |
37 @type Hg |
38 @param path path of the repository to serve |
38 @param path path of the repository to serve |
39 @type str |
39 @type str |
40 @param parent reference to the parent widget (QWidget) |
40 @param parent reference to the parent widget |
|
41 @type QWidget |
41 """ |
42 """ |
42 super(HgServeDialog, self).__init__(parent) |
43 super(HgServeDialog, self).__init__(parent) |
43 |
44 |
44 self.vcs = vcs |
45 self.vcs = vcs |
45 self.__repoPath = path |
46 self.__repoPath = path |
181 |
182 |
182 def closeEvent(self, e): |
183 def closeEvent(self, e): |
183 """ |
184 """ |
184 Protected slot implementing a close event handler. |
185 Protected slot implementing a close event handler. |
185 |
186 |
186 @param e close event (QCloseEvent) |
187 @param e close event |
|
188 @type QCloseEvent |
187 """ |
189 """ |
188 self.__stopServer() |
190 self.__stopServer() |
189 |
191 |
190 def __procFinished(self, exitCode, exitStatus): |
192 def __procFinished(self, exitCode, exitStatus): |
191 """ |
193 """ |
192 Private slot connected to the finished signal. |
194 Private slot connected to the finished signal. |
193 |
195 |
194 @param exitCode exit code of the process (integer) |
196 @param exitCode exit code of the process |
195 @param exitStatus exit status of the process (QProcess.ExitStatus) |
197 @type int |
|
198 @param exitStatus exit status of the process |
|
199 @type QProcess.ExitStatus |
196 """ |
200 """ |
197 self.__stopServer() |
201 self.__stopServer() |
198 |
202 |
199 def __readStdout(self): |
203 def __readStdout(self): |
200 """ |
204 """ |
220 |
224 |
221 def __appendText(self, txt, error=False): |
225 def __appendText(self, txt, error=False): |
222 """ |
226 """ |
223 Private method to append text to the end. |
227 Private method to append text to the end. |
224 |
228 |
225 @param txt text to insert (string) |
229 @param txt text to insert |
226 @param error flag indicating to insert error text (boolean) |
230 @type str |
|
231 @param error flag indicating to insert error text |
|
232 @type bool |
227 """ |
233 """ |
228 tc = self.__log.textCursor() |
234 tc = self.__log.textCursor() |
229 tc.movePosition(QTextCursor.End) |
235 tc.movePosition(QTextCursor.End) |
230 self.__log.setTextCursor(tc) |
236 self.__log.setTextCursor(tc) |
231 if error: |
237 if error: |