2020-04-15 00:38:43 +08:00
|
|
|
|
#include "mf_attack_hardnesteddialog.h"
|
|
|
|
|
#include "ui_mf_attack_hardnesteddialog.h"
|
|
|
|
|
|
2020-04-24 22:11:35 +08:00
|
|
|
|
MF_Attack_hardnestedDialog::MF_Attack_hardnestedDialog(int blocks, QWidget *parent) :
|
2020-04-15 00:38:43 +08:00
|
|
|
|
QDialog(parent),
|
|
|
|
|
ui(new Ui::MF_Attack_hardnestedDialog)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
2020-04-24 22:11:35 +08:00
|
|
|
|
for(int i = 0; i < blocks; i++)
|
2020-04-18 02:01:42 +08:00
|
|
|
|
{
|
|
|
|
|
ui->knownKeySectorBox->addItem(QString::number(i));
|
|
|
|
|
ui->targetKeySectorBox->addItem(QString::number(i));
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-15 00:38:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MF_Attack_hardnestedDialog::~MF_Attack_hardnestedDialog()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MF_Attack_hardnestedDialog::on_buttonBox_accepted()
|
|
|
|
|
{
|
|
|
|
|
emit sendCMD("hf mf hardnested "
|
2020-04-22 23:13:00 +08:00
|
|
|
|
+ ui->knownKeySectorBox->currentText()
|
|
|
|
|
+ " "
|
|
|
|
|
+ ui->knownKeyTypeBox->currentText()
|
|
|
|
|
+ " "
|
|
|
|
|
+ ui->knownKeyBox->text()
|
|
|
|
|
+ " "
|
|
|
|
|
+ ui->targetKeySectorBox->currentText()
|
|
|
|
|
+ " "
|
|
|
|
|
+ ui->targetKeyTypeBox->currentText());
|
2020-04-15 00:38:43 +08:00
|
|
|
|
}
|