修复状态机的部分异常、计数器编辑与预览更新、修复时间、轮班图元的高度多一行的问题
This commit is contained in:
+11
-9
@@ -199,7 +199,7 @@ bool MainWidget::generatePrintContent(PicScene *scene)
|
||||
this->pPicScene = scene;
|
||||
onPreviewScene();
|
||||
|
||||
// SendPrintDataToFpga(0);
|
||||
SendPrintDataToFpga(0);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -946,11 +946,6 @@ void MainWidget::updateTotalCnt(int en)
|
||||
void MainWidget::on_m_StartBtn_clicked()
|
||||
{
|
||||
if(sysPara){
|
||||
bool MaxCol4000;
|
||||
if(sysPara->status.flagOfNo67FPGA)
|
||||
MaxCol4000 = true;
|
||||
else
|
||||
MaxCol4000 = false;
|
||||
test_flag = 0;
|
||||
|
||||
if (!checkTriggerMode()) return;
|
||||
@@ -958,11 +953,13 @@ void MainWidget::on_m_StartBtn_clicked()
|
||||
// 打印状态交给状态机修改
|
||||
// sysPara->status.isPrinting=false;
|
||||
auto mgr = PrinterStateManager::instance();
|
||||
#if !defined(FPGA_TEST) && !defined(QT_DEBUG)
|
||||
if (mgr && mgr->canStopPrint()) {
|
||||
mgr->requestTransition(PrinterEvent::StopPrint);
|
||||
} else {return;}
|
||||
#endif
|
||||
|
||||
SendPrintDataToFpga(0); // 0--正常打印,1--打印交替部分信息1; 2--打印交替部分信息2,
|
||||
// SendPrintDataToFpga(0); // 0--正常打印,1--打印交替部分信息1; 2--打印交替部分信息2,
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
sysPara->status.lastSynColDelay = -1; //目的是为了清空原来的数据
|
||||
@@ -999,11 +996,13 @@ void MainWidget::on_m_StopBtn_clicked()
|
||||
}
|
||||
// sysPara->status.isPrinting=false;// 打印状态交给状态机修改
|
||||
auto mgr = PrinterStateManager::instance();
|
||||
#if !defined(FPGA_TEST) && !defined(QT_DEBUG)
|
||||
if (mgr && mgr->canStopPrint()) {
|
||||
mgr->requestTransition(PrinterEvent::StopPrint);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
sysPara->devOp->printCtrl2(1);
|
||||
sysPara->devOp->printCtrl( PRINT_CTRL_STOP);//:PRINT_CTRL_STOPSYNCNT
|
||||
@@ -2373,8 +2372,6 @@ bool MainWidget::updatePhaseIndicatorLight(){
|
||||
LogInfo::setRunStatusText(tr("相位故障,准备关机"));
|
||||
setRunStatus(tr("相位故障,准备关机"));
|
||||
strTitle = tr("相位故障,准备关机");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else if(sysPara->para.suspendAfterPhaseFault){
|
||||
@@ -2531,6 +2528,11 @@ bool MainWidget::checkTriggerMode()
|
||||
}
|
||||
#endif
|
||||
|
||||
bool MaxCol4000;
|
||||
if(sysPara->status.flagOfNo67FPGA)
|
||||
MaxCol4000 = true;
|
||||
else
|
||||
MaxCol4000 = false;
|
||||
if(sysPara->status.currPrintCol > (MaxCol4000?MAX_PRINT_COL_NUM_Normal:MAX_PRINT_COL_NUM_Wide)){
|
||||
QMessageBox::critical(0,tr("错误"),tr("当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度").arg(sysPara->status.currPrintCol).arg((MaxCol4000?MAX_PRINT_COL_NUM_Normal:MAX_PRINT_COL_NUM_Wide)));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user