|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgServeDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.VcsPlugins.vcsMercurial.HgServeDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog for the Mercurial server. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#HgServeDialog">HgServeDialog</a></td> |
|
25 <td>Class implementing a dialog for the Mercurial server.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="HgServeDialog" ID="HgServeDialog"></a> |
|
36 <h2>HgServeDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog for the Mercurial server. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 EricMainWindow |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#HgServeDialog.__init__">HgServeDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgServeDialog.__appendText">__appendText</a></td> |
|
63 <td>Private method to append text to the end.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgServeDialog.__procFinished">__procFinished</a></td> |
|
67 <td>Private slot connected to the finished signal.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgServeDialog.__readStderr">__readStderr</a></td> |
|
71 <td>Private slot to handle the readyReadStandardError signal.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgServeDialog.__readStdout">__readStdout</a></td> |
|
75 <td>Private slot to handle the readyReadStandardOutput signal.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgServeDialog.__startBrowser">__startBrowser</a></td> |
|
79 <td>Private slot to start a browser for the served repository.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#HgServeDialog.__startServer">__startServer</a></td> |
|
83 <td>Private slot to start the Mercurial server.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#HgServeDialog.__stopServer">__stopServer</a></td> |
|
87 <td>Private slot to stop the Mercurial server.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#HgServeDialog.closeEvent">closeEvent</a></td> |
|
91 <td>Protected slot implementing a close event handler.</td> |
|
92 </tr> |
|
93 </table> |
|
94 <h3>Static Methods</h3> |
|
95 |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 |
|
100 <a NAME="HgServeDialog.__init__" ID="HgServeDialog.__init__"></a> |
|
101 <h4>HgServeDialog (Constructor)</h4> |
|
102 <b>HgServeDialog</b>(<i>vcs, path, parent=None</i>) |
|
103 |
|
104 <p> |
|
105 Constructor |
|
106 </p> |
|
107 <dl> |
|
108 |
|
109 <dt><i>vcs</i> (Hg)</dt> |
|
110 <dd> |
|
111 reference to the vcs object |
|
112 </dd> |
|
113 <dt><i>path</i> (str)</dt> |
|
114 <dd> |
|
115 path of the repository to serve |
|
116 </dd> |
|
117 <dt><i>parent</i> (QWidget)</dt> |
|
118 <dd> |
|
119 reference to the parent widget |
|
120 </dd> |
|
121 </dl> |
|
122 <a NAME="HgServeDialog.__appendText" ID="HgServeDialog.__appendText"></a> |
|
123 <h4>HgServeDialog.__appendText</h4> |
|
124 <b>__appendText</b>(<i>txt, error=False</i>) |
|
125 |
|
126 <p> |
|
127 Private method to append text to the end. |
|
128 </p> |
|
129 <dl> |
|
130 |
|
131 <dt><i>txt</i> (str)</dt> |
|
132 <dd> |
|
133 text to insert |
|
134 </dd> |
|
135 <dt><i>error</i> (bool)</dt> |
|
136 <dd> |
|
137 flag indicating to insert error text |
|
138 </dd> |
|
139 </dl> |
|
140 <a NAME="HgServeDialog.__procFinished" ID="HgServeDialog.__procFinished"></a> |
|
141 <h4>HgServeDialog.__procFinished</h4> |
|
142 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) |
|
143 |
|
144 <p> |
|
145 Private slot connected to the finished signal. |
|
146 </p> |
|
147 <dl> |
|
148 |
|
149 <dt><i>exitCode</i> (int)</dt> |
|
150 <dd> |
|
151 exit code of the process |
|
152 </dd> |
|
153 <dt><i>exitStatus</i> (QProcess.ExitStatus)</dt> |
|
154 <dd> |
|
155 exit status of the process |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="HgServeDialog.__readStderr" ID="HgServeDialog.__readStderr"></a> |
|
159 <h4>HgServeDialog.__readStderr</h4> |
|
160 <b>__readStderr</b>(<i></i>) |
|
161 |
|
162 <p> |
|
163 Private slot to handle the readyReadStandardError signal. |
|
164 </p> |
|
165 <p> |
|
166 It reads the error output of the process and inserts it into the log. |
|
167 </p> |
|
168 <a NAME="HgServeDialog.__readStdout" ID="HgServeDialog.__readStdout"></a> |
|
169 <h4>HgServeDialog.__readStdout</h4> |
|
170 <b>__readStdout</b>(<i></i>) |
|
171 |
|
172 <p> |
|
173 Private slot to handle the readyReadStandardOutput signal. |
|
174 </p> |
|
175 <p> |
|
176 It reads the output of the process and inserts it into the log. |
|
177 </p> |
|
178 <a NAME="HgServeDialog.__startBrowser" ID="HgServeDialog.__startBrowser"></a> |
|
179 <h4>HgServeDialog.__startBrowser</h4> |
|
180 <b>__startBrowser</b>(<i></i>) |
|
181 |
|
182 <p> |
|
183 Private slot to start a browser for the served repository. |
|
184 </p> |
|
185 <a NAME="HgServeDialog.__startServer" ID="HgServeDialog.__startServer"></a> |
|
186 <h4>HgServeDialog.__startServer</h4> |
|
187 <b>__startServer</b>(<i></i>) |
|
188 |
|
189 <p> |
|
190 Private slot to start the Mercurial server. |
|
191 </p> |
|
192 <a NAME="HgServeDialog.__stopServer" ID="HgServeDialog.__stopServer"></a> |
|
193 <h4>HgServeDialog.__stopServer</h4> |
|
194 <b>__stopServer</b>(<i></i>) |
|
195 |
|
196 <p> |
|
197 Private slot to stop the Mercurial server. |
|
198 </p> |
|
199 <a NAME="HgServeDialog.closeEvent" ID="HgServeDialog.closeEvent"></a> |
|
200 <h4>HgServeDialog.closeEvent</h4> |
|
201 <b>closeEvent</b>(<i>e</i>) |
|
202 |
|
203 <p> |
|
204 Protected slot implementing a close event handler. |
|
205 </p> |
|
206 <dl> |
|
207 |
|
208 <dt><i>e</i> (QCloseEvent)</dt> |
|
209 <dd> |
|
210 close event |
|
211 </dd> |
|
212 </dl> |
|
213 <div align="right"><a href="#top">Up</a></div> |
|
214 <hr /> |
|
215 </body></html> |