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