![]() |
QtLingo 1
QtLingo is an Application to make Qt Computer Translations easier
|
#include <qonlinetranslator.h>
Signals | |
void | finished () |
finished More... | |
Public Member Functions | |
QOnlineTranslator (QObject *parent=nullptr) | |
QOnlineTranslator. More... | |
void | translate (const QString &text, Engine engine=Google, Language translationLang=Auto, Language sourceLang=Auto, Language uiLang=Auto) |
translate More... | |
void | detectLanguage (const QString &text, Engine engine=Google) |
detect Language More... | |
void | abort () |
abort More... | |
bool | isRunning () const |
is Running More... | |
QJsonDocument | toJson () const |
to Json More... | |
QString | source () const |
source More... | |
QString | sourceTranslit () const |
source Translit More... | |
QString | sourceTranscription () const |
source Transcription More... | |
QString | sourceLanguageName () const |
source Language Name More... | |
Language | sourceLanguage () const |
source Language More... | |
QString | translation () const |
translation More... | |
QString | translationTranslit () const |
translation Translit More... | |
QString | translationLanguageName () const |
translation Language Name More... | |
Language | translationLanguage () const |
translation Language More... | |
QMap< QString, QVector< QOption > > | translationOptions () const |
translation Options More... | |
QMap< QString, QVector< QExample > > | examples () const |
examples More... | |
TranslationError | error () const |
error More... | |
QString | errorString () const |
error String More... | |
bool | isSourceTranslitEnabled () const |
is Source Translit Enabled More... | |
void | setSourceTranslitEnabled (bool enable) |
set Source Translit Enabled More... | |
bool | isTranslationTranslitEnabled () const |
is Translation Translit Enabled More... | |
void | setTranslationTranslitEnabled (bool enable) |
set Translation Translit Enabled More... | |
bool | isSourceTranscriptionEnabled () const |
is Source Transcription Enabled More... | |
void | setSourceTranscriptionEnabled (bool enable) |
set Source Transcription Enabled More... | |
bool | isTranslationOptionsEnabled () const |
is Translation Options Enabled More... | |
void | setTranslationOptionsEnabled (bool enable) |
set Translation Options Enabled More... | |
bool | isExamplesEnabled () const |
is Examples Enabled More... | |
void | setExamplesEnabled (bool enable) |
set Examples Enabled More... | |
QString | languageName (const QString &lang) |
language Name More... | |
Static Public Member Functions | |
static QString | languageName (Language lang) |
language Name More... | |
static QString | languageCode (Language lang) |
language Code More... | |
static Language | language (const QLocale &locale) |
language More... | |
static Language | language (const QString &langCode) |
language More... | |
static bool | isSupportTranslation (Engine engine, Language lang) |
is Support Translation More... | |
Friends | |
class | QOnlineTts |
QOnlineTts. More... | |
Definition at line 52 of file qonlinetranslator.h.
Enumerator | |
---|---|
| |
Yandex |
Yandex |
Bing |
Bing |
Definition at line 193 of file qonlinetranslator.h.
Definition at line 61 of file qonlinetranslator.h.
Definition at line 201 of file qonlinetranslator.h.
|
explicit |
QOnlineTranslator Constructor. QOnlineTranslator.
Definition at line 191 of file qonlinetranslator.cpp.
void QOnlineTranslator::abort | ( | ) |
detect Language
detect Language. detectLanguage
Definition at line 246 of file qonlinetranslator.cpp.
QOnlineTranslator::TranslationError QOnlineTranslator::error | ( | ) | const |
QString QOnlineTranslator::errorString | ( | ) | const |
QMap< QString, QVector< QExample > > QOnlineTranslator::examples | ( | ) | const |
|
signal |
finished
Definition at line 519 of file moc_qonlinetranslator.cpp.
bool QOnlineTranslator::isExamplesEnabled | ( | ) | const |
is Examples Enabled
is Examples Enabled. isExamplesEnabled
Definition at line 495 of file qonlinetranslator.cpp.
bool QOnlineTranslator::isRunning | ( | ) | const |
bool QOnlineTranslator::isSourceTranscriptionEnabled | ( | ) | const |
is Source Transcription Enabled
is Source Transcription Enabled. isSourceTranscriptionEnabled
Definition at line 463 of file qonlinetranslator.cpp.
bool QOnlineTranslator::isSourceTranslitEnabled | ( | ) | const |
is Source Translit Enabled
is Source Translit Enabled. isSourceTranslitEnabled
Definition at line 431 of file qonlinetranslator.cpp.
is Support Translation
is Support Translation. isSupportTranslation
Definition at line 778 of file qonlinetranslator.cpp.
bool QOnlineTranslator::isTranslationOptionsEnabled | ( | ) | const |
is Translation Options Enabled
is Translation Options Enabled. isTranslationOptionsEnabled
Definition at line 479 of file qonlinetranslator.cpp.
bool QOnlineTranslator::isTranslationTranslitEnabled | ( | ) | const |
is Translation Translit Enabled
is Translation Translit Enabled. isTranslationTranslitEnabled
Definition at line 447 of file qonlinetranslator.cpp.
|
static |
|
static |
language
Returns general language code.
langCode | QString "en" returns English language |
Definition at line 770 of file qonlinetranslator.cpp.
|
static |
QString QOnlineTranslator::languageName | ( | const QString & | lang | ) |
language Name
|
static |
void QOnlineTranslator::setExamplesEnabled | ( | bool | enable | ) |
set Examples Enabled
set Examples Enabled. setExamplesEnabled
Definition at line 503 of file qonlinetranslator.cpp.
void QOnlineTranslator::setSourceTranscriptionEnabled | ( | bool | enable | ) |
set Source Transcription Enabled
set Source Transcription Enabled. setSourceTranscriptionEnabled
Definition at line 471 of file qonlinetranslator.cpp.
void QOnlineTranslator::setSourceTranslitEnabled | ( | bool | enable | ) |
set Source Translit Enabled
set Source Translit Enabled. setSourceTranslitEnabled
Definition at line 439 of file qonlinetranslator.cpp.
void QOnlineTranslator::setTranslationOptionsEnabled | ( | bool | enable | ) |
set Translation Options Enabled
set Translation Options Enabled. setTranslationOptionsEnabled
Definition at line 487 of file qonlinetranslator.cpp.
void QOnlineTranslator::setTranslationTranslitEnabled | ( | bool | enable | ) |
set Translation Translit Enabled
set Translation Translit Enabled. setTranslationTranslitEnabled
Definition at line 455 of file qonlinetranslator.cpp.
QString QOnlineTranslator::source | ( | ) | const |
QOnlineTranslator::Language QOnlineTranslator::sourceLanguage | ( | ) | const |
source Language
source Language. sourceLanguage
Definition at line 359 of file qonlinetranslator.cpp.
QString QOnlineTranslator::sourceLanguageName | ( | ) | const |
source Language Name
source Language Name. sourceLanguageName
Definition at line 351 of file qonlinetranslator.cpp.
QString QOnlineTranslator::sourceTranscription | ( | ) | const |
source Transcription
source Transcription. sourceTranscription
Definition at line 343 of file qonlinetranslator.cpp.
QString QOnlineTranslator::sourceTranslit | ( | ) | const |
source Translit
source Translit. sourceTranslit
Definition at line 335 of file qonlinetranslator.cpp.
QJsonDocument QOnlineTranslator::toJson | ( | ) | const |
to Json
toJson. toJson
Definition at line 286 of file qonlinetranslator.cpp.
void QOnlineTranslator::translate | ( | const QString & | text, |
Engine | engine = Google , |
||
Language | translationLang = Auto , |
||
Language | sourceLang = Auto , |
||
Language | uiLang = Auto |
||
) |
translate
translate. translate
Definition at line 200 of file qonlinetranslator.cpp.
QString QOnlineTranslator::translation | ( | ) | const |
QOnlineTranslator::Language QOnlineTranslator::translationLanguage | ( | ) | const |
translation Language
translation Language.
translationLanguage
Definition at line 391 of file qonlinetranslator.cpp.
QString QOnlineTranslator::translationLanguageName | ( | ) | const |
translation Language Name
translation Language Name. translationLanguageName
Definition at line 383 of file qonlinetranslator.cpp.
QMap< QString, QVector< QOption > > QOnlineTranslator::translationOptions | ( | ) | const |
translation Options
translation Options. translationOptions
Definition at line 399 of file qonlinetranslator.cpp.
QString QOnlineTranslator::translationTranslit | ( | ) | const |
translation Translit
translation Translit. translationTranslit
Definition at line 375 of file qonlinetranslator.cpp.
|
friend |
Definition at line 57 of file qonlinetranslator.h.