|
|
@ -112,6 +112,7 @@ void MainWindow::refreshCMD(const QString& cmd)
|
|
|
|
void MainWindow::on_Raw_sendCMDButton_clicked()
|
|
|
|
void MainWindow::on_Raw_sendCMDButton_clicked()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
util->execCMD(ui->Raw_CMDEdit->text());
|
|
|
|
util->execCMD(ui->Raw_CMDEdit->text());
|
|
|
|
|
|
|
|
refreshCMD(ui->Raw_CMDEdit->text());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_Raw_clearOutputButton_clicked()
|
|
|
|
void MainWindow::on_Raw_clearOutputButton_clicked()
|
|
|
@ -146,6 +147,12 @@ void MainWindow::on_Raw_CMDHistoryWidget_itemDoubleClicked(QListWidgetItem *item
|
|
|
|
ui->Raw_CMDEdit->setFocus();
|
|
|
|
ui->Raw_CMDEdit->setFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::sendMSG() // send command when pressing Enter
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(ui->Raw_CMDEdit->hasFocus())
|
|
|
|
|
|
|
|
on_Raw_sendCMDButton_clicked();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// *****************************************************
|
|
|
|
// *****************************************************
|
|
|
|
|
|
|
|
|
|
|
|
// ******************** mifare ********************
|
|
|
|
// ******************** mifare ********************
|
|
|
@ -200,17 +207,21 @@ void MainWindow::on_MF_RW_writeAllButton_clicked()
|
|
|
|
mifare->writeAll();
|
|
|
|
mifare->writeAll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MF_RW_dumpButton_clicked()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
mifare->dump();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MF_RW_restoreButton_clicked()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
mifare->restore();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ************************************************
|
|
|
|
// ************************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ******************** other ********************
|
|
|
|
// ******************** other ********************
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::sendMSG() // send command when pressing Enter
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(ui->Raw_CMDEdit->hasFocus())
|
|
|
|
|
|
|
|
on_Raw_sendCMDButton_clicked();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::uiInit()
|
|
|
|
void MainWindow::uiInit()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
connect(ui->Raw_CMDEdit, &QLineEdit::editingFinished, this, &MainWindow::sendMSG);
|
|
|
|
connect(ui->Raw_CMDEdit, &QLineEdit::editingFinished, this, &MainWindow::sendMSG);
|
|
|
@ -284,5 +295,3 @@ void MainWindow::setStatusBar(QLabel* target, const QString & text)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ***********************************************
|
|
|
|
// ***********************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|