Module implementing the translator widget.
None |
TranslatorWidget | Class implementing the translator widget. |
None |
Class implementing the translator widget.
None |
None |
TranslatorWidget | Constructor |
__availableTranslationsLoaded | Private slot to handle the availability of translations. |
__engineComboBoxCurrentIndexChanged | Private slot to handle the selection of a translation service. |
__ensureTranslationEngineReady | Private slot to ensure, that the currently selected translation engine is ready. |
__mediaPlayerStateChanged | Private slot handling changes of the media player state. |
__originalLanguage | Private method to return the code of the selected original language. |
__pronounce | Private method to pronounce the given text. |
__translate | Private method to translate the given text. |
__translationLanguage | Private method to return the code of the selected translation language. |
__updateClearButton | Private slot to set the state of the clear button. |
__updateEngines | Private slot to update the engines combo box. |
__updateLanguages | Private slot to update the language combo boxes. |
__updatePronounceButtons | Private slot to set the state of the pronounce buttons. |
__updateTranslateButton | Private slot to set the state of the translate button. |
on_clearButton_clicked | Private slot to clear the text fields. |
on_origEdit_textChanged | Private slot to handle changes of the original text. |
on_origLanguageComboBox_currentIndexChanged | Private slot to handle the selection of the original language. |
on_preferencesButton_clicked | Private slot to open the Translator configuration page. |
on_pronounceOrigButton_clicked | Private slot to pronounce the original text. |
on_pronounceTransButton_clicked | Private slot to pronounce the translated text. |
on_swapButton_clicked | Private slot to swap the languages. |
on_transEdit_textChanged | Private slot to handle changes of the translation text. |
on_transLanguageComboBox_currentIndexChanged | Private slot to handle the selection of the translation language. |
on_translateButton_clicked | Private slot to translate the entered text. |
None |
Constructor
Private slot to handle the availability of translations.
Private slot to handle the selection of a translation service.
Private slot to ensure, that the currently selected translation engine is ready.
Private slot handling changes of the media player state.
Private method to return the code of the selected original language.
Private method to pronounce the given text.
Private method to translate the given text.
Private method to return the code of the selected translation language.
Private slot to set the state of the clear button.
Private slot to update the engines combo box.
Private slot to update the language combo boxes.
Private slot to set the state of the pronounce buttons.
Private slot to set the state of the translate button.
Private slot to clear the text fields.
Private slot to handle changes of the original text.
Private slot to handle the selection of the original language.
Private slot to open the Translator configuration page.
Private slot to pronounce the original text.
Private slot to pronounce the translated text.
Private slot to swap the languages.
Private slot to handle changes of the translation text.
Private slot to handle the selection of the translation language.
Private slot to translate the entered text.