eric6/Documentation/Source/eric6.Plugins.VcsPlugins.vcsSubversion.SvnDialog.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.VcsPlugins.vcsSubversion.SvnDialog</h1> 23 <h1>eric6.Plugins.VcsPlugins.vcsSubversion.SvnDialog</h1>
24
23 <p> 25 <p>
24 Module implementing a dialog starting a process and showing its output. 26 Module implementing a dialog starting a process and showing its output.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#SvnDialog">SvnDialog</a></td> 38 <td><a href="#SvnDialog">SvnDialog</a></td>
34 <td>Class implementing a dialog starting a process and showing its output.</td> 39 <td>Class implementing a dialog starting a process and showing its output.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
38 <table> 43
39 <tr><td>None</td></tr> 44 <table>
40 </table> 45 <tr><td>None</td></tr>
41 <hr /><hr /> 46 </table>
47 <hr />
48 <hr />
42 <a NAME="SvnDialog" ID="SvnDialog"></a> 49 <a NAME="SvnDialog" ID="SvnDialog"></a>
43 <h2>SvnDialog</h2> 50 <h2>SvnDialog</h2>
51
44 <p> 52 <p>
45 Class implementing a dialog starting a process and showing its output. 53 Class implementing a dialog starting a process and showing its output.
46 </p><p> 54 </p>
55 <p>
47 It starts a QProcess and displays a dialog that 56 It starts a QProcess and displays a dialog that
48 shows the output of the process. The dialog is modal, 57 shows the output of the process. The dialog is modal,
49 which causes a synchronized execution of the process. 58 which causes a synchronized execution of the process.
50 </p> 59 </p>
51 <h3>Derived from</h3> 60 <h3>Derived from</h3>
52 QDialog, Ui_SvnDialog 61 QDialog, Ui_SvnDialog
53 <h3>Class Attributes</h3> 62 <h3>Class Attributes</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Class Methods</h3> 67 <h3>Class Methods</h3>
68
58 <table> 69 <table>
59 <tr><td>None</td></tr> 70 <tr><td>None</td></tr>
60 </table> 71 </table>
61 <h3>Methods</h3> 72 <h3>Methods</h3>
62 <table> 73
74 <table>
75
63 <tr> 76 <tr>
64 <td><a href="#SvnDialog.__init__">SvnDialog</a></td> 77 <td><a href="#SvnDialog.__init__">SvnDialog</a></td>
65 <td>Constructor</td> 78 <td>Constructor</td>
66 </tr><tr> 79 </tr>
80 <tr>
67 <td><a href="#SvnDialog.__finish">__finish</a></td> 81 <td><a href="#SvnDialog.__finish">__finish</a></td>
68 <td>Private slot called when the process finished or the user pressed the button.</td> 82 <td>Private slot called when the process finished or the user pressed the button.</td>
69 </tr><tr> 83 </tr>
84 <tr>
70 <td><a href="#SvnDialog.__procFinished">__procFinished</a></td> 85 <td><a href="#SvnDialog.__procFinished">__procFinished</a></td>
71 <td>Private slot connected to the finished signal.</td> 86 <td>Private slot connected to the finished signal.</td>
72 </tr><tr> 87 </tr>
88 <tr>
73 <td><a href="#SvnDialog.__readStderr">__readStderr</a></td> 89 <td><a href="#SvnDialog.__readStderr">__readStderr</a></td>
74 <td>Private slot to handle the readyReadStderr signal.</td> 90 <td>Private slot to handle the readyReadStderr signal.</td>
75 </tr><tr> 91 </tr>
92 <tr>
76 <td><a href="#SvnDialog.__readStdout">__readStdout</a></td> 93 <td><a href="#SvnDialog.__readStdout">__readStdout</a></td>
77 <td>Private slot to handle the readyReadStdout signal.</td> 94 <td>Private slot to handle the readyReadStdout signal.</td>
78 </tr><tr> 95 </tr>
96 <tr>
79 <td><a href="#SvnDialog.hasAddOrDelete">hasAddOrDelete</a></td> 97 <td><a href="#SvnDialog.hasAddOrDelete">hasAddOrDelete</a></td>
80 <td>Public method to check, if the last action contained an add or delete.</td> 98 <td>Public method to check, if the last action contained an add or delete.</td>
81 </tr><tr> 99 </tr>
100 <tr>
82 <td><a href="#SvnDialog.keyPressEvent">keyPressEvent</a></td> 101 <td><a href="#SvnDialog.keyPressEvent">keyPressEvent</a></td>
83 <td>Protected slot to handle a key press event.</td> 102 <td>Protected slot to handle a key press event.</td>
84 </tr><tr> 103 </tr>
104 <tr>
85 <td><a href="#SvnDialog.normalExit">normalExit</a></td> 105 <td><a href="#SvnDialog.normalExit">normalExit</a></td>
86 <td>Public method to check for a normal process termination.</td> 106 <td>Public method to check for a normal process termination.</td>
87 </tr><tr> 107 </tr>
108 <tr>
88 <td><a href="#SvnDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> 109 <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> 110 <td>Private slot called by a button of the button box clicked.</td>
90 </tr><tr> 111 </tr>
112 <tr>
91 <td><a href="#SvnDialog.on_input_returnPressed">on_input_returnPressed</a></td> 113 <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> 114 <td>Private slot to handle the press of the return key in the input field.</td>
93 </tr><tr> 115 </tr>
116 <tr>
94 <td><a href="#SvnDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> 117 <td><a href="#SvnDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td>
95 <td>Private slot to handle the password checkbox toggled.</td> 118 <td>Private slot to handle the password checkbox toggled.</td>
96 </tr><tr> 119 </tr>
120 <tr>
97 <td><a href="#SvnDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> 121 <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> 122 <td>Private slot to send the input to the subversion process.</td>
99 </tr><tr> 123 </tr>
124 <tr>
100 <td><a href="#SvnDialog.startProcess">startProcess</a></td> 125 <td><a href="#SvnDialog.startProcess">startProcess</a></td>
101 <td>Public slot used to start the process.</td> 126 <td>Public slot used to start the process.</td>
102 </tr> 127 </tr>
103 </table> 128 </table>
104 <h3>Static Methods</h3> 129 <h3>Static Methods</h3>
105 <table> 130
106 <tr><td>None</td></tr> 131 <table>
107 </table> 132 <tr><td>None</td></tr>
133 </table>
134
108 <a NAME="SvnDialog.__init__" ID="SvnDialog.__init__"></a> 135 <a NAME="SvnDialog.__init__" ID="SvnDialog.__init__"></a>
109 <h4>SvnDialog (Constructor)</h4> 136 <h4>SvnDialog (Constructor)</h4>
110 <b>SvnDialog</b>(<i>text, parent=None</i>) 137 <b>SvnDialog</b>(<i>text, parent=None</i>)
138
111 <p> 139 <p>
112 Constructor 140 Constructor
113 </p><dl> 141 </p>
142 <dl>
143
114 <dt><i>text</i></dt> 144 <dt><i>text</i></dt>
115 <dd> 145 <dd>
116 text to be shown by the label (string) 146 text to be shown by the label (string)
117 </dd><dt><i>parent</i></dt> 147 </dd>
148 <dt><i>parent</i></dt>
118 <dd> 149 <dd>
119 parent widget (QWidget) 150 parent widget (QWidget)
120 </dd> 151 </dd>
121 </dl><a NAME="SvnDialog.__finish" ID="SvnDialog.__finish"></a> 152 </dl>
153 <a NAME="SvnDialog.__finish" ID="SvnDialog.__finish"></a>
122 <h4>SvnDialog.__finish</h4> 154 <h4>SvnDialog.__finish</h4>
123 <b>__finish</b>(<i></i>) 155 <b>__finish</b>(<i></i>)
156
124 <p> 157 <p>
125 Private slot called when the process finished or the user pressed the 158 Private slot called when the process finished or the user pressed the
126 button. 159 button.
127 </p><a NAME="SvnDialog.__procFinished" ID="SvnDialog.__procFinished"></a> 160 </p>
161 <a NAME="SvnDialog.__procFinished" ID="SvnDialog.__procFinished"></a>
128 <h4>SvnDialog.__procFinished</h4> 162 <h4>SvnDialog.__procFinished</h4>
129 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) 163 <b>__procFinished</b>(<i>exitCode, exitStatus</i>)
164
130 <p> 165 <p>
131 Private slot connected to the finished signal. 166 Private slot connected to the finished signal.
132 </p><dl> 167 </p>
168 <dl>
169
133 <dt><i>exitCode</i></dt> 170 <dt><i>exitCode</i></dt>
134 <dd> 171 <dd>
135 exit code of the process (integer) 172 exit code of the process (integer)
136 </dd><dt><i>exitStatus</i></dt> 173 </dd>
174 <dt><i>exitStatus</i></dt>
137 <dd> 175 <dd>
138 exit status of the process (QProcess.ExitStatus) 176 exit status of the process (QProcess.ExitStatus)
139 </dd> 177 </dd>
140 </dl><a NAME="SvnDialog.__readStderr" ID="SvnDialog.__readStderr"></a> 178 </dl>
179 <a NAME="SvnDialog.__readStderr" ID="SvnDialog.__readStderr"></a>
141 <h4>SvnDialog.__readStderr</h4> 180 <h4>SvnDialog.__readStderr</h4>
142 <b>__readStderr</b>(<i></i>) 181 <b>__readStderr</b>(<i></i>)
182
143 <p> 183 <p>
144 Private slot to handle the readyReadStderr signal. 184 Private slot to handle the readyReadStderr signal.
145 </p><p> 185 </p>
186 <p>
146 It reads the error output of the process and inserts it into the 187 It reads the error output of the process and inserts it into the
147 error pane. 188 error pane.
148 </p><a NAME="SvnDialog.__readStdout" ID="SvnDialog.__readStdout"></a> 189 </p>
190 <a NAME="SvnDialog.__readStdout" ID="SvnDialog.__readStdout"></a>
149 <h4>SvnDialog.__readStdout</h4> 191 <h4>SvnDialog.__readStdout</h4>
150 <b>__readStdout</b>(<i></i>) 192 <b>__readStdout</b>(<i></i>)
193
151 <p> 194 <p>
152 Private slot to handle the readyReadStdout signal. 195 Private slot to handle the readyReadStdout signal.
153 </p><p> 196 </p>
197 <p>
154 It reads the output of the process, formats it and inserts it into 198 It reads the output of the process, formats it and inserts it into
155 the contents pane. 199 the contents pane.
156 </p><a NAME="SvnDialog.hasAddOrDelete" ID="SvnDialog.hasAddOrDelete"></a> 200 </p>
201 <a NAME="SvnDialog.hasAddOrDelete" ID="SvnDialog.hasAddOrDelete"></a>
157 <h4>SvnDialog.hasAddOrDelete</h4> 202 <h4>SvnDialog.hasAddOrDelete</h4>
158 <b>hasAddOrDelete</b>(<i></i>) 203 <b>hasAddOrDelete</b>(<i></i>)
204
159 <p> 205 <p>
160 Public method to check, if the last action contained an add or delete. 206 Public method to check, if the last action contained an add or delete.
161 </p><dl> 207 </p>
208 <dl>
162 <dt>Returns:</dt> 209 <dt>Returns:</dt>
163 <dd> 210 <dd>
164 flag indicating the presence of an add or delete (boolean) 211 flag indicating the presence of an add or delete (boolean)
165 </dd> 212 </dd>
166 </dl><a NAME="SvnDialog.keyPressEvent" ID="SvnDialog.keyPressEvent"></a> 213 </dl>
214 <a NAME="SvnDialog.keyPressEvent" ID="SvnDialog.keyPressEvent"></a>
167 <h4>SvnDialog.keyPressEvent</h4> 215 <h4>SvnDialog.keyPressEvent</h4>
168 <b>keyPressEvent</b>(<i>evt</i>) 216 <b>keyPressEvent</b>(<i>evt</i>)
217
169 <p> 218 <p>
170 Protected slot to handle a key press event. 219 Protected slot to handle a key press event.
171 </p><dl> 220 </p>
221 <dl>
222
172 <dt><i>evt</i></dt> 223 <dt><i>evt</i></dt>
173 <dd> 224 <dd>
174 the key press event (QKeyEvent) 225 the key press event (QKeyEvent)
175 </dd> 226 </dd>
176 </dl><a NAME="SvnDialog.normalExit" ID="SvnDialog.normalExit"></a> 227 </dl>
228 <a NAME="SvnDialog.normalExit" ID="SvnDialog.normalExit"></a>
177 <h4>SvnDialog.normalExit</h4> 229 <h4>SvnDialog.normalExit</h4>
178 <b>normalExit</b>(<i></i>) 230 <b>normalExit</b>(<i></i>)
231
179 <p> 232 <p>
180 Public method to check for a normal process termination. 233 Public method to check for a normal process termination.
181 </p><dl> 234 </p>
235 <dl>
182 <dt>Returns:</dt> 236 <dt>Returns:</dt>
183 <dd> 237 <dd>
184 flag indicating normal process termination (boolean) 238 flag indicating normal process termination (boolean)
185 </dd> 239 </dd>
186 </dl><a NAME="SvnDialog.on_buttonBox_clicked" ID="SvnDialog.on_buttonBox_clicked"></a> 240 </dl>
241 <a NAME="SvnDialog.on_buttonBox_clicked" ID="SvnDialog.on_buttonBox_clicked"></a>
187 <h4>SvnDialog.on_buttonBox_clicked</h4> 242 <h4>SvnDialog.on_buttonBox_clicked</h4>
188 <b>on_buttonBox_clicked</b>(<i>button</i>) 243 <b>on_buttonBox_clicked</b>(<i>button</i>)
244
189 <p> 245 <p>
190 Private slot called by a button of the button box clicked. 246 Private slot called by a button of the button box clicked.
191 </p><dl> 247 </p>
248 <dl>
249
192 <dt><i>button</i></dt> 250 <dt><i>button</i></dt>
193 <dd> 251 <dd>
194 button that was clicked (QAbstractButton) 252 button that was clicked (QAbstractButton)
195 </dd> 253 </dd>
196 </dl><a NAME="SvnDialog.on_input_returnPressed" ID="SvnDialog.on_input_returnPressed"></a> 254 </dl>
255 <a NAME="SvnDialog.on_input_returnPressed" ID="SvnDialog.on_input_returnPressed"></a>
197 <h4>SvnDialog.on_input_returnPressed</h4> 256 <h4>SvnDialog.on_input_returnPressed</h4>
198 <b>on_input_returnPressed</b>(<i></i>) 257 <b>on_input_returnPressed</b>(<i></i>)
258
199 <p> 259 <p>
200 Private slot to handle the press of the return key in the input field. 260 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> 261 </p>
262 <a NAME="SvnDialog.on_passwordCheckBox_toggled" ID="SvnDialog.on_passwordCheckBox_toggled"></a>
202 <h4>SvnDialog.on_passwordCheckBox_toggled</h4> 263 <h4>SvnDialog.on_passwordCheckBox_toggled</h4>
203 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) 264 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>)
265
204 <p> 266 <p>
205 Private slot to handle the password checkbox toggled. 267 Private slot to handle the password checkbox toggled.
206 </p><dl> 268 </p>
269 <dl>
270
207 <dt><i>isOn</i></dt> 271 <dt><i>isOn</i></dt>
208 <dd> 272 <dd>
209 flag indicating the status of the check box (boolean) 273 flag indicating the status of the check box (boolean)
210 </dd> 274 </dd>
211 </dl><a NAME="SvnDialog.on_sendButton_clicked" ID="SvnDialog.on_sendButton_clicked"></a> 275 </dl>
276 <a NAME="SvnDialog.on_sendButton_clicked" ID="SvnDialog.on_sendButton_clicked"></a>
212 <h4>SvnDialog.on_sendButton_clicked</h4> 277 <h4>SvnDialog.on_sendButton_clicked</h4>
213 <b>on_sendButton_clicked</b>(<i></i>) 278 <b>on_sendButton_clicked</b>(<i></i>)
279
214 <p> 280 <p>
215 Private slot to send the input to the subversion process. 281 Private slot to send the input to the subversion process.
216 </p><a NAME="SvnDialog.startProcess" ID="SvnDialog.startProcess"></a> 282 </p>
283 <a NAME="SvnDialog.startProcess" ID="SvnDialog.startProcess"></a>
217 <h4>SvnDialog.startProcess</h4> 284 <h4>SvnDialog.startProcess</h4>
218 <b>startProcess</b>(<i>args, workingDir=None, setLanguage=False</i>) 285 <b>startProcess</b>(<i>args, workingDir=None, setLanguage=False</i>)
286
219 <p> 287 <p>
220 Public slot used to start the process. 288 Public slot used to start the process.
221 </p><dl> 289 </p>
290 <dl>
291
222 <dt><i>args</i></dt> 292 <dt><i>args</i></dt>
223 <dd> 293 <dd>
224 list of arguments for the process (list of strings) 294 list of arguments for the process (list of strings)
225 </dd><dt><i>workingDir</i></dt> 295 </dd>
296 <dt><i>workingDir</i></dt>
226 <dd> 297 <dd>
227 working directory for the process (string) 298 working directory for the process (string)
228 </dd><dt><i>setLanguage</i></dt> 299 </dd>
300 <dt><i>setLanguage</i></dt>
229 <dd> 301 <dd>
230 flag indicating to set the language to "C" (boolean) 302 flag indicating to set the language to "C" (boolean)
231 </dd> 303 </dd>
232 </dl><dl> 304 </dl>
305 <dl>
233 <dt>Returns:</dt> 306 <dt>Returns:</dt>
234 <dd> 307 <dd>
235 flag indicating a successful start of the process 308 flag indicating a successful start of the process
236 </dd> 309 </dd>
237 </dl> 310 </dl>

eric ide

mercurial