configsoundselelectdlg.h
925 Bytes
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
39
40
41
42
43
44
45
46
#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