OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
TextTranslateMgr Class Reference
Inheritance diagram for TextTranslateMgr:
[legend]

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
 

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< TextTranslateMgrlanguageChange
 

Protected Member Functions

void loadUSEnglish ()
 

Protected Attributes

int currentlanguageidx_
 
int dirtycount_
 
ObjectSet< TextTranslatorLanguagelanguages_
 

Friends

class TextTranslatorLanguage
 

Detailed Description

Manager that keeps track of translations. By default, it only handles English plural, but it can be extended with more languages.

<>

Constructor & Destructor Documentation

◆ TextTranslateMgr()

TextTranslateMgr::TextTranslateMgr ( )

◆ ~TextTranslateMgr()

TextTranslateMgr::~TextTranslateMgr ( )

Member Function Documentation

◆ addLanguage()

bool TextTranslateMgr::addLanguage ( TextTranslatorLanguage )

Returns false if it was not added.

◆ cApplicationEnd()

static char TextTranslateMgr::cApplicationEnd ( )
inlinestatic

◆ changeCount()

int TextTranslateMgr::changeCount ( ) const
inline

◆ currentLanguage()

int TextTranslateMgr::currentLanguage ( ) const

◆ getLanguageUserName()

uiString TextTranslateMgr::getLanguageUserName ( int  ) const

◆ getLocaleName()

BufferString TextTranslateMgr::getLocaleName ( int  ) const

◆ GetLocalizationDir()

static void TextTranslateMgr::GetLocalizationDir ( FilePath )
static

◆ getQLocale()

const QLocale* TextTranslateMgr::getQLocale ( ) const

◆ getQTranslator()

const QTranslator* TextTranslateMgr::getQTranslator ( const char *  appl) const

◆ loadTranslations()

static bool TextTranslateMgr::loadTranslations ( )
static

Can be called from executables to load The dGBCommon plugin, wich loads all languages.

◆ loadUSEnglish()

void TextTranslateMgr::loadUSEnglish ( )
protected

◆ nrSupportedLanguages()

int TextTranslateMgr::nrSupportedLanguages ( ) const

◆ setLanguage()

bool TextTranslateMgr::setLanguage ( int  ,
uiString errmsg 
)

Friends And Related Function Documentation

◆ TextTranslatorLanguage

friend class TextTranslatorLanguage
friend

Member Data Documentation

◆ currentlanguageidx_

int TextTranslateMgr::currentlanguageidx_
protected

◆ dirtycount_

int TextTranslateMgr::dirtycount_
protected

◆ languageChange

Notifier<TextTranslateMgr> TextTranslateMgr::languageChange

Triggers both on new languages and changed languages.

◆ languages_

ObjectSet<TextTranslatorLanguage> TextTranslateMgr::languages_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022