|
@ -70,7 +70,7 @@ void MainWindow::reportPreviewShow(QString text) { |
|
|
ui->reportPreview->append(info); |
|
|
ui->reportPreview->append(info); |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
|
void MainWindow::blockDataUploadPreviewShow(QString text) { |
|
|
|
|
|
|
|
|
void MainWindow::exceptionUploadPreviewShow(QString text) { |
|
|
QString info; |
|
|
QString info; |
|
|
|
|
|
|
|
|
info.append(QDateTime::currentDateTime().toString("hh:mm:ss.zzz ")); |
|
|
info.append(QDateTime::currentDateTime().toString("hh:mm:ss.zzz ")); |
|
@ -196,7 +196,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi |
|
|
qRegisterMetaType<QFunction>("QFunction"); |
|
|
qRegisterMetaType<QFunction>("QFunction"); |
|
|
connect(this, SIGNAL(doinui_signal(QFunction)), this, SLOT(doinui_slot(QFunction))); |
|
|
connect(this, SIGNAL(doinui_signal(QFunction)), this, SLOT(doinui_slot(QFunction))); |
|
|
ZQUI::ins()->initialize(); |
|
|
ZQUI::ins()->initialize(); |
|
|
ZQUI::ins()->setBlockDataUploadPreviewShow([this](QString text) { blockDataUploadPreviewShow(text); }); |
|
|
|
|
|
|
|
|
ZQUI::ins()->setexceptionUploadPreviewShow([this](QString text) { exceptionUploadPreviewShow(text); }); |
|
|
ZQUI::ins()->setishow([this](QString text) { ishow(text); }); |
|
|
ZQUI::ins()->setishow([this](QString text) { ishow(text); }); |
|
|
ZQUI::ins()->setReportPreviewShow([this](QString text) { reportPreviewShow(text); }); |
|
|
ZQUI::ins()->setReportPreviewShow([this](QString text) { reportPreviewShow(text); }); |
|
|
ZQUI::ins()->setRawDataPreviewShow([this](QString text) { rawDataPreviewShow(text); }); |
|
|
ZQUI::ins()->setRawDataPreviewShow([this](QString text) { rawDataPreviewShow(text); }); |
|
@ -207,7 +207,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi |
|
|
*/ |
|
|
*/ |
|
|
constructBaseUI(); |
|
|
constructBaseUI(); |
|
|
constructAppUI(); |
|
|
constructAppUI(); |
|
|
ui->uploadDataPreview->hide(); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* @brief 业务逻辑构造 |
|
|
* @brief 业务逻辑构造 |
|
@ -365,7 +364,7 @@ void MainWindow::processReportPacket(packet_type_t type, uint8_t from, uint8_t t |
|
|
|
|
|
|
|
|
} else if (frame->function_id == kreport_exception_error) { |
|
|
} else if (frame->function_id == kreport_exception_error) { |
|
|
report_exeception_data_t *ack = (report_exeception_data_t *)frame->params; |
|
|
report_exeception_data_t *ack = (report_exeception_data_t *)frame->params; |
|
|
ZQUI::ins()->rshow("[Exception][FROM:%03d] subid:%x ecode:%s", //
|
|
|
|
|
|
|
|
|
ZQUI::ins()->eshow("[Exception][FROM:%03d] subid:%x ecode:%s", //
|
|
|
from, ack->subid, ErrorCodeToString(ack->ecode)); |
|
|
from, ack->subid, ErrorCodeToString(ack->ecode)); |
|
|
} else if (frame->function_id == kreport_pressure_data) { |
|
|
} else if (frame->function_id == kreport_pressure_data) { |
|
|
report_pressure_data_t *ack = (report_pressure_data_t *)frame->params; |
|
|
report_pressure_data_t *ack = (report_pressure_data_t *)frame->params; |
|
|