|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.VcsPlugins.vcsSubversion.SvnDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.VcsPlugins.vcsSubversion.SvnDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog starting a process and showing its output. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#SvnDialog">SvnDialog</a></td> |
|
34 <td>Class implementing a dialog starting a process and showing its output.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="SvnDialog" ID="SvnDialog"></a> |
|
43 <h2>SvnDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog starting a process and showing its output. |
|
46 </p><p> |
|
47 It starts a QProcess and displays a dialog that |
|
48 shows the output of the process. The dialog is modal, |
|
49 which causes a synchronized execution of the process. |
|
50 </p> |
|
51 <h3>Derived from</h3> |
|
52 QDialog, Ui_SvnDialog |
|
53 <h3>Class Attributes</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Class Methods</h3> |
|
58 <table> |
|
59 <tr><td>None</td></tr> |
|
60 </table> |
|
61 <h3>Methods</h3> |
|
62 <table> |
|
63 <tr> |
|
64 <td><a href="#SvnDialog.__init__">SvnDialog</a></td> |
|
65 <td>Constructor</td> |
|
66 </tr><tr> |
|
67 <td><a href="#SvnDialog.__finish">__finish</a></td> |
|
68 <td>Private slot called when the process finished or the user pressed the button.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#SvnDialog.__procFinished">__procFinished</a></td> |
|
71 <td>Private slot connected to the finished signal.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#SvnDialog.__readStderr">__readStderr</a></td> |
|
74 <td>Private slot to handle the readyReadStderr signal.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#SvnDialog.__readStdout">__readStdout</a></td> |
|
77 <td>Private slot to handle the readyReadStdout signal.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#SvnDialog.hasAddOrDelete">hasAddOrDelete</a></td> |
|
80 <td>Public method to check, if the last action contained an add or delete.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#SvnDialog.keyPressEvent">keyPressEvent</a></td> |
|
83 <td>Protected slot to handle a key press event.</td> |
|
84 </tr><tr> |
|
85 <td><a href="#SvnDialog.normalExit">normalExit</a></td> |
|
86 <td>Public method to check for a normal process termination.</td> |
|
87 </tr><tr> |
|
88 <td><a href="#SvnDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
89 <td>Private slot called by a button of the button box clicked.</td> |
|
90 </tr><tr> |
|
91 <td><a href="#SvnDialog.on_input_returnPressed">on_input_returnPressed</a></td> |
|
92 <td>Private slot to handle the press of the return key in the input field.</td> |
|
93 </tr><tr> |
|
94 <td><a href="#SvnDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> |
|
95 <td>Private slot to handle the password checkbox toggled.</td> |
|
96 </tr><tr> |
|
97 <td><a href="#SvnDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
|
98 <td>Private slot to send the input to the subversion process.</td> |
|
99 </tr><tr> |
|
100 <td><a href="#SvnDialog.startProcess">startProcess</a></td> |
|
101 <td>Public slot used to start the process.</td> |
|
102 </tr> |
|
103 </table> |
|
104 <h3>Static Methods</h3> |
|
105 <table> |
|
106 <tr><td>None</td></tr> |
|
107 </table> |
|
108 <a NAME="SvnDialog.__init__" ID="SvnDialog.__init__"></a> |
|
109 <h4>SvnDialog (Constructor)</h4> |
|
110 <b>SvnDialog</b>(<i>text, parent=None</i>) |
|
111 <p> |
|
112 Constructor |
|
113 </p><dl> |
|
114 <dt><i>text</i></dt> |
|
115 <dd> |
|
116 text to be shown by the label (string) |
|
117 </dd><dt><i>parent</i></dt> |
|
118 <dd> |
|
119 parent widget (QWidget) |
|
120 </dd> |
|
121 </dl><a NAME="SvnDialog.__finish" ID="SvnDialog.__finish"></a> |
|
122 <h4>SvnDialog.__finish</h4> |
|
123 <b>__finish</b>(<i></i>) |
|
124 <p> |
|
125 Private slot called when the process finished or the user pressed the |
|
126 button. |
|
127 </p><a NAME="SvnDialog.__procFinished" ID="SvnDialog.__procFinished"></a> |
|
128 <h4>SvnDialog.__procFinished</h4> |
|
129 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) |
|
130 <p> |
|
131 Private slot connected to the finished signal. |
|
132 </p><dl> |
|
133 <dt><i>exitCode</i></dt> |
|
134 <dd> |
|
135 exit code of the process (integer) |
|
136 </dd><dt><i>exitStatus</i></dt> |
|
137 <dd> |
|
138 exit status of the process (QProcess.ExitStatus) |
|
139 </dd> |
|
140 </dl><a NAME="SvnDialog.__readStderr" ID="SvnDialog.__readStderr"></a> |
|
141 <h4>SvnDialog.__readStderr</h4> |
|
142 <b>__readStderr</b>(<i></i>) |
|
143 <p> |
|
144 Private slot to handle the readyReadStderr signal. |
|
145 </p><p> |
|
146 It reads the error output of the process and inserts it into the |
|
147 error pane. |
|
148 </p><a NAME="SvnDialog.__readStdout" ID="SvnDialog.__readStdout"></a> |
|
149 <h4>SvnDialog.__readStdout</h4> |
|
150 <b>__readStdout</b>(<i></i>) |
|
151 <p> |
|
152 Private slot to handle the readyReadStdout signal. |
|
153 </p><p> |
|
154 It reads the output of the process, formats it and inserts it into |
|
155 the contents pane. |
|
156 </p><a NAME="SvnDialog.hasAddOrDelete" ID="SvnDialog.hasAddOrDelete"></a> |
|
157 <h4>SvnDialog.hasAddOrDelete</h4> |
|
158 <b>hasAddOrDelete</b>(<i></i>) |
|
159 <p> |
|
160 Public method to check, if the last action contained an add or delete. |
|
161 </p><dl> |
|
162 <dt>Returns:</dt> |
|
163 <dd> |
|
164 flag indicating the presence of an add or delete (boolean) |
|
165 </dd> |
|
166 </dl><a NAME="SvnDialog.keyPressEvent" ID="SvnDialog.keyPressEvent"></a> |
|
167 <h4>SvnDialog.keyPressEvent</h4> |
|
168 <b>keyPressEvent</b>(<i>evt</i>) |
|
169 <p> |
|
170 Protected slot to handle a key press event. |
|
171 </p><dl> |
|
172 <dt><i>evt</i></dt> |
|
173 <dd> |
|
174 the key press event (QKeyEvent) |
|
175 </dd> |
|
176 </dl><a NAME="SvnDialog.normalExit" ID="SvnDialog.normalExit"></a> |
|
177 <h4>SvnDialog.normalExit</h4> |
|
178 <b>normalExit</b>(<i></i>) |
|
179 <p> |
|
180 Public method to check for a normal process termination. |
|
181 </p><dl> |
|
182 <dt>Returns:</dt> |
|
183 <dd> |
|
184 flag indicating normal process termination (boolean) |
|
185 </dd> |
|
186 </dl><a NAME="SvnDialog.on_buttonBox_clicked" ID="SvnDialog.on_buttonBox_clicked"></a> |
|
187 <h4>SvnDialog.on_buttonBox_clicked</h4> |
|
188 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
189 <p> |
|
190 Private slot called by a button of the button box clicked. |
|
191 </p><dl> |
|
192 <dt><i>button</i></dt> |
|
193 <dd> |
|
194 button that was clicked (QAbstractButton) |
|
195 </dd> |
|
196 </dl><a NAME="SvnDialog.on_input_returnPressed" ID="SvnDialog.on_input_returnPressed"></a> |
|
197 <h4>SvnDialog.on_input_returnPressed</h4> |
|
198 <b>on_input_returnPressed</b>(<i></i>) |
|
199 <p> |
|
200 Private slot to handle the press of the return key in the input field. |
|
201 </p><a NAME="SvnDialog.on_passwordCheckBox_toggled" ID="SvnDialog.on_passwordCheckBox_toggled"></a> |
|
202 <h4>SvnDialog.on_passwordCheckBox_toggled</h4> |
|
203 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) |
|
204 <p> |
|
205 Private slot to handle the password checkbox toggled. |
|
206 </p><dl> |
|
207 <dt><i>isOn</i></dt> |
|
208 <dd> |
|
209 flag indicating the status of the check box (boolean) |
|
210 </dd> |
|
211 </dl><a NAME="SvnDialog.on_sendButton_clicked" ID="SvnDialog.on_sendButton_clicked"></a> |
|
212 <h4>SvnDialog.on_sendButton_clicked</h4> |
|
213 <b>on_sendButton_clicked</b>(<i></i>) |
|
214 <p> |
|
215 Private slot to send the input to the subversion process. |
|
216 </p><a NAME="SvnDialog.startProcess" ID="SvnDialog.startProcess"></a> |
|
217 <h4>SvnDialog.startProcess</h4> |
|
218 <b>startProcess</b>(<i>args, workingDir=None, setLanguage=False</i>) |
|
219 <p> |
|
220 Public slot used to start the process. |
|
221 </p><dl> |
|
222 <dt><i>args</i></dt> |
|
223 <dd> |
|
224 list of arguments for the process (list of strings) |
|
225 </dd><dt><i>workingDir</i></dt> |
|
226 <dd> |
|
227 working directory for the process (string) |
|
228 </dd><dt><i>setLanguage</i></dt> |
|
229 <dd> |
|
230 flag indicating to set the language to "C" (boolean) |
|
231 </dd> |
|
232 </dl><dl> |
|
233 <dt>Returns:</dt> |
|
234 <dd> |
|
235 flag indicating a successful start of the process |
|
236 </dd> |
|
237 </dl> |
|
238 <div align="right"><a href="#top">Up</a></div> |
|
239 <hr /> |
|
240 </body></html> |