|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Project.ProjectTranslationsBrowser</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.Project.ProjectTranslationsBrowser</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a class used to display the translations part of the |
|
13 project. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>None</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 |
|
24 <tr> |
|
25 <td><a href="#ProjectTranslationsBrowser">ProjectTranslationsBrowser</a></td> |
|
26 <td>A class used to display the translations part of the project.</td> |
|
27 </tr> |
|
28 </table> |
|
29 <h3>Functions</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <hr /> |
|
35 <hr /> |
|
36 <a NAME="ProjectTranslationsBrowser" ID="ProjectTranslationsBrowser"></a> |
|
37 <h2>ProjectTranslationsBrowser</h2> |
|
38 |
|
39 <p> |
|
40 A class used to display the translations part of the project. |
|
41 </p> |
|
42 <h3>Signals</h3> |
|
43 <dl> |
|
44 |
|
45 <dt>appendStderr(str)</dt> |
|
46 <dd> |
|
47 emitted after something was received from |
|
48 a QProcess on stderr |
|
49 </dd> |
|
50 <dt>appendStdout(str)</dt> |
|
51 <dd> |
|
52 emitted after something was received from |
|
53 a QProcess on stdout |
|
54 </dd> |
|
55 <dt>showMenu(str, QMenu)</dt> |
|
56 <dd> |
|
57 emitted when a menu is about to be shown. |
|
58 The name of the menu and a reference to the menu are given. |
|
59 </dd> |
|
60 </dl> |
|
61 <h3>Derived from</h3> |
|
62 ProjectBaseBrowser |
|
63 <h3>Class Attributes</h3> |
|
64 |
|
65 <table> |
|
66 <tr><td>None</td></tr> |
|
67 </table> |
|
68 <h3>Class Methods</h3> |
|
69 |
|
70 <table> |
|
71 <tr><td>None</td></tr> |
|
72 </table> |
|
73 <h3>Methods</h3> |
|
74 |
|
75 <table> |
|
76 |
|
77 <tr> |
|
78 <td><a href="#ProjectTranslationsBrowser.__init__">ProjectTranslationsBrowser</a></td> |
|
79 <td>Constructor</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#ProjectTranslationsBrowser.__TRPreview">__TRPreview</a></td> |
|
83 <td>Private slot to handle the Preview translations action.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#ProjectTranslationsBrowser.__TRPreviewAll">__TRPreviewAll</a></td> |
|
87 <td>Private slot to handle the Preview all translations action.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#ProjectTranslationsBrowser.__addTranslationFiles">__addTranslationFiles</a></td> |
|
91 <td>Private method to add translation files to the project.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#ProjectTranslationsBrowser.__deleteLanguageFile">__deleteLanguageFile</a></td> |
|
95 <td>Private method to delete a translation file from the project.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#ProjectTranslationsBrowser.__extractMessages">__extractMessages</a></td> |
|
99 <td>Private slot to extract the messages to form a messages template file.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#ProjectTranslationsBrowser.__generateAll">__generateAll</a></td> |
|
103 <td>Private method to generate all translation files (.ts) for Qt Linguist.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#ProjectTranslationsBrowser.__generateObsoleteAll">__generateObsoleteAll</a></td> |
|
107 <td>Private method to generate all translation files (.ts) for Qt Linguist.</td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td><a href="#ProjectTranslationsBrowser.__generateObsoleteSelected">__generateObsoleteSelected</a></td> |
|
111 <td>Private method to generate selected translation files (.ts) for Qt Linguist.</td> |
|
112 </tr> |
|
113 <tr> |
|
114 <td><a href="#ProjectTranslationsBrowser.__generateSelected">__generateSelected</a></td> |
|
115 <td>Private method to generate selected translation files (.ts) for Qt Linguist.</td> |
|
116 </tr> |
|
117 <tr> |
|
118 <td><a href="#ProjectTranslationsBrowser.__generateTSFile">__generateTSFile</a></td> |
|
119 <td>Private method used to run pylupdate5 / pylupdate6 / pyside2-lupdate / pyside6-lupdate to generate the .ts files.</td> |
|
120 </tr> |
|
121 <tr> |
|
122 <td><a href="#ProjectTranslationsBrowser.__generateTSFileDone">__generateTSFileDone</a></td> |
|
123 <td>Private slot to handle the finished signal of the pylupdate process.</td> |
|
124 </tr> |
|
125 <tr> |
|
126 <td><a href="#ProjectTranslationsBrowser.__openFileInEditor">__openFileInEditor</a></td> |
|
127 <td>Private slot to handle the Open in Editor menu action.</td> |
|
128 </tr> |
|
129 <tr> |
|
130 <td><a href="#ProjectTranslationsBrowser.__readStderr">__readStderr</a></td> |
|
131 <td>Private method to read from a process' stderr channel.</td> |
|
132 </tr> |
|
133 <tr> |
|
134 <td><a href="#ProjectTranslationsBrowser.__readStderrLrelease">__readStderrLrelease</a></td> |
|
135 <td>Private slot to handle the readyReadStandardError signal of the lrelease process.</td> |
|
136 </tr> |
|
137 <tr> |
|
138 <td><a href="#ProjectTranslationsBrowser.__readStderrLupdate">__readStderrLupdate</a></td> |
|
139 <td>Private slot to handle the readyReadStandardError signal of the pylupdate5 / pylupdate6 / pyside2-lupdate / pyside6-lupdate process.</td> |
|
140 </tr> |
|
141 <tr> |
|
142 <td><a href="#ProjectTranslationsBrowser.__readStdout">__readStdout</a></td> |
|
143 <td>Private method to read from a process' stdout channel.</td> |
|
144 </tr> |
|
145 <tr> |
|
146 <td><a href="#ProjectTranslationsBrowser.__readStdoutLrelease">__readStdoutLrelease</a></td> |
|
147 <td>Private slot to handle the readyReadStandardOutput signal of the lrelease process.</td> |
|
148 </tr> |
|
149 <tr> |
|
150 <td><a href="#ProjectTranslationsBrowser.__readStdoutLupdate">__readStdoutLupdate</a></td> |
|
151 <td>Private slot to handle the readyReadStandardOutput signal of the pylupdate process.</td> |
|
152 </tr> |
|
153 <tr> |
|
154 <td><a href="#ProjectTranslationsBrowser.__releaseAll">__releaseAll</a></td> |
|
155 <td>Private method to release the translation files (.qm).</td> |
|
156 </tr> |
|
157 <tr> |
|
158 <td><a href="#ProjectTranslationsBrowser.__releaseSelected">__releaseSelected</a></td> |
|
159 <td>Private method to release the translation files (.qm).</td> |
|
160 </tr> |
|
161 <tr> |
|
162 <td><a href="#ProjectTranslationsBrowser.__releaseTSFile">__releaseTSFile</a></td> |
|
163 <td>Private method to run lrelease to release the translation files (.qm).</td> |
|
164 </tr> |
|
165 <tr> |
|
166 <td><a href="#ProjectTranslationsBrowser.__releaseTSFileDone">__releaseTSFileDone</a></td> |
|
167 <td>Private slot to handle the finished signal of the lrelease process.</td> |
|
168 </tr> |
|
169 <tr> |
|
170 <td><a href="#ProjectTranslationsBrowser.__removeLanguageFile">__removeLanguageFile</a></td> |
|
171 <td>Private method to remove a translation from the project.</td> |
|
172 </tr> |
|
173 <tr> |
|
174 <td><a href="#ProjectTranslationsBrowser.__showContextMenu">__showContextMenu</a></td> |
|
175 <td>Private slot called by the menu aboutToShow signal.</td> |
|
176 </tr> |
|
177 <tr> |
|
178 <td><a href="#ProjectTranslationsBrowser.__showContextMenuBack">__showContextMenuBack</a></td> |
|
179 <td>Private slot called by the backMenu aboutToShow signal.</td> |
|
180 </tr> |
|
181 <tr> |
|
182 <td><a href="#ProjectTranslationsBrowser.__showContextMenuDir">__showContextMenuDir</a></td> |
|
183 <td>Private slot called by the dirMenu aboutToShow signal.</td> |
|
184 </tr> |
|
185 <tr> |
|
186 <td><a href="#ProjectTranslationsBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> |
|
187 <td>Private slot called by the multiMenu aboutToShow signal.</td> |
|
188 </tr> |
|
189 <tr> |
|
190 <td><a href="#ProjectTranslationsBrowser.__writeTempProjectFile">__writeTempProjectFile</a></td> |
|
191 <td>Private method to write a temporary project file suitable for pylupdate and lrelease.</td> |
|
192 </tr> |
|
193 <tr> |
|
194 <td><a href="#ProjectTranslationsBrowser._contextMenuRequested">_contextMenuRequested</a></td> |
|
195 <td>Protected slot to show the context menu.</td> |
|
196 </tr> |
|
197 <tr> |
|
198 <td><a href="#ProjectTranslationsBrowser._createPopupMenus">_createPopupMenus</a></td> |
|
199 <td>Protected overloaded method to generate the popup menu.</td> |
|
200 </tr> |
|
201 <tr> |
|
202 <td><a href="#ProjectTranslationsBrowser._initHookMethods">_initHookMethods</a></td> |
|
203 <td>Protected method to initialize the hooks dictionary.</td> |
|
204 </tr> |
|
205 <tr> |
|
206 <td><a href="#ProjectTranslationsBrowser._openItem">_openItem</a></td> |
|
207 <td>Protected slot to handle the open popup menu entry.</td> |
|
208 </tr> |
|
209 </table> |
|
210 <h3>Static Methods</h3> |
|
211 |
|
212 <table> |
|
213 <tr><td>None</td></tr> |
|
214 </table> |
|
215 |
|
216 <a NAME="ProjectTranslationsBrowser.__init__" ID="ProjectTranslationsBrowser.__init__"></a> |
|
217 <h4>ProjectTranslationsBrowser (Constructor)</h4> |
|
218 <b>ProjectTranslationsBrowser</b>(<i>project, parent=None</i>) |
|
219 |
|
220 <p> |
|
221 Constructor |
|
222 </p> |
|
223 <dl> |
|
224 |
|
225 <dt><i>project</i></dt> |
|
226 <dd> |
|
227 reference to the project object |
|
228 </dd> |
|
229 <dt><i>parent</i></dt> |
|
230 <dd> |
|
231 parent widget of this browser (QWidget) |
|
232 </dd> |
|
233 </dl> |
|
234 <a NAME="ProjectTranslationsBrowser.__TRPreview" ID="ProjectTranslationsBrowser.__TRPreview"></a> |
|
235 <h4>ProjectTranslationsBrowser.__TRPreview</h4> |
|
236 <b>__TRPreview</b>(<i>previewAll=False</i>) |
|
237 |
|
238 <p> |
|
239 Private slot to handle the Preview translations action. |
|
240 </p> |
|
241 <dl> |
|
242 |
|
243 <dt><i>previewAll</i></dt> |
|
244 <dd> |
|
245 flag indicating, that all translations |
|
246 should be previewed (boolean) |
|
247 </dd> |
|
248 </dl> |
|
249 <a NAME="ProjectTranslationsBrowser.__TRPreviewAll" ID="ProjectTranslationsBrowser.__TRPreviewAll"></a> |
|
250 <h4>ProjectTranslationsBrowser.__TRPreviewAll</h4> |
|
251 <b>__TRPreviewAll</b>(<i></i>) |
|
252 |
|
253 <p> |
|
254 Private slot to handle the Preview all translations action. |
|
255 </p> |
|
256 <a NAME="ProjectTranslationsBrowser.__addTranslationFiles" ID="ProjectTranslationsBrowser.__addTranslationFiles"></a> |
|
257 <h4>ProjectTranslationsBrowser.__addTranslationFiles</h4> |
|
258 <b>__addTranslationFiles</b>(<i></i>) |
|
259 |
|
260 <p> |
|
261 Private method to add translation files to the project. |
|
262 </p> |
|
263 <a NAME="ProjectTranslationsBrowser.__deleteLanguageFile" ID="ProjectTranslationsBrowser.__deleteLanguageFile"></a> |
|
264 <h4>ProjectTranslationsBrowser.__deleteLanguageFile</h4> |
|
265 <b>__deleteLanguageFile</b>(<i></i>) |
|
266 |
|
267 <p> |
|
268 Private method to delete a translation file from the project. |
|
269 </p> |
|
270 <a NAME="ProjectTranslationsBrowser.__extractMessages" ID="ProjectTranslationsBrowser.__extractMessages"></a> |
|
271 <h4>ProjectTranslationsBrowser.__extractMessages</h4> |
|
272 <b>__extractMessages</b>(<i></i>) |
|
273 |
|
274 <p> |
|
275 Private slot to extract the messages to form a messages template file. |
|
276 </p> |
|
277 <a NAME="ProjectTranslationsBrowser.__generateAll" ID="ProjectTranslationsBrowser.__generateAll"></a> |
|
278 <h4>ProjectTranslationsBrowser.__generateAll</h4> |
|
279 <b>__generateAll</b>(<i></i>) |
|
280 |
|
281 <p> |
|
282 Private method to generate all translation files (.ts) for Qt Linguist. |
|
283 </p> |
|
284 <p> |
|
285 All obsolete strings are removed from the .ts file. |
|
286 </p> |
|
287 <a NAME="ProjectTranslationsBrowser.__generateObsoleteAll" ID="ProjectTranslationsBrowser.__generateObsoleteAll"></a> |
|
288 <h4>ProjectTranslationsBrowser.__generateObsoleteAll</h4> |
|
289 <b>__generateObsoleteAll</b>(<i></i>) |
|
290 |
|
291 <p> |
|
292 Private method to generate all translation files (.ts) for Qt Linguist. |
|
293 </p> |
|
294 <p> |
|
295 Obsolete strings are kept. |
|
296 </p> |
|
297 <a NAME="ProjectTranslationsBrowser.__generateObsoleteSelected" ID="ProjectTranslationsBrowser.__generateObsoleteSelected"></a> |
|
298 <h4>ProjectTranslationsBrowser.__generateObsoleteSelected</h4> |
|
299 <b>__generateObsoleteSelected</b>(<i></i>) |
|
300 |
|
301 <p> |
|
302 Private method to generate selected translation files (.ts) for |
|
303 Qt Linguist. |
|
304 </p> |
|
305 <p> |
|
306 Obsolete strings are kept. |
|
307 </p> |
|
308 <a NAME="ProjectTranslationsBrowser.__generateSelected" ID="ProjectTranslationsBrowser.__generateSelected"></a> |
|
309 <h4>ProjectTranslationsBrowser.__generateSelected</h4> |
|
310 <b>__generateSelected</b>(<i></i>) |
|
311 |
|
312 <p> |
|
313 Private method to generate selected translation files (.ts) for |
|
314 Qt Linguist. |
|
315 </p> |
|
316 <p> |
|
317 All obsolete strings are removed from the .ts file. |
|
318 </p> |
|
319 <a NAME="ProjectTranslationsBrowser.__generateTSFile" ID="ProjectTranslationsBrowser.__generateTSFile"></a> |
|
320 <h4>ProjectTranslationsBrowser.__generateTSFile</h4> |
|
321 <b>__generateTSFile</b>(<i>noobsolete=False, generateAll=True</i>) |
|
322 |
|
323 <p> |
|
324 Private method used to run pylupdate5 / pylupdate6 / pyside2-lupdate / |
|
325 pyside6-lupdate to generate the .ts files. |
|
326 </p> |
|
327 <dl> |
|
328 |
|
329 <dt><i>noobsolete</i></dt> |
|
330 <dd> |
|
331 flag indicating whether obsolete entries should be |
|
332 kept (boolean) |
|
333 </dd> |
|
334 <dt><i>generateAll</i></dt> |
|
335 <dd> |
|
336 flag indicating whether all translations should be |
|
337 generated (boolean) |
|
338 </dd> |
|
339 </dl> |
|
340 <a NAME="ProjectTranslationsBrowser.__generateTSFileDone" ID="ProjectTranslationsBrowser.__generateTSFileDone"></a> |
|
341 <h4>ProjectTranslationsBrowser.__generateTSFileDone</h4> |
|
342 <b>__generateTSFileDone</b>(<i>proc, exitCode, exitStatus</i>) |
|
343 |
|
344 <p> |
|
345 Private slot to handle the finished signal of the pylupdate process. |
|
346 </p> |
|
347 <dl> |
|
348 |
|
349 <dt><i>proc</i> (QProcess)</dt> |
|
350 <dd> |
|
351 reference to the process |
|
352 </dd> |
|
353 <dt><i>exitCode</i> (int)</dt> |
|
354 <dd> |
|
355 exit code of the process |
|
356 </dd> |
|
357 <dt><i>exitStatus</i> (QProcess.ExitStatus)</dt> |
|
358 <dd> |
|
359 exit status of the process |
|
360 </dd> |
|
361 </dl> |
|
362 <a NAME="ProjectTranslationsBrowser.__openFileInEditor" ID="ProjectTranslationsBrowser.__openFileInEditor"></a> |
|
363 <h4>ProjectTranslationsBrowser.__openFileInEditor</h4> |
|
364 <b>__openFileInEditor</b>(<i></i>) |
|
365 |
|
366 <p> |
|
367 Private slot to handle the Open in Editor menu action. |
|
368 </p> |
|
369 <a NAME="ProjectTranslationsBrowser.__readStderr" ID="ProjectTranslationsBrowser.__readStderr"></a> |
|
370 <h4>ProjectTranslationsBrowser.__readStderr</h4> |
|
371 <b>__readStderr</b>(<i>proc, ps</i>) |
|
372 |
|
373 <p> |
|
374 Private method to read from a process' stderr channel. |
|
375 </p> |
|
376 <dl> |
|
377 |
|
378 <dt><i>proc</i></dt> |
|
379 <dd> |
|
380 process to read from (QProcess) |
|
381 </dd> |
|
382 <dt><i>ps</i></dt> |
|
383 <dd> |
|
384 propmt string (string) |
|
385 </dd> |
|
386 </dl> |
|
387 <a NAME="ProjectTranslationsBrowser.__readStderrLrelease" ID="ProjectTranslationsBrowser.__readStderrLrelease"></a> |
|
388 <h4>ProjectTranslationsBrowser.__readStderrLrelease</h4> |
|
389 <b>__readStderrLrelease</b>(<i>proc</i>) |
|
390 |
|
391 <p> |
|
392 Private slot to handle the readyReadStandardError signal of the |
|
393 lrelease process. |
|
394 </p> |
|
395 <dl> |
|
396 |
|
397 <dt><i>proc</i> (QProcess)</dt> |
|
398 <dd> |
|
399 reference to the process |
|
400 </dd> |
|
401 </dl> |
|
402 <a NAME="ProjectTranslationsBrowser.__readStderrLupdate" ID="ProjectTranslationsBrowser.__readStderrLupdate"></a> |
|
403 <h4>ProjectTranslationsBrowser.__readStderrLupdate</h4> |
|
404 <b>__readStderrLupdate</b>(<i>proc</i>) |
|
405 |
|
406 <p> |
|
407 Private slot to handle the readyReadStandardError signal of the |
|
408 pylupdate5 / pylupdate6 / pyside2-lupdate / pyside6-lupdate process. |
|
409 </p> |
|
410 <dl> |
|
411 |
|
412 <dt><i>proc</i> (QProcess)</dt> |
|
413 <dd> |
|
414 reference to the process |
|
415 </dd> |
|
416 </dl> |
|
417 <a NAME="ProjectTranslationsBrowser.__readStdout" ID="ProjectTranslationsBrowser.__readStdout"></a> |
|
418 <h4>ProjectTranslationsBrowser.__readStdout</h4> |
|
419 <b>__readStdout</b>(<i>proc, ps</i>) |
|
420 |
|
421 <p> |
|
422 Private method to read from a process' stdout channel. |
|
423 </p> |
|
424 <dl> |
|
425 |
|
426 <dt><i>proc</i></dt> |
|
427 <dd> |
|
428 process to read from (QProcess) |
|
429 </dd> |
|
430 <dt><i>ps</i></dt> |
|
431 <dd> |
|
432 prompt string (string) |
|
433 </dd> |
|
434 </dl> |
|
435 <a NAME="ProjectTranslationsBrowser.__readStdoutLrelease" ID="ProjectTranslationsBrowser.__readStdoutLrelease"></a> |
|
436 <h4>ProjectTranslationsBrowser.__readStdoutLrelease</h4> |
|
437 <b>__readStdoutLrelease</b>(<i>proc</i>) |
|
438 |
|
439 <p> |
|
440 Private slot to handle the readyReadStandardOutput signal of the |
|
441 lrelease process. |
|
442 </p> |
|
443 <dl> |
|
444 |
|
445 <dt><i>proc</i> (QProcess)</dt> |
|
446 <dd> |
|
447 reference to the process |
|
448 </dd> |
|
449 </dl> |
|
450 <a NAME="ProjectTranslationsBrowser.__readStdoutLupdate" ID="ProjectTranslationsBrowser.__readStdoutLupdate"></a> |
|
451 <h4>ProjectTranslationsBrowser.__readStdoutLupdate</h4> |
|
452 <b>__readStdoutLupdate</b>(<i>proc</i>) |
|
453 |
|
454 <p> |
|
455 Private slot to handle the readyReadStandardOutput signal of the |
|
456 pylupdate process. |
|
457 </p> |
|
458 <dl> |
|
459 |
|
460 <dt><i>proc</i> (QProcess)</dt> |
|
461 <dd> |
|
462 reference to the process |
|
463 </dd> |
|
464 </dl> |
|
465 <a NAME="ProjectTranslationsBrowser.__releaseAll" ID="ProjectTranslationsBrowser.__releaseAll"></a> |
|
466 <h4>ProjectTranslationsBrowser.__releaseAll</h4> |
|
467 <b>__releaseAll</b>(<i></i>) |
|
468 |
|
469 <p> |
|
470 Private method to release the translation files (.qm). |
|
471 </p> |
|
472 <a NAME="ProjectTranslationsBrowser.__releaseSelected" ID="ProjectTranslationsBrowser.__releaseSelected"></a> |
|
473 <h4>ProjectTranslationsBrowser.__releaseSelected</h4> |
|
474 <b>__releaseSelected</b>(<i></i>) |
|
475 |
|
476 <p> |
|
477 Private method to release the translation files (.qm). |
|
478 </p> |
|
479 <a NAME="ProjectTranslationsBrowser.__releaseTSFile" ID="ProjectTranslationsBrowser.__releaseTSFile"></a> |
|
480 <h4>ProjectTranslationsBrowser.__releaseTSFile</h4> |
|
481 <b>__releaseTSFile</b>(<i>generateAll=False</i>) |
|
482 |
|
483 <p> |
|
484 Private method to run lrelease to release the translation files (.qm). |
|
485 </p> |
|
486 <dl> |
|
487 |
|
488 <dt><i>generateAll</i></dt> |
|
489 <dd> |
|
490 flag indicating whether all translations should be |
|
491 released (boolean) |
|
492 </dd> |
|
493 </dl> |
|
494 <a NAME="ProjectTranslationsBrowser.__releaseTSFileDone" ID="ProjectTranslationsBrowser.__releaseTSFileDone"></a> |
|
495 <h4>ProjectTranslationsBrowser.__releaseTSFileDone</h4> |
|
496 <b>__releaseTSFileDone</b>(<i>proc, exitCode, exitStatus</i>) |
|
497 |
|
498 <p> |
|
499 Private slot to handle the finished signal of the lrelease process. |
|
500 </p> |
|
501 <dl> |
|
502 |
|
503 <dt><i>proc</i> (QProcess)</dt> |
|
504 <dd> |
|
505 reference to the process |
|
506 </dd> |
|
507 <dt><i>exitCode</i> (int)</dt> |
|
508 <dd> |
|
509 exit code of the process |
|
510 </dd> |
|
511 <dt><i>exitStatus</i> (QProcess.ExitStatus)</dt> |
|
512 <dd> |
|
513 exit status of the process |
|
514 </dd> |
|
515 </dl> |
|
516 <a NAME="ProjectTranslationsBrowser.__removeLanguageFile" ID="ProjectTranslationsBrowser.__removeLanguageFile"></a> |
|
517 <h4>ProjectTranslationsBrowser.__removeLanguageFile</h4> |
|
518 <b>__removeLanguageFile</b>(<i></i>) |
|
519 |
|
520 <p> |
|
521 Private method to remove a translation from the project. |
|
522 </p> |
|
523 <a NAME="ProjectTranslationsBrowser.__showContextMenu" ID="ProjectTranslationsBrowser.__showContextMenu"></a> |
|
524 <h4>ProjectTranslationsBrowser.__showContextMenu</h4> |
|
525 <b>__showContextMenu</b>(<i></i>) |
|
526 |
|
527 <p> |
|
528 Private slot called by the menu aboutToShow signal. |
|
529 </p> |
|
530 <a NAME="ProjectTranslationsBrowser.__showContextMenuBack" ID="ProjectTranslationsBrowser.__showContextMenuBack"></a> |
|
531 <h4>ProjectTranslationsBrowser.__showContextMenuBack</h4> |
|
532 <b>__showContextMenuBack</b>(<i></i>) |
|
533 |
|
534 <p> |
|
535 Private slot called by the backMenu aboutToShow signal. |
|
536 </p> |
|
537 <a NAME="ProjectTranslationsBrowser.__showContextMenuDir" ID="ProjectTranslationsBrowser.__showContextMenuDir"></a> |
|
538 <h4>ProjectTranslationsBrowser.__showContextMenuDir</h4> |
|
539 <b>__showContextMenuDir</b>(<i></i>) |
|
540 |
|
541 <p> |
|
542 Private slot called by the dirMenu aboutToShow signal. |
|
543 </p> |
|
544 <a NAME="ProjectTranslationsBrowser.__showContextMenuMulti" ID="ProjectTranslationsBrowser.__showContextMenuMulti"></a> |
|
545 <h4>ProjectTranslationsBrowser.__showContextMenuMulti</h4> |
|
546 <b>__showContextMenuMulti</b>(<i></i>) |
|
547 |
|
548 <p> |
|
549 Private slot called by the multiMenu aboutToShow signal. |
|
550 </p> |
|
551 <a NAME="ProjectTranslationsBrowser.__writeTempProjectFile" ID="ProjectTranslationsBrowser.__writeTempProjectFile"></a> |
|
552 <h4>ProjectTranslationsBrowser.__writeTempProjectFile</h4> |
|
553 <b>__writeTempProjectFile</b>(<i>langs, filterList</i>) |
|
554 |
|
555 <p> |
|
556 Private method to write a temporary project file suitable for |
|
557 pylupdate and lrelease. |
|
558 </p> |
|
559 <dl> |
|
560 |
|
561 <dt><i>langs</i></dt> |
|
562 <dd> |
|
563 list of languages to include in the process. An empty |
|
564 list (default) means that all translations should be included. |
|
565 (list of ProjectBrowserFileItem) |
|
566 </dd> |
|
567 <dt><i>filterList</i></dt> |
|
568 <dd> |
|
569 list of source file extension that should be |
|
570 considered (list of strings) |
|
571 </dd> |
|
572 </dl> |
|
573 <dl> |
|
574 <dt>Return:</dt> |
|
575 <dd> |
|
576 flag indicating success |
|
577 </dd> |
|
578 </dl> |
|
579 <a NAME="ProjectTranslationsBrowser._contextMenuRequested" ID="ProjectTranslationsBrowser._contextMenuRequested"></a> |
|
580 <h4>ProjectTranslationsBrowser._contextMenuRequested</h4> |
|
581 <b>_contextMenuRequested</b>(<i>coord</i>) |
|
582 |
|
583 <p> |
|
584 Protected slot to show the context menu. |
|
585 </p> |
|
586 <dl> |
|
587 |
|
588 <dt><i>coord</i></dt> |
|
589 <dd> |
|
590 the position of the mouse pointer (QPoint) |
|
591 </dd> |
|
592 </dl> |
|
593 <a NAME="ProjectTranslationsBrowser._createPopupMenus" ID="ProjectTranslationsBrowser._createPopupMenus"></a> |
|
594 <h4>ProjectTranslationsBrowser._createPopupMenus</h4> |
|
595 <b>_createPopupMenus</b>(<i></i>) |
|
596 |
|
597 <p> |
|
598 Protected overloaded method to generate the popup menu. |
|
599 </p> |
|
600 <a NAME="ProjectTranslationsBrowser._initHookMethods" ID="ProjectTranslationsBrowser._initHookMethods"></a> |
|
601 <h4>ProjectTranslationsBrowser._initHookMethods</h4> |
|
602 <b>_initHookMethods</b>(<i></i>) |
|
603 |
|
604 <p> |
|
605 Protected method to initialize the hooks dictionary. |
|
606 </p> |
|
607 <p> |
|
608 Supported hook methods are: |
|
609 <ul> |
|
610 <li>extractMessages: takes no parameters</li> |
|
611 <li>generateAll: takes list of filenames as parameter</li> |
|
612 <li>generateAllWithObsolete: takes list of filenames as parameter</li> |
|
613 <li>generateSelected: takes list of filenames as parameter</li> |
|
614 <li>generateSelectedWithObsolete: takes list of filenames as |
|
615 parameter</li> |
|
616 <li>releaseAll: takes list of filenames as parameter</li> |
|
617 <li>releaseSelected: takes list of filenames as parameter</li> |
|
618 <li>open: takes a filename as parameter</li> |
|
619 </ul> |
|
620 </p> |
|
621 <p> |
|
622 <b>Note</b>: Filenames are relative to the project directory. |
|
623 </p> |
|
624 <a NAME="ProjectTranslationsBrowser._openItem" ID="ProjectTranslationsBrowser._openItem"></a> |
|
625 <h4>ProjectTranslationsBrowser._openItem</h4> |
|
626 <b>_openItem</b>(<i></i>) |
|
627 |
|
628 <p> |
|
629 Protected slot to handle the open popup menu entry. |
|
630 </p> |
|
631 <div align="right"><a href="#top">Up</a></div> |
|
632 <hr /> |
|
633 </body></html> |