configsoundselelectdlg.cpp 801 Bytes
#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;
    }
}