34 lines
857 B
Plaintext
34 lines
857 B
Plaintext
#include "dlgselectinputlanguage.h"
|
|
#include "ui_dlgselectinputlanguage.h"
|
|
|
|
DlgSelectInputLanguage::DlgSelectInputLanguage(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::DlgSelectInputLanguage)
|
|
{
|
|
ui->setupUi(this);
|
|
selectIndex = 0;
|
|
connect(ui->radioButtonChinese,SIGNAL(clicked(bool)),this,SLOT(selectChanged1(bool)));
|
|
connect(ui->radioButtonEnglish,SIGNAL(clicked(bool)),this,SLOT(selectChanged2(bool)));
|
|
connect(ui->radioButtonVietnam,SIGNAL(clicked(bool)),this,SLOT(selectChanged3(bool)));
|
|
|
|
}
|
|
|
|
DlgSelectInputLanguage::~DlgSelectInputLanguage()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void DlgSelectInputLanguage::selectChanged1(bool ok){
|
|
selectIndex=1;
|
|
hide();
|
|
}
|
|
void DlgSelectInputLanguage::selectChanged2(bool ok){
|
|
selectIndex=0;
|
|
hide();
|
|
}
|
|
|
|
void DlgSelectInputLanguage::selectChanged3(bool ok){
|
|
selectIndex=2;
|
|
hide();
|
|
}
|