![]() |
OpendTect
7.0
|
Public Member Functions | |
| TextTranslateMgr () | |
| ~TextTranslateMgr () | |
| bool | addLanguage (TextTranslatorLanguage *) |
| Returns false if it was not added. More... | |
| int | changeCount () const |
| int | currentLanguage () const |
| uiString | getLanguageUserName (int) const |
| BufferString | getLocaleName (int) const |
| const QLocale * | getQLocale () const |
| const QTranslator * | getQTranslator (const char *appl) const |
| int | nrSupportedLanguages () const |
| bool | setLanguage (int, uiString &errmsg) |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| virtual bool | isCapsule () const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| void | stopReceivingNotifications () const |
| virtual CallBacker * | trueCaller () |
Static Public Member Functions | |
| static char | cApplicationEnd () |
| static void | GetLocalizationDir (FilePath &) |
| static bool | loadTranslations () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Public Attributes | |
| Notifier< TextTranslateMgr > | languageChange |
Protected Member Functions | |
| void | loadUSEnglish () |
Protected Attributes | |
| int | currentlanguageidx_ |
| int | dirtycount_ |
| ObjectSet< TextTranslatorLanguage > | languages_ |
Friends | |
| class | TextTranslatorLanguage |
Manager that keeps track of translations. By default, it only handles English plural, but it can be extended with more languages.
<>
| TextTranslateMgr::TextTranslateMgr | ( | ) |
| TextTranslateMgr::~TextTranslateMgr | ( | ) |
| bool TextTranslateMgr::addLanguage | ( | TextTranslatorLanguage * | ) |
Returns false if it was not added.
|
inlinestatic |
|
inline |
| int TextTranslateMgr::currentLanguage | ( | ) | const |
| uiString TextTranslateMgr::getLanguageUserName | ( | int | ) | const |
| BufferString TextTranslateMgr::getLocaleName | ( | int | ) | const |
|
static |
| const QLocale* TextTranslateMgr::getQLocale | ( | ) | const |
| const QTranslator* TextTranslateMgr::getQTranslator | ( | const char * | appl | ) | const |
|
static |
Can be called from executables to load The dGBCommon plugin, which loads all languages.
|
protected |
| int TextTranslateMgr::nrSupportedLanguages | ( | ) | const |
| bool TextTranslateMgr::setLanguage | ( | int | , |
| uiString & | errmsg | ||
| ) |
|
friend |
|
protected |
|
protected |
| Notifier<TextTranslateMgr> TextTranslateMgr::languageChange |
Triggers both on new languages and changed languages.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024