configdemomodedlg.h 753 Bytes
#ifndef CONFIGDEMOMODEDLG_H
#define CONFIGDEMOMODEDLG_H

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

namespace Ui {
class ConfigDemoModeDlg;
}

class ConfigDemoModeDlg : public QDialog
{
    Q_OBJECT

    void reloadUi(void);

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

private slots:
    void on_ctrBtnOk_clicked();

    void on_ctrBtnCancel_clicked();

    void onConfigBtnClicked(const int sel);

private:
    Ui::ConfigDemoModeDlg *ui;
    QSignalMapper *m_pSignalMapper;
    int m_nCurSel;
    QVector<QWidget*> m_vectorTabOrder;

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

#endif // CONFIGDEMOMODEDLG_H