1 #ifndef texttranslator_h 2 #define texttranslator_h 40 int nrSupportedLanguages()
const;
41 uiString getLanguageUserName(
int)
const;
43 bool setLanguage(
int,
uiString& errmsg);
44 int currentLanguage()
const;
53 const mQtclass(QTranslator)* getQTranslator(
const char* appl)
const;
54 const mQtclass(QLocale)* getQLocale()
const;
56 bool addLanguage(TextTranslatorLanguage*);
59 static bool loadTranslations();
65 friend class TextTranslatorLanguage;
74 static void GetLocalizationDir(FilePath&);
87 const char*vlocalename);
93 bool addFile(
const char* filename);
#define mRefCountImpl(ClassName)
Macro to setup a class with destructor for reference counting.
Definition: refcount.h:163
#define mExpClass(module)
Definition: commondefs.h:160
const ::QTranslator * getTranslator(const char *appl) const
int currentlanguageidx_
Definition: texttranslator.h:71
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
BufferStringSet applications_
Definition: texttranslator.h:109
#define mQtclass(cls)
Definition: commondefs.h:229
ObjectSet< QTranslator > translators_
Definition: texttranslator.h:108
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferString getLocaleName() const
#define mGlobal(module)
Definition: commondefs.h:163
::QLocale * locale_
Definition: texttranslator.h:104
const ::QString & getLanguageName() const
static char cApplicationEnd()
Definition: texttranslator.h:75
Definition: uistring.h:89
TextTranslateMgr & TrMgr()
Set of BufferString objects.
Definition: bufstringset.h:28
::QString * languagename_
Definition: texttranslator.h:103
ObjectSet< TextTranslatorLanguage > languages_
Definition: texttranslator.h:70
BufferStringSet filenames_
Definition: texttranslator.h:106
#define mFDQtclass(cls)
Definition: commondefs.h:228
const ::QLocale & getLanguageLocale() const
File pathname tools.
Definition: filepath.h:34
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool loaded_
Definition: texttranslator.h:101
OpendTect.
Definition: commontypes.h:29
int changeCount() const
Definition: texttranslator.h:50
Definition: texttranslator.h:81
int dirtycount_
Definition: texttranslator.h:69
bool addFile(const char *filename)
Notifier< TextTranslateMgr > languageChange
Definition: texttranslator.h:46
Definition: texttranslator.h:34
TextTranslatorLanguage(const char *vlocalename)
BufferString localename_
Definition: texttranslator.h:102