eric6/Documentation/Source/eric6.Plugins.UiExtensionPlugins.Translator.TranslatorWidget.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.UiExtensionPlugins.Translator.TranslatorWidget</h1> 23 <h1>eric6.Plugins.UiExtensionPlugins.Translator.TranslatorWidget</h1>
24
23 <p> 25 <p>
24 Module implementing the translator widget. 26 Module implementing the translator widget.
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="#TranslatorWidget">TranslatorWidget</a></td> 38 <td><a href="#TranslatorWidget">TranslatorWidget</a></td>
34 <td>Class implementing the translator widget.</td> 39 <td>Class implementing the translator widget.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
43
38 <table> 44 <table>
39 <tr><td>None</td></tr> 45 <tr><td>None</td></tr>
40 </table> 46 </table>
41 <hr /><hr /> 47 <hr />
48 <hr />
42 <a NAME="TranslatorWidget" ID="TranslatorWidget"></a> 49 <a NAME="TranslatorWidget" ID="TranslatorWidget"></a>
43 <h2>TranslatorWidget</h2> 50 <h2>TranslatorWidget</h2>
51
44 <p> 52 <p>
45 Class implementing the translator widget. 53 Class implementing the translator widget.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 QWidget, Ui_TranslatorWidget 56 QWidget, Ui_TranslatorWidget
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>None</td></tr> 60 <tr><td>None</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
58 <table> 68
69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#TranslatorWidget.__init__">TranslatorWidget</a></td> 72 <td><a href="#TranslatorWidget.__init__">TranslatorWidget</a></td>
61 <td>Constructor</td> 73 <td>Constructor</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#TranslatorWidget.__availableTranslationsLoaded">__availableTranslationsLoaded</a></td> 76 <td><a href="#TranslatorWidget.__availableTranslationsLoaded">__availableTranslationsLoaded</a></td>
64 <td>Private slot to handle the availability of translations.</td> 77 <td>Private slot to handle the availability of translations.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#TranslatorWidget.__engineComboBoxCurrentIndexChanged">__engineComboBoxCurrentIndexChanged</a></td> 80 <td><a href="#TranslatorWidget.__engineComboBoxCurrentIndexChanged">__engineComboBoxCurrentIndexChanged</a></td>
67 <td>Private slot to handle the selection of a translation service.</td> 81 <td>Private slot to handle the selection of a translation service.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#TranslatorWidget.__ensureTranslationEngineReady">__ensureTranslationEngineReady</a></td> 84 <td><a href="#TranslatorWidget.__ensureTranslationEngineReady">__ensureTranslationEngineReady</a></td>
70 <td>Private slot to ensure, that the currently selected translation engine is ready.</td> 85 <td>Private slot to ensure, that the currently selected translation engine is ready.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#TranslatorWidget.__mediaPlayerStateChanged">__mediaPlayerStateChanged</a></td> 88 <td><a href="#TranslatorWidget.__mediaPlayerStateChanged">__mediaPlayerStateChanged</a></td>
73 <td>Private slot handling changes of the media player state.</td> 89 <td>Private slot handling changes of the media player state.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#TranslatorWidget.__originalLanguage">__originalLanguage</a></td> 92 <td><a href="#TranslatorWidget.__originalLanguage">__originalLanguage</a></td>
76 <td>Private method to return the code of the selected original language.</td> 93 <td>Private method to return the code of the selected original language.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#TranslatorWidget.__pronounce">__pronounce</a></td> 96 <td><a href="#TranslatorWidget.__pronounce">__pronounce</a></td>
79 <td>Private method to pronounce the given text.</td> 97 <td>Private method to pronounce the given text.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#TranslatorWidget.__translate">__translate</a></td> 100 <td><a href="#TranslatorWidget.__translate">__translate</a></td>
82 <td>Private method to translate the given text.</td> 101 <td>Private method to translate the given text.</td>
83 </tr><tr> 102 </tr>
103 <tr>
84 <td><a href="#TranslatorWidget.__translationLanguage">__translationLanguage</a></td> 104 <td><a href="#TranslatorWidget.__translationLanguage">__translationLanguage</a></td>
85 <td>Private method to return the code of the selected translation language.</td> 105 <td>Private method to return the code of the selected translation language.</td>
86 </tr><tr> 106 </tr>
107 <tr>
87 <td><a href="#TranslatorWidget.__updateClearButton">__updateClearButton</a></td> 108 <td><a href="#TranslatorWidget.__updateClearButton">__updateClearButton</a></td>
88 <td>Private slot to set the state of the clear button.</td> 109 <td>Private slot to set the state of the clear button.</td>
89 </tr><tr> 110 </tr>
111 <tr>
90 <td><a href="#TranslatorWidget.__updateEngines">__updateEngines</a></td> 112 <td><a href="#TranslatorWidget.__updateEngines">__updateEngines</a></td>
91 <td>Private slot to update the engines combo box.</td> 113 <td>Private slot to update the engines combo box.</td>
92 </tr><tr> 114 </tr>
115 <tr>
93 <td><a href="#TranslatorWidget.__updateLanguages">__updateLanguages</a></td> 116 <td><a href="#TranslatorWidget.__updateLanguages">__updateLanguages</a></td>
94 <td>Private slot to update the language combo boxes.</td> 117 <td>Private slot to update the language combo boxes.</td>
95 </tr><tr> 118 </tr>
119 <tr>
96 <td><a href="#TranslatorWidget.__updatePronounceButtons">__updatePronounceButtons</a></td> 120 <td><a href="#TranslatorWidget.__updatePronounceButtons">__updatePronounceButtons</a></td>
97 <td>Private slot to set the state of the pronounce buttons.</td> 121 <td>Private slot to set the state of the pronounce buttons.</td>
98 </tr><tr> 122 </tr>
123 <tr>
99 <td><a href="#TranslatorWidget.__updateTranslateButton">__updateTranslateButton</a></td> 124 <td><a href="#TranslatorWidget.__updateTranslateButton">__updateTranslateButton</a></td>
100 <td>Private slot to set the state of the translate button.</td> 125 <td>Private slot to set the state of the translate button.</td>
101 </tr><tr> 126 </tr>
127 <tr>
102 <td><a href="#TranslatorWidget.on_clearButton_clicked">on_clearButton_clicked</a></td> 128 <td><a href="#TranslatorWidget.on_clearButton_clicked">on_clearButton_clicked</a></td>
103 <td>Private slot to clear the text fields.</td> 129 <td>Private slot to clear the text fields.</td>
104 </tr><tr> 130 </tr>
131 <tr>
105 <td><a href="#TranslatorWidget.on_origEdit_textChanged">on_origEdit_textChanged</a></td> 132 <td><a href="#TranslatorWidget.on_origEdit_textChanged">on_origEdit_textChanged</a></td>
106 <td>Private slot to handle changes of the original text.</td> 133 <td>Private slot to handle changes of the original text.</td>
107 </tr><tr> 134 </tr>
135 <tr>
108 <td><a href="#TranslatorWidget.on_origLanguageComboBox_currentIndexChanged">on_origLanguageComboBox_currentIndexChanged</a></td> 136 <td><a href="#TranslatorWidget.on_origLanguageComboBox_currentIndexChanged">on_origLanguageComboBox_currentIndexChanged</a></td>
109 <td>Private slot to handle the selection of the original language.</td> 137 <td>Private slot to handle the selection of the original language.</td>
110 </tr><tr> 138 </tr>
139 <tr>
111 <td><a href="#TranslatorWidget.on_preferencesButton_clicked">on_preferencesButton_clicked</a></td> 140 <td><a href="#TranslatorWidget.on_preferencesButton_clicked">on_preferencesButton_clicked</a></td>
112 <td>Private slot to open the Translator configuration page.</td> 141 <td>Private slot to open the Translator configuration page.</td>
113 </tr><tr> 142 </tr>
143 <tr>
114 <td><a href="#TranslatorWidget.on_pronounceOrigButton_clicked">on_pronounceOrigButton_clicked</a></td> 144 <td><a href="#TranslatorWidget.on_pronounceOrigButton_clicked">on_pronounceOrigButton_clicked</a></td>
115 <td>Private slot to pronounce the original text.</td> 145 <td>Private slot to pronounce the original text.</td>
116 </tr><tr> 146 </tr>
147 <tr>
117 <td><a href="#TranslatorWidget.on_pronounceTransButton_clicked">on_pronounceTransButton_clicked</a></td> 148 <td><a href="#TranslatorWidget.on_pronounceTransButton_clicked">on_pronounceTransButton_clicked</a></td>
118 <td>Private slot to pronounce the translated text.</td> 149 <td>Private slot to pronounce the translated text.</td>
119 </tr><tr> 150 </tr>
151 <tr>
120 <td><a href="#TranslatorWidget.on_swapButton_clicked">on_swapButton_clicked</a></td> 152 <td><a href="#TranslatorWidget.on_swapButton_clicked">on_swapButton_clicked</a></td>
121 <td>Private slot to swap the languages.</td> 153 <td>Private slot to swap the languages.</td>
122 </tr><tr> 154 </tr>
155 <tr>
123 <td><a href="#TranslatorWidget.on_transEdit_textChanged">on_transEdit_textChanged</a></td> 156 <td><a href="#TranslatorWidget.on_transEdit_textChanged">on_transEdit_textChanged</a></td>
124 <td>Private slot to handle changes of the translation text.</td> 157 <td>Private slot to handle changes of the translation text.</td>
125 </tr><tr> 158 </tr>
159 <tr>
126 <td><a href="#TranslatorWidget.on_transLanguageComboBox_currentIndexChanged">on_transLanguageComboBox_currentIndexChanged</a></td> 160 <td><a href="#TranslatorWidget.on_transLanguageComboBox_currentIndexChanged">on_transLanguageComboBox_currentIndexChanged</a></td>
127 <td>Private slot to handle the selection of the translation language.</td> 161 <td>Private slot to handle the selection of the translation language.</td>
128 </tr><tr> 162 </tr>
163 <tr>
129 <td><a href="#TranslatorWidget.on_translateButton_clicked">on_translateButton_clicked</a></td> 164 <td><a href="#TranslatorWidget.on_translateButton_clicked">on_translateButton_clicked</a></td>
130 <td>Private slot to translate the entered text.</td> 165 <td>Private slot to translate the entered text.</td>
131 </tr> 166 </tr>
132 </table> 167 </table>
133 <h3>Static Methods</h3> 168 <h3>Static Methods</h3>
169
134 <table> 170 <table>
135 <tr><td>None</td></tr> 171 <tr><td>None</td></tr>
136 </table> 172 </table>
173
137 <a NAME="TranslatorWidget.__init__" ID="TranslatorWidget.__init__"></a> 174 <a NAME="TranslatorWidget.__init__" ID="TranslatorWidget.__init__"></a>
138 <h4>TranslatorWidget (Constructor)</h4> 175 <h4>TranslatorWidget (Constructor)</h4>
139 <b>TranslatorWidget</b>(<i>plugin, translator, parent=None</i>) 176 <b>TranslatorWidget</b>(<i>plugin, translator, parent=None</i>)
177
140 <p> 178 <p>
141 Constructor 179 Constructor
142 </p><dl> 180 </p>
181 <dl>
182
143 <dt><i>plugin</i></dt> 183 <dt><i>plugin</i></dt>
144 <dd> 184 <dd>
145 reference to the plugin object (TranslatorPlugin) 185 reference to the plugin object (TranslatorPlugin)
146 </dd><dt><i>translator</i></dt> 186 </dd>
187 <dt><i>translator</i></dt>
147 <dd> 188 <dd>
148 reference to the translator object (Translator) 189 reference to the translator object (Translator)
149 </dd><dt><i>parent</i></dt> 190 </dd>
191 <dt><i>parent</i></dt>
150 <dd> 192 <dd>
151 reference to the parent widget (QWidget) 193 reference to the parent widget (QWidget)
152 </dd> 194 </dd>
153 </dl><a NAME="TranslatorWidget.__availableTranslationsLoaded" ID="TranslatorWidget.__availableTranslationsLoaded"></a> 195 </dl>
196 <a NAME="TranslatorWidget.__availableTranslationsLoaded" ID="TranslatorWidget.__availableTranslationsLoaded"></a>
154 <h4>TranslatorWidget.__availableTranslationsLoaded</h4> 197 <h4>TranslatorWidget.__availableTranslationsLoaded</h4>
155 <b>__availableTranslationsLoaded</b>(<i></i>) 198 <b>__availableTranslationsLoaded</b>(<i></i>)
199
156 <p> 200 <p>
157 Private slot to handle the availability of translations. 201 Private slot to handle the availability of translations.
158 </p><a NAME="TranslatorWidget.__engineComboBoxCurrentIndexChanged" ID="TranslatorWidget.__engineComboBoxCurrentIndexChanged"></a> 202 </p>
203 <a NAME="TranslatorWidget.__engineComboBoxCurrentIndexChanged" ID="TranslatorWidget.__engineComboBoxCurrentIndexChanged"></a>
159 <h4>TranslatorWidget.__engineComboBoxCurrentIndexChanged</h4> 204 <h4>TranslatorWidget.__engineComboBoxCurrentIndexChanged</h4>
160 <b>__engineComboBoxCurrentIndexChanged</b>(<i>index</i>) 205 <b>__engineComboBoxCurrentIndexChanged</b>(<i>index</i>)
206
161 <p> 207 <p>
162 Private slot to handle the selection of a translation service. 208 Private slot to handle the selection of a translation service.
163 </p><dl> 209 </p>
210 <dl>
211
164 <dt><i>index</i> (int)</dt> 212 <dt><i>index</i> (int)</dt>
165 <dd> 213 <dd>
166 current index 214 current index
167 </dd> 215 </dd>
168 </dl><a NAME="TranslatorWidget.__ensureTranslationEngineReady" ID="TranslatorWidget.__ensureTranslationEngineReady"></a> 216 </dl>
217 <a NAME="TranslatorWidget.__ensureTranslationEngineReady" ID="TranslatorWidget.__ensureTranslationEngineReady"></a>
169 <h4>TranslatorWidget.__ensureTranslationEngineReady</h4> 218 <h4>TranslatorWidget.__ensureTranslationEngineReady</h4>
170 <b>__ensureTranslationEngineReady</b>(<i></i>) 219 <b>__ensureTranslationEngineReady</b>(<i></i>)
220
171 <p> 221 <p>
172 Private slot to ensure, that the currently selected translation engine 222 Private slot to ensure, that the currently selected translation engine
173 is ready. 223 is ready.
174 </p><a NAME="TranslatorWidget.__mediaPlayerStateChanged" ID="TranslatorWidget.__mediaPlayerStateChanged"></a> 224 </p>
225 <a NAME="TranslatorWidget.__mediaPlayerStateChanged" ID="TranslatorWidget.__mediaPlayerStateChanged"></a>
175 <h4>TranslatorWidget.__mediaPlayerStateChanged</h4> 226 <h4>TranslatorWidget.__mediaPlayerStateChanged</h4>
176 <b>__mediaPlayerStateChanged</b>(<i>state</i>) 227 <b>__mediaPlayerStateChanged</b>(<i>state</i>)
228
177 <p> 229 <p>
178 Private slot handling changes of the media player state. 230 Private slot handling changes of the media player state.
179 </p><dl> 231 </p>
232 <dl>
233
180 <dt><i>state</i></dt> 234 <dt><i>state</i></dt>
181 <dd> 235 <dd>
182 media player state (QAudio.State) 236 media player state (QAudio.State)
183 </dd> 237 </dd>
184 </dl><a NAME="TranslatorWidget.__originalLanguage" ID="TranslatorWidget.__originalLanguage"></a> 238 </dl>
239 <a NAME="TranslatorWidget.__originalLanguage" ID="TranslatorWidget.__originalLanguage"></a>
185 <h4>TranslatorWidget.__originalLanguage</h4> 240 <h4>TranslatorWidget.__originalLanguage</h4>
186 <b>__originalLanguage</b>(<i></i>) 241 <b>__originalLanguage</b>(<i></i>)
242
187 <p> 243 <p>
188 Private method to return the code of the selected original language. 244 Private method to return the code of the selected original language.
189 </p><dl> 245 </p>
246 <dl>
190 <dt>Returns:</dt> 247 <dt>Returns:</dt>
191 <dd> 248 <dd>
192 code of the original language (string) 249 code of the original language (string)
193 </dd> 250 </dd>
194 </dl><a NAME="TranslatorWidget.__pronounce" ID="TranslatorWidget.__pronounce"></a> 251 </dl>
252 <a NAME="TranslatorWidget.__pronounce" ID="TranslatorWidget.__pronounce"></a>
195 <h4>TranslatorWidget.__pronounce</h4> 253 <h4>TranslatorWidget.__pronounce</h4>
196 <b>__pronounce</b>(<i>text, language</i>) 254 <b>__pronounce</b>(<i>text, language</i>)
255
197 <p> 256 <p>
198 Private method to pronounce the given text. 257 Private method to pronounce the given text.
199 </p><dl> 258 </p>
259 <dl>
260
200 <dt><i>text</i></dt> 261 <dt><i>text</i></dt>
201 <dd> 262 <dd>
202 text to be pronounced (string) 263 text to be pronounced (string)
203 </dd><dt><i>language</i></dt> 264 </dd>
265 <dt><i>language</i></dt>
204 <dd> 266 <dd>
205 language code of the text (string) 267 language code of the text (string)
206 </dd> 268 </dd>
207 </dl><a NAME="TranslatorWidget.__translate" ID="TranslatorWidget.__translate"></a> 269 </dl>
270 <a NAME="TranslatorWidget.__translate" ID="TranslatorWidget.__translate"></a>
208 <h4>TranslatorWidget.__translate</h4> 271 <h4>TranslatorWidget.__translate</h4>
209 <b>__translate</b>(<i>text, originalLanguage, translationLanguage</i>) 272 <b>__translate</b>(<i>text, originalLanguage, translationLanguage</i>)
273
210 <p> 274 <p>
211 Private method to translate the given text. 275 Private method to translate the given text.
212 </p><dl> 276 </p>
277 <dl>
278
213 <dt><i>text</i></dt> 279 <dt><i>text</i></dt>
214 <dd> 280 <dd>
215 text to be translated (string) 281 text to be translated (string)
216 </dd><dt><i>originalLanguage</i></dt> 282 </dd>
283 <dt><i>originalLanguage</i></dt>
217 <dd> 284 <dd>
218 language code of the original (string) 285 language code of the original (string)
219 </dd><dt><i>translationLanguage</i></dt> 286 </dd>
287 <dt><i>translationLanguage</i></dt>
220 <dd> 288 <dd>
221 language code of the translation (string) 289 language code of the translation (string)
222 </dd> 290 </dd>
223 </dl><dl> 291 </dl>
292 <dl>
224 <dt>Returns:</dt> 293 <dt>Returns:</dt>
225 <dd> 294 <dd>
226 tuple of translated text (string) and flag indicating 295 tuple of translated text (string) and flag indicating
227 success (boolean) 296 success (boolean)
228 </dd> 297 </dd>
229 </dl><a NAME="TranslatorWidget.__translationLanguage" ID="TranslatorWidget.__translationLanguage"></a> 298 </dl>
299 <a NAME="TranslatorWidget.__translationLanguage" ID="TranslatorWidget.__translationLanguage"></a>
230 <h4>TranslatorWidget.__translationLanguage</h4> 300 <h4>TranslatorWidget.__translationLanguage</h4>
231 <b>__translationLanguage</b>(<i></i>) 301 <b>__translationLanguage</b>(<i></i>)
302
232 <p> 303 <p>
233 Private method to return the code of the selected translation language. 304 Private method to return the code of the selected translation language.
234 </p><dl> 305 </p>
306 <dl>
235 <dt>Returns:</dt> 307 <dt>Returns:</dt>
236 <dd> 308 <dd>
237 code of the translation language (string) 309 code of the translation language (string)
238 </dd> 310 </dd>
239 </dl><a NAME="TranslatorWidget.__updateClearButton" ID="TranslatorWidget.__updateClearButton"></a> 311 </dl>
312 <a NAME="TranslatorWidget.__updateClearButton" ID="TranslatorWidget.__updateClearButton"></a>
240 <h4>TranslatorWidget.__updateClearButton</h4> 313 <h4>TranslatorWidget.__updateClearButton</h4>
241 <b>__updateClearButton</b>(<i></i>) 314 <b>__updateClearButton</b>(<i></i>)
315
242 <p> 316 <p>
243 Private slot to set the state of the clear button. 317 Private slot to set the state of the clear button.
244 </p><a NAME="TranslatorWidget.__updateEngines" ID="TranslatorWidget.__updateEngines"></a> 318 </p>
319 <a NAME="TranslatorWidget.__updateEngines" ID="TranslatorWidget.__updateEngines"></a>
245 <h4>TranslatorWidget.__updateEngines</h4> 320 <h4>TranslatorWidget.__updateEngines</h4>
246 <b>__updateEngines</b>(<i></i>) 321 <b>__updateEngines</b>(<i></i>)
322
247 <p> 323 <p>
248 Private slot to update the engines combo box. 324 Private slot to update the engines combo box.
249 </p><a NAME="TranslatorWidget.__updateLanguages" ID="TranslatorWidget.__updateLanguages"></a> 325 </p>
326 <a NAME="TranslatorWidget.__updateLanguages" ID="TranslatorWidget.__updateLanguages"></a>
250 <h4>TranslatorWidget.__updateLanguages</h4> 327 <h4>TranslatorWidget.__updateLanguages</h4>
251 <b>__updateLanguages</b>(<i></i>) 328 <b>__updateLanguages</b>(<i></i>)
329
252 <p> 330 <p>
253 Private slot to update the language combo boxes. 331 Private slot to update the language combo boxes.
254 </p><a NAME="TranslatorWidget.__updatePronounceButtons" ID="TranslatorWidget.__updatePronounceButtons"></a> 332 </p>
333 <a NAME="TranslatorWidget.__updatePronounceButtons" ID="TranslatorWidget.__updatePronounceButtons"></a>
255 <h4>TranslatorWidget.__updatePronounceButtons</h4> 334 <h4>TranslatorWidget.__updatePronounceButtons</h4>
256 <b>__updatePronounceButtons</b>(<i></i>) 335 <b>__updatePronounceButtons</b>(<i></i>)
336
257 <p> 337 <p>
258 Private slot to set the state of the pronounce buttons. 338 Private slot to set the state of the pronounce buttons.
259 </p><a NAME="TranslatorWidget.__updateTranslateButton" ID="TranslatorWidget.__updateTranslateButton"></a> 339 </p>
340 <a NAME="TranslatorWidget.__updateTranslateButton" ID="TranslatorWidget.__updateTranslateButton"></a>
260 <h4>TranslatorWidget.__updateTranslateButton</h4> 341 <h4>TranslatorWidget.__updateTranslateButton</h4>
261 <b>__updateTranslateButton</b>(<i></i>) 342 <b>__updateTranslateButton</b>(<i></i>)
343
262 <p> 344 <p>
263 Private slot to set the state of the translate button. 345 Private slot to set the state of the translate button.
264 </p><a NAME="TranslatorWidget.on_clearButton_clicked" ID="TranslatorWidget.on_clearButton_clicked"></a> 346 </p>
347 <a NAME="TranslatorWidget.on_clearButton_clicked" ID="TranslatorWidget.on_clearButton_clicked"></a>
265 <h4>TranslatorWidget.on_clearButton_clicked</h4> 348 <h4>TranslatorWidget.on_clearButton_clicked</h4>
266 <b>on_clearButton_clicked</b>(<i></i>) 349 <b>on_clearButton_clicked</b>(<i></i>)
350
267 <p> 351 <p>
268 Private slot to clear the text fields. 352 Private slot to clear the text fields.
269 </p><a NAME="TranslatorWidget.on_origEdit_textChanged" ID="TranslatorWidget.on_origEdit_textChanged"></a> 353 </p>
354 <a NAME="TranslatorWidget.on_origEdit_textChanged" ID="TranslatorWidget.on_origEdit_textChanged"></a>
270 <h4>TranslatorWidget.on_origEdit_textChanged</h4> 355 <h4>TranslatorWidget.on_origEdit_textChanged</h4>
271 <b>on_origEdit_textChanged</b>(<i></i>) 356 <b>on_origEdit_textChanged</b>(<i></i>)
357
272 <p> 358 <p>
273 Private slot to handle changes of the original text. 359 Private slot to handle changes of the original text.
274 </p><a NAME="TranslatorWidget.on_origLanguageComboBox_currentIndexChanged" ID="TranslatorWidget.on_origLanguageComboBox_currentIndexChanged"></a> 360 </p>
361 <a NAME="TranslatorWidget.on_origLanguageComboBox_currentIndexChanged" ID="TranslatorWidget.on_origLanguageComboBox_currentIndexChanged"></a>
275 <h4>TranslatorWidget.on_origLanguageComboBox_currentIndexChanged</h4> 362 <h4>TranslatorWidget.on_origLanguageComboBox_currentIndexChanged</h4>
276 <b>on_origLanguageComboBox_currentIndexChanged</b>(<i>index</i>) 363 <b>on_origLanguageComboBox_currentIndexChanged</b>(<i>index</i>)
364
277 <p> 365 <p>
278 Private slot to handle the selection of the original language. 366 Private slot to handle the selection of the original language.
279 </p><dl> 367 </p>
368 <dl>
369
280 <dt><i>index</i></dt> 370 <dt><i>index</i></dt>
281 <dd> 371 <dd>
282 current index (integer) 372 current index (integer)
283 </dd> 373 </dd>
284 </dl><a NAME="TranslatorWidget.on_preferencesButton_clicked" ID="TranslatorWidget.on_preferencesButton_clicked"></a> 374 </dl>
375 <a NAME="TranslatorWidget.on_preferencesButton_clicked" ID="TranslatorWidget.on_preferencesButton_clicked"></a>
285 <h4>TranslatorWidget.on_preferencesButton_clicked</h4> 376 <h4>TranslatorWidget.on_preferencesButton_clicked</h4>
286 <b>on_preferencesButton_clicked</b>(<i></i>) 377 <b>on_preferencesButton_clicked</b>(<i></i>)
378
287 <p> 379 <p>
288 Private slot to open the Translator configuration page. 380 Private slot to open the Translator configuration page.
289 </p><a NAME="TranslatorWidget.on_pronounceOrigButton_clicked" ID="TranslatorWidget.on_pronounceOrigButton_clicked"></a> 381 </p>
382 <a NAME="TranslatorWidget.on_pronounceOrigButton_clicked" ID="TranslatorWidget.on_pronounceOrigButton_clicked"></a>
290 <h4>TranslatorWidget.on_pronounceOrigButton_clicked</h4> 383 <h4>TranslatorWidget.on_pronounceOrigButton_clicked</h4>
291 <b>on_pronounceOrigButton_clicked</b>(<i></i>) 384 <b>on_pronounceOrigButton_clicked</b>(<i></i>)
385
292 <p> 386 <p>
293 Private slot to pronounce the original text. 387 Private slot to pronounce the original text.
294 </p><a NAME="TranslatorWidget.on_pronounceTransButton_clicked" ID="TranslatorWidget.on_pronounceTransButton_clicked"></a> 388 </p>
389 <a NAME="TranslatorWidget.on_pronounceTransButton_clicked" ID="TranslatorWidget.on_pronounceTransButton_clicked"></a>
295 <h4>TranslatorWidget.on_pronounceTransButton_clicked</h4> 390 <h4>TranslatorWidget.on_pronounceTransButton_clicked</h4>
296 <b>on_pronounceTransButton_clicked</b>(<i></i>) 391 <b>on_pronounceTransButton_clicked</b>(<i></i>)
392
297 <p> 393 <p>
298 Private slot to pronounce the translated text. 394 Private slot to pronounce the translated text.
299 </p><a NAME="TranslatorWidget.on_swapButton_clicked" ID="TranslatorWidget.on_swapButton_clicked"></a> 395 </p>
396 <a NAME="TranslatorWidget.on_swapButton_clicked" ID="TranslatorWidget.on_swapButton_clicked"></a>
300 <h4>TranslatorWidget.on_swapButton_clicked</h4> 397 <h4>TranslatorWidget.on_swapButton_clicked</h4>
301 <b>on_swapButton_clicked</b>(<i></i>) 398 <b>on_swapButton_clicked</b>(<i></i>)
399
302 <p> 400 <p>
303 Private slot to swap the languages. 401 Private slot to swap the languages.
304 </p><a NAME="TranslatorWidget.on_transEdit_textChanged" ID="TranslatorWidget.on_transEdit_textChanged"></a> 402 </p>
403 <a NAME="TranslatorWidget.on_transEdit_textChanged" ID="TranslatorWidget.on_transEdit_textChanged"></a>
305 <h4>TranslatorWidget.on_transEdit_textChanged</h4> 404 <h4>TranslatorWidget.on_transEdit_textChanged</h4>
306 <b>on_transEdit_textChanged</b>(<i></i>) 405 <b>on_transEdit_textChanged</b>(<i></i>)
406
307 <p> 407 <p>
308 Private slot to handle changes of the translation text. 408 Private slot to handle changes of the translation text.
309 </p><a NAME="TranslatorWidget.on_transLanguageComboBox_currentIndexChanged" ID="TranslatorWidget.on_transLanguageComboBox_currentIndexChanged"></a> 409 </p>
410 <a NAME="TranslatorWidget.on_transLanguageComboBox_currentIndexChanged" ID="TranslatorWidget.on_transLanguageComboBox_currentIndexChanged"></a>
310 <h4>TranslatorWidget.on_transLanguageComboBox_currentIndexChanged</h4> 411 <h4>TranslatorWidget.on_transLanguageComboBox_currentIndexChanged</h4>
311 <b>on_transLanguageComboBox_currentIndexChanged</b>(<i>index</i>) 412 <b>on_transLanguageComboBox_currentIndexChanged</b>(<i>index</i>)
413
312 <p> 414 <p>
313 Private slot to handle the selection of the translation language. 415 Private slot to handle the selection of the translation language.
314 </p><dl> 416 </p>
417 <dl>
418
315 <dt><i>index</i></dt> 419 <dt><i>index</i></dt>
316 <dd> 420 <dd>
317 current index (integer) 421 current index (integer)
318 </dd> 422 </dd>
319 </dl><a NAME="TranslatorWidget.on_translateButton_clicked" ID="TranslatorWidget.on_translateButton_clicked"></a> 423 </dl>
424 <a NAME="TranslatorWidget.on_translateButton_clicked" ID="TranslatorWidget.on_translateButton_clicked"></a>
320 <h4>TranslatorWidget.on_translateButton_clicked</h4> 425 <h4>TranslatorWidget.on_translateButton_clicked</h4>
321 <b>on_translateButton_clicked</b>(<i></i>) 426 <b>on_translateButton_clicked</b>(<i></i>)
427
322 <p> 428 <p>
323 Private slot to translate the entered text. 429 Private slot to translate the entered text.
324 </p> 430 </p>
325 <div align="right"><a href="#top">Up</a></div> 431 <div align="right"><a href="#top">Up</a></div>
326 <hr /> 432 <hr />

eric ide

mercurial