summaryrefslogtreecommitdiffstats
path: root/languagedialog.h
blob: 4dd0c614d3cce38dd9b7883a0dc4dd1d6c6c4949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef LANGUAGEDIALOG_H
#define LANGUAGEDIALOG_H

#include <QDialog>
#include <QTranslator>

namespace Ui {
class LanguageDialog;
}

class LanguageDialog : public QDialog
{
    Q_OBJECT
    Q_PROPERTY(int language READ language WRITE setLanguage NOTIFY languageChanged)

public:
    explicit LanguageDialog(QWidget *parent = 0);
    ~LanguageDialog();

    int language() const;

public slots:
    void setLanguage(int arg);

signals:
    void languageChanged(int arg);

private slots:
    void on_radioButtonEnglish_clicked();

    void on_radioButtonGerman_clicked();

private:
    Ui::LanguageDialog *ui;
    int m_language;
};

#endif // LANGUAGEDIALOG_H