OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TextTranslatorLanguage Class Reference
Inheritance diagram for TextTranslatorLanguage:
[legend]

Public Member Functions

 TextTranslatorLanguage (const char *vlocalename)
 
bool addFile (const char *filename)
 
const QLocale & getLanguageLocale () const
 
const QString & getLanguageName () const
 
BufferString getLocaleName () const
 
const QTranslator * getTranslator (const char *appl) const
 
bool load ()
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Protected Member Functions

virtual ~TextTranslatorLanguage ()
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

BufferStringSet applications_
 
BufferStringSet filenames_
 
QString * languagename_
 
bool loaded_
 
QLocale * locale_
 
BufferString localename_
 
ObjectSet< QTranslator > translators_
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Detailed Description

Holds the translation for one language. Each language has its own locale code, (such as en-us)

<>

Constructor & Destructor Documentation

◆ TextTranslatorLanguage()

TextTranslatorLanguage::TextTranslatorLanguage ( const char *  vlocalename)

◆ ~TextTranslatorLanguage()

virtual TextTranslatorLanguage::~TextTranslatorLanguage ( )
protectedvirtual

Member Function Documentation

◆ addFile()

bool TextTranslatorLanguage::addFile ( const char *  filename)

◆ getLanguageLocale()

const QLocale& TextTranslatorLanguage::getLanguageLocale ( ) const

◆ getLanguageName()

const QString& TextTranslatorLanguage::getLanguageName ( ) const

◆ getLocaleName()

BufferString TextTranslatorLanguage::getLocaleName ( ) const

◆ getTranslator()

const QTranslator* TextTranslatorLanguage::getTranslator ( const char *  appl) const

◆ load()

bool TextTranslatorLanguage::load ( )

Member Data Documentation

◆ applications_

BufferStringSet TextTranslatorLanguage::applications_
protected

◆ filenames_

BufferStringSet TextTranslatorLanguage::filenames_
protected

◆ languagename_

QString* TextTranslatorLanguage::languagename_
protected

◆ loaded_

bool TextTranslatorLanguage::loaded_
protected

◆ locale_

QLocale* TextTranslatorLanguage::locale_
protected

◆ localename_

BufferString TextTranslatorLanguage::localename_
protected

◆ translators_

ObjectSet<QTranslator> TextTranslatorLanguage::translators_
protected

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