configsoundselelectdlg.h 925 Bytes
#ifndef CONFIGSOUNDSELELECTDLG_H
#define CONFIGSOUNDSELELECTDLG_H

#include <QDialog>
#include <QSignalMapper>
#include <config.h>
#include <QKeyEvent>
#include <QVector>

using namespace Define;

namespace Ui {
class ConfigSoundSelelectDlg;
}

class ConfigSoundSelelectDlg : public QDialog
{
    Q_OBJECT

    void reloadUi(void);

public:
    explicit ConfigSoundSelelectDlg(QWidget *parent = 0, ConfigType cfgtype=config_keypad_sound1);
    ~ConfigSoundSelelectDlg();

private slots:
    void on_ctrBtnOk_clicked();

    void on_ctrBtnCancel_clicked();

public slots:
    void onConfigBtnClicked(const int sel);

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

private:
    Ui::ConfigSoundSelelectDlg *ui;
    QSignalMapper *m_pSignalMapper;
    ConfigType m_nCfgType;
    uint32_t m_nCurSel;
    QVector<QWidget*> m_vectorTabOrder;
};

#endif // CONFIGSOUNDSELELECTDLG_H