HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/translatableapp.h Source File

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

translatableapp.h
1 #ifndef TRANSLATABLEAPP_H
2 #define TRANSLATABLEAPP_H
3 #include <QApplication>
4
8 class TranslatableApp : public QApplication
9 {
10 public:
11
17 TranslatableApp(int & argc ,char** argv);
18
23 void createTranslators(QStringList languages);
24
29 void swithLanguage(QString languaje);
30
31 private:
32
36 QMap<QString, QTranslator*> translators;
37
41 QTranslator *currentLanguaje;
42 };
43
44 #endif // TRANSLATABLEAPP_H
TranslatableApp::createTranslators
void createTranslators(QStringList languages)
createTranslators Loads the translations of the app-
Definition: translatableapp.cpp:11
TranslatableApp::swithLanguage
void swithLanguage(QString languaje)
swithLanguage Changes the current app language.
Definition: translatableapp.cpp:20
TranslatableApp::translators
QMap< QString, QTranslator * > translators
translators Map with all of app languages.
Definition: translatableapp.h:36
TranslatableApp::TranslatableApp
TranslatableApp(int &argc, char **argv)
TranslatableApp constructor.
Definition: translatableapp.cpp:6
TranslatableApp::currentLanguaje
QTranslator * currentLanguaje
currentLanguaje Language of the app.
Definition: translatableapp.h:41
TranslatableApp
The TranslatableApp class.
Definition: translatableapp.h:8