diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 00:33:50 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 00:33:50 +0200 |
| commit | 79415b76442ac6f8307ec0e10accec32383fabb9 (patch) | |
| tree | b393ba96a348bec7eb2ef9887a039366f500fc09 /mainwindow.h | |
| parent | b60bb2ed272972847cb533be2e86bd2d7e565918 (diff) | |
| download | GUI_SS2015-79415b76442ac6f8307ec0e10accec32383fabb9.tar.gz GUI_SS2015-79415b76442ac6f8307ec0e10accec32383fabb9.zip | |
Add translations that are changeable during runtime
Diffstat (limited to 'mainwindow.h')
| -rw-r--r-- | mainwindow.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mainwindow.h b/mainwindow.h index 410878f..10976c4 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -6,6 +6,7 @@ #include <QMouseEvent> #include "dlgpreferences.h" #include "interactioncanvas.h" +#include "languagedialog.h" namespace Ui { class MainWindow; @@ -22,14 +23,20 @@ public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); + void loadLanguage(const QString &rLanguageFile); + +protected: + void mouseMoveEvent(QMouseEvent *mouseEvent); + private slots: void on_actionPreferences_triggered(); + void on_actionLanguage_triggered(); + + void changeEvent(QEvent *event); private: Ui::MainWindow *ui; + QTranslator m_translator; // contains the translations for this application - // QWidget interface -protected: - void mouseMoveEvent(QMouseEvent *mouseEvent); }; #endif // MAINWINDOW_H |
