configsoundselelectdlg.cpp
801 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
#include "configsoundselelectdlg.h"
#include "ui_configsoundselelectdlg.h"
ConfigSoundSelelectDlg::ConfigSoundSelelectDlg(QWidget *parent, ConfigType cfgtype) :
QDialog(parent),
ui(new Ui::ConfigSoundSelelectDlg)
{
Config* cfg = Config::getInstance();
config_item item;
ui->setupUi(this);
switch(cfgtype){
case config_keypad_sound1:
default:
item = cfg->getConfigValue(cfgtype);
break;
}
m_nCurSel = item.d32;
reloadUi();
}
ConfigSoundSelelectDlg::~ConfigSoundSelelectDlg()
{
delete ui;
}
void ConfigSoundSelelectDlg::on_ctrBtnOk_clicked()
{
accept();
}
void ConfigSoundSelelectDlg::on_ctrBtnCancel_clicked()
{
reject();
}
void ConfigSoundSelelectDlg::reloadUi(){
switch(m_nCurSel){
case 0:
break;
}
}