configlanguagedlg.h 752 Bytes
#ifndef CONFIGLANGUAGEDLG_H
#define CONFIGLANGUAGEDLG_H

#include <QDialog>
#include <QSignalMapper>
#include <QKeyEvent>
#include <QVector>

namespace Ui {
class ConfigLanguageDlg;
}

class ConfigLanguageDlg : public QDialog
{
    Q_OBJECT
    void reloadUi();

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

private slots:
    void on_ctrBtnOk_clicked();

    void on_ctrBtnCancel_clicked();

    void onConfigBtnClicked(const int sel);

protected:
    void keyReleaseEvent(QKeyEvent* event);
    void keyPressEvent(QKeyEvent* event);

private:
    Ui::ConfigLanguageDlg *ui;
    QSignalMapper *m_pSignalMapper;
    int m_nCurSelLang;
    QVector<QWidget*> m_vectorTabOrder;
};

#endif // CONFIGLANGUAGEDLG_H