|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
#include "mf_sim_simdialog.h"
|
|
|
|
|
#include "ui_mf_sim_simdialog.h"
|
|
|
|
|
|
|
|
|
|
MF_Sim_simDialog::MF_Sim_simDialog(QWidget *parent) :
|
|
|
|
|
MF_Sim_simDialog::MF_Sim_simDialog(int cardType, QWidget *parent) :
|
|
|
|
|
QDialog(parent),
|
|
|
|
|
ui(new Ui::MF_Sim_simDialog)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
this->cardType = cardType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MF_Sim_simDialog::~MF_Sim_simDialog()
|
|
|
|
@ -50,3 +51,16 @@ void MF_Sim_simDialog::on_fBox_clicked(bool checked)
|
|
|
|
|
ui->xBox->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MF_Sim_simDialog::on_buttonBox_accepted()
|
|
|
|
|
{
|
|
|
|
|
QString paras;
|
|
|
|
|
paras += (ui->uBox->isChecked() ? "u " + ui->uEdit->text() + " " : "");
|
|
|
|
|
paras += (ui->nBox->isChecked() ? "n " + ui->nEdit->text() + " " : "");
|
|
|
|
|
paras += (ui->iBox->isChecked() ? "i " : "");
|
|
|
|
|
paras += (ui->xBox->isChecked() ? "x " : "");
|
|
|
|
|
paras += (ui->eBox->isChecked() ? "e " : "");
|
|
|
|
|
paras += (ui->fBox->isChecked() ? "f " + ui->fEdit->text() + " " : "");
|
|
|
|
|
paras += (ui->rBox->isChecked() ? "r " : "");
|
|
|
|
|
emit sendCMD(QString("hf mf sim ") + "*" + QString::number(cardType) + " " + paras.trimmed());
|
|
|
|
|
}
|
|
|
|
|