diff --git a/DigitalInput.cpp b/DigitalInput.cpp index 6357334..6e04da2 100644 --- a/DigitalInput.cpp +++ b/DigitalInput.cpp @@ -8,7 +8,7 @@ #include DigitalInput::DigitalInput(MyInputMethod *myInputMethod,QWidget *parent) : - QWidget(parent,(Qt::FramelessWindowHint )), + QWidget(parent,(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::Tool | Qt::BypassWindowManagerHint)), ui(new Ui::DigitalInput) { ui->setupUi(this); @@ -143,6 +143,8 @@ void DigitalInput::onClrPressed() void DigitalInput::showEvent(QShowEvent *event) { QWidget::showEvent(event); + raise(); + auto focusWidget = qApp->focusWidget(); QSpinBox* box = dynamic_cast(focusWidget); if(!box) { diff --git a/InkJetPrinter.cpp b/InkJetPrinter.cpp index aa83afc..b99a989 100644 --- a/InkJetPrinter.cpp +++ b/InkJetPrinter.cpp @@ -1650,6 +1650,7 @@ void InkJetPrinter::getMainInstructWidgetButtonClickedSlot(int index) } case 3: { + m_SystemSetting->updateSysParaToUI(); m_StackedWidget->setCurrentWidget(m_SystemSetting); break; } @@ -1939,12 +1940,14 @@ void InkJetPrinter::stopSendSTM32Data(bool flag){ /*************************STM32通过串口读取状态赋值给status-start******************************************/ void InkJetPrinter::saveSTM32Status(unsigned char *data){ unsigned char *target= ((unsigned char *)&sysPara->status)+0x44; + int len = data[3]; for(int i=0;istatus.reclaimTankstatus); // emit showMotorIsen(sysPara->status.MOTOR_ISEN,sysPara->status.AD_FIXED); } @@ -2585,7 +2588,7 @@ void InkJetPrinter::viscosity_timerHandler() { if(!firstTime) qDebug()<<"错误!粘度计故障:检测不到上位灯"; - LogInfo::setRunStatusText(tr("错误!粘度计故障:检测不到上位灯")); + // LogInfo::setRunStatusText(tr("错误!粘度计故障:检测不到上位灯")); viscosity_timer->stop(); firstTime = 0; } @@ -2919,6 +2922,7 @@ int InkJetPrinter::updateWarningTime(int type){ // 关闭文件 file.close(); inkWarnTime = QDateTime::fromString(starTime,"yyyy-MM-dd HH::mm::ss"); + qDebug() << inkWarnTime; } else { qDebug() << "Failed to open file for reading:"; LogInfo::setRunStatusText("Failed to open file for reading"); diff --git a/MainInstruction.cpp b/MainInstruction.cpp index dc17b8a..bbd6205 100644 --- a/MainInstruction.cpp +++ b/MainInstruction.cpp @@ -2,6 +2,8 @@ #include "ui_MainInstruction.h" #include #include +#include +#include #include "DlgRFIDConfig.h" #include "runtimectrl.h" #include "DlgCanvasHeightEditor.h" @@ -210,7 +212,7 @@ void MainInstruction::on_btn_time_clicked() #include void m_adjustdate(int year, int mon, int mday, int hour, int min, int sec) { time_t t; - struct tm nowtime; + struct tm nowtime = {}; nowtime.tm_sec = sec; // Seconds.[0-60] (1 leap second) nowtime.tm_min = min; // Minutes.[0-59] nowtime.tm_hour = hour; // Hours. [0-23] @@ -220,11 +222,28 @@ void m_adjustdate(int year, int mon, int mday, int hour, int min, int sec) { nowtime.tm_isdst = -1; // DST.[-1/0/1] t = mktime(&nowtime); -#if __GLIBC_MINOR__ >= 31 + // GLibc 版本 大于等于 2.31时使用新API +#if (__GLIBC_MINOR__ >= 31 && __GLIBC__ == 2) || (__GLIBC__ > 2) + if (t == static_cast(-1)) { + qWarning() << "mktime failed, errno:" << errno << QString::fromLocal8Bit(std::strerror(errno)); + return; + } + struct timespec res; + res.tv_nsec = 0; res.tv_sec = t; - clock_settime(CLOCK_REALTIME, &res); + auto r = clock_settime(CLOCK_REALTIME, &res); + if (r != 0) { + qWarning() << "clock_settime failed, errno:" << errno << QString::fromLocal8Bit(std::strerror(errno)); + } else { + qInfo() << "clock_settime success"; + } #else + if (t == static_cast(-1)) { + qWarning() << "mktime failed, errno:" << errno << QString::fromLocal8Bit(std::strerror(errno)); + return; + } + stime(&t); #endif } diff --git a/MainInstruction.ui b/MainInstruction.ui index 263a6d0..3a6a385 100644 --- a/MainInstruction.ui +++ b/MainInstruction.ui @@ -98,7 +98,7 @@ - 2 + 0 diff --git a/MyInputMethod.cpp b/MyInputMethod.cpp index 008b60b..14ea450 100644 --- a/MyInputMethod.cpp +++ b/MyInputMethod.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "InkJetPrinter.h" extern InkJetPrinter *pInkJectPrinter; @@ -125,6 +126,7 @@ void MyInputMethod::updateHandler ( int type ){ case 1: if(widget && dynamic_cast(widget)){ if(digitalInput->isHidden()){ + QWidget *hostWindow = widget->window(); QRect rec = QApplication::desktop()->screenGeometry(); QPoint point = widget->mapToGlobal (QPoint(0,0)); //全局坐标 QRect myRec = digitalInput->geometry(); @@ -132,6 +134,10 @@ void MyInputMethod::updateHandler ( int type ){ (point.y() > rec.height()/2)?(point.y() - myRec.height() - 20):(point.y() + 20), myRec.width(),myRec.height()); digitalInput->show(); + if(hostWindow && digitalInput->windowHandle() && hostWindow->windowHandle()) { + digitalInput->windowHandle()->setTransientParent(hostWindow->windowHandle()); + } + digitalInput->raise(); } } else { diff --git a/SystemManage.ui b/SystemManage.ui index d6f986b..d3a8ff5 100644 --- a/SystemManage.ui +++ b/SystemManage.ui @@ -144,71 +144,73 @@ - - - - - - 0 - 40 - - - - - 120 - 16777215 - - - - 齿轮泵关 - - - - - - - - 0 - 40 - - - - - 120 - 16777215 - - - - Qt::NoFocus - - - 齿轮泵开 - - - - - - - - 70 - 37 - - - - 0 - - - 400 - - - 10 - - - 100 - - - - + + + + + + + 0 + 40 + + + + + 120 + 16777215 + + + + 齿轮泵关 + + + + + + + + 120 + 40 + + + + + 120 + 16777215 + + + + Qt::NoFocus + + + 齿轮泵开 + + + + + + + + 70 + 37 + + + + 0 + + + 400 + + + 10 + + + 100 + + + + + diff --git a/SystemSetting.cpp b/SystemSetting.cpp index 641e8c7..67d52d0 100644 --- a/SystemSetting.cpp +++ b/SystemSetting.cpp @@ -8,6 +8,8 @@ #include #include #include +#include +#include //#include "LogInfo.h" #include "myinclude.h" #include "QInputDialog" @@ -69,6 +71,22 @@ void SystemSetting::init() // 应用样式表 applyStyleSheet(); + QScrollArea *scrollArea = this->findChild("systemSettingScrollArea"); + if (scrollArea) { + QWidget *viewport = scrollArea->viewport(); + QScroller::grabGesture(viewport, QScroller::LeftMouseButtonGesture); + QScroller::grabGesture(viewport, QScroller::TouchGesture); + + QScroller *scroller = QScroller::scroller(viewport); + QScrollerProperties properties = scroller->scrollerProperties(); + // 关闭惯性:限制 flick 速度并加快减速,达到松手即停的效果 + properties.setScrollMetric(QScrollerProperties::DecelerationFactor, 1.0); + properties.setScrollMetric(QScrollerProperties::MaximumVelocity, 0.0); + properties.setScrollMetric(QScrollerProperties::AcceleratingFlickMaximumTime, 0.0); + properties.setScrollMetric(QScrollerProperties::DragStartDistance, 0.002); + scroller->setScrollerProperties(properties); + } + // 连接信号槽 connect(ui->closeBtn, &QPushButton::clicked, this, &SystemSetting::buttonClickedSlot); @@ -160,14 +178,16 @@ void SystemSetting::updateSysParaToUI(){ ui->comboBoxDiameter->setCurrentIndex(sysPara->para.diameter); ui->comboBoxDiaphramOffset->setCurrentIndex(sysPara->para.diaphramOffset/5-1); ui->enableReclaimAlgorithm->setChecked(sysPara->para.flagOfReclaimPumEnable); + ui->checkBoxReciclar->setChecked(sysPara->para.Reciclar); + ui->checkBoxMagnet->setChecked(sysPara->para.isCheckMagnet); + ui->checkBoxSuspendAfterPhaseFault->setChecked(sysPara->para.suspendAfterPhaseFault); + ui->checkHVFaultCloseEn->setChecked(sysPara->para.HVFaultCloseEn); if(sysPara->para.EditMode>SCENE) sysPara->para.EditMode=TXTFILE; } } - - extern bool gearPumpRunNormalFlag; void SystemSetting::applyUIPara(){ if(sysPara){ @@ -193,7 +213,13 @@ void SystemSetting::applyUIPara(){ else { QMessageBox::critical(this,tr("错误"),tr("实际频率不能为%1").arg(freq)); } + sysPara->para.flagOfReclaimPumEnable = ui->enableReclaimAlgorithm->isChecked(); + sysPara->para.Reciclar = ui->checkBoxReciclar->isChecked(); + sysPara->para.isCheckMagnet = ui->checkBoxMagnet->isChecked(); + sysPara->para.suspendAfterPhaseFault = ui->checkBoxSuspendAfterPhaseFault->isChecked(); + sysPara->para.HVFaultCloseEn = ui->checkHVFaultCloseEn->isChecked(); + sysPara->para.FanTemperature = ui->spinBoxFanTemperature->value(); sysPara->para.septalPostion = ui->spinBoxSeptalPostion->value(); quint16 diaphramOffset = 5*(ui->comboBoxDiaphramOffset->currentIndex()+1); @@ -723,13 +749,10 @@ void SystemSetting::on_spinBoxOscillatorVoltage_valueChanged(int arg1) { static int vol=0; // if(sysPara){ - if(vol-1==arg1 || vol+1==arg1) - { - //qDebug()<<"OSCVOL:"<devOp->setOscillatorVoltage(ui->spinBoxOscillatorVoltage->value()); - - } vol = arg1; + + if(arg1 >= 10) + sysPara->devOp->setOscillatorVoltage(ui->spinBoxOscillatorVoltage->value()); } } #include "Public.h" diff --git a/chinese.ts b/chinese.ts index 91a7d4e..de146bd 100644 --- a/chinese.ts +++ b/chinese.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/conf/VoltDataStd25.bin b/conf/VoltDataStd25.bin index 7e56094..039ec45 100644 Binary files a/conf/VoltDataStd25.bin and b/conf/VoltDataStd25.bin differ diff --git a/english.ts b/english.ts index 91a7d4e..de146bd 100644 --- a/english.ts +++ b/english.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/farsi.ts b/farsi.ts index 91a7d4e..de146bd 100644 --- a/farsi.ts +++ b/farsi.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/korean.ts b/korean.ts index 14d3821..880444b 100644 --- a/korean.ts +++ b/korean.ts @@ -3239,6 +3239,7 @@ + 自检完成!!! 자체 진단 완료!!! @@ -3276,6 +3277,7 @@ + 停止打印,自动关闭高压. 인쇄 중지, 고전압 자동 종료 @@ -3305,7 +3307,7 @@ - + 提示 팁 @@ -3454,26 +3456,25 @@ MAC 무효 카드! - 错误!粘度计故障:检测不到上位灯 - 오류! 점도계 고장: 상단 램프 감지 실패 + 오류! 점도계 고장: 상단 램프 감지 실패 正在准备重启,请等待%1秒............... 재부팅을 준비하는 중입니다. %1 초 동안 기다려 주십시오... - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 유지보수 주기 만료까지 %1일 남았습니다. 제때 유지보수를 실시하십시오. - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 유지보수 주기가 %1일 초과되었습니다. 잉크젯 프린터의 정상 사용을 복구하려면 유지보수를 실시하십시오. - + 当前正在使用 %1 确定要新建文件吗? @@ -3482,7 +3483,7 @@ 새 파일을 생성하시겠습니까? - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 압력이 너무 높습니다. 배관이 막혔는지 확인한 후 오류 복구 버튼을 누르십시오. @@ -3587,22 +3588,22 @@ 기어 펌프 회전 속도가 너무 높습니다. 즉시 정지하고 공급업체에 연락하십시오. - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! 잉크 TAG를 리드하시고 정품 잉크를 사용하십시오. 그렇지 않으면 %1시간 후에 장비 사용이 금지됩니다! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! 잉크 레벨 경보가 48시간을 초과했습니다. 장비의 정상 작동을 복구하기 위해 잉크를 추가하고 잉크 TAG을 리드하세요 - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! 솔벤트 TAG를 리드하시고 정품 솔벤트를 사용하십시오. 그렇지 않으면 %1시간 후에 장비 사용이 금지됩니다! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! 솔벤트 수위 경보가 48시간을 초과했습니다. 장비의 정상 작동을 복구하기 위해 솔벤트를 추가하고 솔벤트 TAG를 리드하세요 @@ -3611,7 +3612,7 @@ 유지보수 주기가 %1일 초과되었습니다. 제때 유지보수를 실시하십시오. 그렇지 않으면 잉크젯 프린터가 손상될 수 있습니다. - + 刷卡倒计时起始时间文件不存在 카드 사용 카운트다운 시작 시간 파일이 존재하지 않습니다. @@ -3796,7 +3797,7 @@ 잉크 선 빠른 닫기 완료 - + 警告 경고 @@ -3876,19 +3877,19 @@ %1/%2/%3 - - - + + + 正在准备重启,请等待%1秒...... 재시작 준비 중, %1초 대기... - + ink Warning at: %1 잉크 경보: %1 - + solvent Warning at: %1 솔벤트 경보: %1 @@ -3921,8 +3922,8 @@ 오류!!!!!!!!!!!점도 이상 - - + + 电机故障 모터 에러 @@ -3931,13 +3932,13 @@ 모터 에러!!! - + 回收槽到头 거터 최대 위치 도달 - - + + 回收槽卡住或者回收槽开关时间设置错误 거터가 걸렸거나 거터 개폐 시간 설정이 잘못되었습니다. @@ -5138,14 +5139,14 @@ Char - + 喷嘴开启 노즐 켜짐 - + 喷嘴关闭 노즐 닫힘 @@ -5183,9 +5184,9 @@ Char - - - + + + 警告 경고 @@ -5229,13 +5230,13 @@ Char 최대 지원 열 수: %1. 정보 길이를 줄여 주십시오. - - + + 变量数大于8个,某些变量将不起作用!!! 변수 수가 8개를 초과하여 일부 변수가 작동하지 않습니다! - + 请减少信息中的变量(或计数器)数量. 인쇄 파일 내 변수(또는 카운터) 수를 줄이세요. @@ -5244,36 +5245,36 @@ Char 경고: 인터페이스에 일부 변수가 표시되지 않습니다. - - - - - + + + + + 错误 오류 - + 喷印间隔过短,应高于%1! 인쇄 간격이 너무 짧습니다. %1 이상으로 설정하세요! - + 喷头盖未关,请先关喷头盖! 헤드 커버 닫기 필요! - + 墨线未开,请先开墨线开关! 잉크 스위치 켜십시오! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 최대 %2열 지원, 현재 %1열 → 길이 축소 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms 트리거 간격 %1ms → %2ms 이상 필요 @@ -5282,81 +5283,81 @@ Char 열기 중지 - + 喷嘴已开启 노즐 열림 - + 喷嘴开启中 노즐 열기 중 - + 喷嘴已关闭 노즐 닫힘 - + 喷嘴关闭中 노즐 닫기 중 - - + + 正在排气... 블리딩 중... - - + + 高压故障 고전압에러 - - + + 相位故障 위상 에러 - - + + 粘度故障 점도 에러 - - + + 回收故障 석션 에러 - - + + 溶液液位 솔벤트 레벨 - - + + 墨水液位 잉크 레벨 오류 - - + + 墨水缸满 잉크 통 가득 참 - - + + 墨线开关 잉크선 스위치 - + 正常 정상 @@ -5365,12 +5366,12 @@ Char 인쇄 시작 1 - + 提示 팁 - + 随机码文本将展出到U盘,请插入U盘 랜덤 코드를 USB에 저장합니다. USB를 삽입하세요. @@ -5387,8 +5388,8 @@ Char 열기 중지 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? 거터가 이전에 걸렸거나 거터 개폐 시간 설정이 잘못되었습니다. 현재 위치를 강제로 상한 위치로 설정하시겠습니까? @@ -5401,8 +5402,8 @@ Char 닫기 중지 - - + + %1.%2 %1.%2 @@ -5423,94 +5424,94 @@ Char 프린트 헤드 커버가 열려 인쇄 불가! - + 墨水缸满报警 잉크통 만료 경보 - + 墨水液位报警 잉크 레벨 경보 - + 溶剂液位报警 솔벤트 레벨 경보 - - + + 高压故障,暂停打印 고전압 오류로 인쇄 일시 정지 - + 高压故障,暂停打印. 고전압 고장, 인쇄 일시정지 - + 高压故障,关回收槽 고전압 오류로 수집기 자동 종료 - + 高压故障,关回收槽和墨线 고압 오류가 발생했습니다. 거터를 닫고 잉크 선을 정지하십시오. - - + + 回收故障,关闭回收槽,关墨线 회수 오류가 발생했습니다. 거터를 닫고 잉크 선을 정지하십시오. - + 回收故障. 회수 에러 - + 回收异常,墨线可能偏离.(%1) 회수 이상, 잉크 선 편향 가능성 (%1) - + 正在喷印....... 인쇄 중... - + 相位故障:飞行时间错误! 위상 이상: 비행 시간 오류! - + 相位故障:相位检测错误! 위상 이상: 검출 오류! - - - + + + 相位故障,准备关机 위상 오류로 시스템 종료 준비 - - - + + + 相位故障,暂停打印 위상 오류로 인쇄 일시 정지 - + 相位故障,屏蔽DAC输出 위상 오류로 DAC 출력 차단 - - + + 相位故障,屏蔽充电 위상 오류로 충전 차단 @@ -9146,22 +9147,21 @@ configuration. Super IC card, write back original data - Cmd[%1]: %2 - Cmd[%1]: %2 + Cmd[%1]: %2 - + 写数据到数据块6 데이터 블록 6에 데이터 쓰기 - + 已经刷过墨水卡,需添加墨水 이미 잉크 TAG을 리드했습니다. 잉크를 추가해야 합니다. - + 不需要刷墨水卡! 잉크 TAG 리드 필요 없습니다! @@ -9170,32 +9170,37 @@ configuration. 먼저 잉크을 보충한 후 TAG을 사용하십시오! - + 确认要刷墨水卡吗? 잉크 TAG을 리드하겠습니까? - + 确认要刷墨水卡吗? %1 秒后将自动确认 잉크 TAG을 리드하겠습니까? %1초 후 자동 확인 - + 刷墨水卡成功! 잉크 TAG 리드 성공! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + 잉크 TAG 리드 성공, 해당 잉크 카드에 대응하는 잉크를 장비에 즉시 보충해 주세요 + + + 刷超级墨水卡失败,请联系厂商。 슈퍼 잉크 TAG 리드 실패, 제조업체에 문의하십시오. - + 已经刷过溶剂卡,需添加溶剂 이미 솔벤트 TAG을 리드했습니다. 솔벤트를 추가해야 합니다. - + 不需要刷溶剂卡! 솔벤트 TAG 리드 필요 없습니다! @@ -9204,20 +9209,25 @@ configuration. 먼저 솔벤트을 보충한 후 TAG을 사용하십시오! - + 确认要刷溶剂卡吗? 솔벤트 TAG을 리드하겠습니까? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 솔벤트 TAG을 리드하겠습니까? %1초 후 자동 확인 - + 刷溶剂卡成功! 솔벤트 TAG 리드 성공! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + 솔벤트 TAG 리드 성공, 해당 솔벤트 카드에 대응하는 솔벤트를 장비에 즉시 보충해 주세요 + 刷超级溶剂水卡失败,请联系厂商。 @@ -9305,18 +9315,25 @@ configuration. - 请及时刷墨水卡 - 잉크 카드를 제때 사용하십시오 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 잉크 용기에 동봉된 IC 카드로 잉크 용기를 즉시 활성화해 주세요 - - 请及时刷溶剂卡 - 솔벤트 카드를 제때 사용하십시오 + 请及时将该墨水卡对应的墨水添加到机器中 + 해당 잉크 카드에 대응하는 잉크를 장비에 즉시 보충해 주세요 + + + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 + 솔벤트 용기에 동봉된 IC 카드로 솔벤트 용기를 즉시 활성화해 주세요 + + + 请及时将该溶剂卡对应的溶剂添加到机器中 + 해당 솔벤트 카드에 대응하는 솔벤트를 장비에 즉시 보충해 주세요 - sucess - 성공 + 성공 @@ -9645,13 +9662,13 @@ configuration. 노즐 역방향세척 - + 回收槽开 거터 열기 - - + + @@ -9664,7 +9681,7 @@ configuration. 정지 - + 回收槽关 거터 닫기 @@ -9677,12 +9694,12 @@ configuration. 단일 칩 소프트웨어 - + 重启 재 시작 - + 环境配置 환경 설정 @@ -9696,33 +9713,33 @@ configuration. 피드백 밸브 - + 回收泵 석션 펌프 - + 压缩机 압축기 - + 主墨泵 메인 펌프 - + 泄压阀 압력 밸브 - + 循环阀 순환 밸브 - + 墨水阀 잉크 밸브 @@ -9731,12 +9748,12 @@ configuration. 유지보수 간격 설정 - + 粘度泵 점도 펌프 - + 混合阀 혼합 밸브 @@ -9753,7 +9770,7 @@ configuration. FPGA - + 排气 배기 @@ -9778,12 +9795,12 @@ configuration. 폰트 업데이트 - + 齿轮泵开 기어 펌프 열기 - + 齿轮泵关 기어 펌프 닫기 @@ -10322,17 +10339,17 @@ configuration. 양식 - + 压力: 압력: - + 粘度: 점도: - + 高压包容差: 고전압 허용 오차: @@ -10341,22 +10358,22 @@ configuration. 점도 보상: - + 回收槽开关时间: 노즐 스위칭 시간: - + 喷头温度: 프린트 헤드 온도: - + 电机电流: 모터 전류: - + 64K 64K @@ -10365,22 +10382,22 @@ configuration. 76K - + 96K 96K - + 晶振频率: 크리스탈 주파수: - + 粘度校正(%): 점도 보상(%): - + 新晶振 새 크리스탈 @@ -10389,38 +10406,38 @@ configuration. 시나리오 모드 - + 墨水温度: 잉크 온도: - - + + °C °C - + 0 0 - + 0.6 0.6 - + 1.0 1 - + 1.6 1.6 - + 2.0 2 @@ -10429,112 +10446,132 @@ configuration. 펄스 카운터: - + 脉冲计数器: 펄스 카운터: - + 83K 83K - + 隔膜位置偏移: 다이어프램 위치 오프셋: - + 5 5 - + 10 10 - + 15 15 - + 20 20 - + 25 25 - + 30 30 - + 40 40 - + 45 45 - + 50 50 - + 55 55 - + 60 60 - + 启用回收泵算法 회수 펌프 알고리즘 활성화 - + + 检测回收槽 + 회수 탱크 검출 + + + + 不检测喷头盖 + 헤드 커버 검사 안 함 + + + + 相位故障不打印 + 위상 고장 시 인쇄 중지 + + + + 高压故障关闭回收槽 + 고전압 고장 시 회수 탱크 종료 + + + ✓ ✓ - + ✕ ✕ - + 喷嘴直径: 노즐 직경: - + 50 (UM) 50 (마이크로미터) - + 60 (UM) 60 (마이크로미터) - + 70 (UM) 70 (마이크로미터) - + 风扇开启温度: 팬 작동 온도: @@ -10551,7 +10588,7 @@ configuration. 지속 가열 - + 重置高压 고전압 재설정 @@ -10568,27 +10605,27 @@ configuration. 총 펄스: - + 粘度泵动作间隔(秒): 점도 펌프 작동 간격(초): - + 晶振电压(%): 크리스탈 전압(%): - + 频率修正: 주파수 조정: - + Hz Hz - + 回收泵力度(%): 셕션 펌프(%): @@ -10597,7 +10634,7 @@ configuration. 펄스 카운터: - + 隔膜位置: 다이어프램 위치: @@ -10634,7 +10671,7 @@ configuration. 대형 노즐 - + 喷嘴逆清洗 노즐 역방향세척 @@ -10647,43 +10684,43 @@ configuration. 최적 크리스탈 전압 검색 - + 128K 128K - + 错误 오류 - + 实际频率不能为%1 실제 주파수는 %1이 될 수 없음 - - + + 提示 팁 - + 应用成功 적용 성공 - + 自动清洗时间约为一分钟,然后自动停止 자동 세척 시간은 약 1분 후 자동 중단됩니다. - + 开始清洗 세척 시작 - + 停止清洗 세척 중지 @@ -10692,7 +10729,7 @@ configuration. 수동 모드 진입 중...... - + 正在喷嘴逆清洗...... 노즐 역세척 진행 중...... @@ -10721,7 +10758,7 @@ configuration. 거터를 닫고 있습니다..... - + 清洗完成 세척 완료 @@ -10730,12 +10767,12 @@ configuration. 비밀번호 오류! - + Application 애플리케이션 - + 是否更新高压包电流数据? 고전압 변압기 전류 데이터를 업데이트하시겠습니까? @@ -10796,12 +10833,12 @@ configuration. 최적 크리스탈 주파수 검색 완료 - + Oscillator voltage %1 --- 最长高电平时钟 %2 오실레이터 전압 %1 --- 최장 고전압 클럭 %2 - + 最佳晶振电压完成 최적 크리스탈 전압 검색 완료 diff --git a/mainwidget.cpp b/mainwidget.cpp index 4d8dfb4..579e453 100644 --- a/mainwidget.cpp +++ b/mainwidget.cpp @@ -372,8 +372,14 @@ void MainWidget::powerOffConfirmed(){ qApp->exit(0); } -void MainWidget::setRunStatus(QString str){ - +void MainWidget::setRunStatus(QString str) +{ + // 自检完成后,timerHandler中会发送停止打印的命令,导致“停止打印,自动关闭高压.”顶替掉“自检完成!!!”的情况 + if(ui.lb_nozzleState->text() == qApp->translate("InkJetPrinter", "自检完成!!!") && + str == qApp->translate("InkJetPrinter", "停止打印,自动关闭高压.")) { + return; + } + ui.lb_nozzleState->setText(str); } @@ -2340,7 +2346,7 @@ void MainWidget::onPreviewScene() LogInfo::setRunStatusText("currPrintRow: " + QString::number(sysPara->status.currPrintRow)); LogInfo::setRunStatusText(QString("Items bounding rect: {%1, %2}").arg(sceneRect.width()).arg(sceneRect.height())); - sysPara->status.currPrintRow = sceneRect.height(); + // sysPara->status.currPrintRow = sceneRect.height(); sysPara->status.currPrintCol = sceneRect.width(); auto rows = sysPara->para.AlterMode?sysPara->status.currAlterPrintRow : sysPara->status.currPrintRow; diff --git a/rfid/rfidmanager.cpp b/rfid/rfidmanager.cpp index dfab28a..1cf412f 100644 --- a/rfid/rfidmanager.cpp +++ b/rfid/rfidmanager.cpp @@ -238,8 +238,6 @@ QByteArray RFIDManager::buildMarkCardCommand(int block, int cardType, const QStr QList list = str.split(":"); for(int i = 0;i < list.size();i++){ Cmd[i+6] = list.at(i).toInt(); - LogInfo::setRunStatusText(tr("Cmd[%1]: %2").arg(i+6).arg(Cmd[i+6])); - qDebug()<<"Cmd["<start(1000); + warningTimer->start(3000); #endif } @@ -563,7 +561,8 @@ void RFIDManager::handleCheck(unsigned int addr) else { auto ret = RFIDmarkCardUsedAsync(0, strRevdata); if(ret >= 0 || ret == -11){ - emit sig_showMsg(tr("刷墨水卡成功!")); + const QString msg = sysPara->RFIDPara.addedInk ? tr("刷墨水卡成功!") : tr("刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中"); + emit sig_showMsg(msg); sysPara->RFIDPara.cardInk = true; sysPara->saveRFIDPara(); } @@ -595,7 +594,8 @@ void RFIDManager::handleCheck(unsigned int addr) else { auto ret = RFIDmarkCardUsedAsync(1, strRevdata); if(ret >= 0 || ret == -11) { - emit sig_showMsg(tr("刷溶剂卡成功!")); + const QString msg = sysPara->RFIDPara.addedSolvent ? tr("刷溶剂卡成功!") : tr("刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中"); + emit sig_showMsg(msg); sysPara->RFIDPara.cardSolvent = true; sysPara->saveRFIDPara(); } @@ -1127,10 +1127,10 @@ void RFIDManager::updateStatus() } } -bool RFIDManager::waitStatus() +int RFIDManager::waitStatus() { // updateStatus(); - bool res = false; + int res = 0; bool inkFlag = !(sysPara->status.statWarn & WARN_STATUS_INK_WARN); bool solventFlag = !(sysPara->status.statWarn & WARN_STATUS_SOLV_WARN); if (status.addedInk && status.cardInk) { @@ -1148,7 +1148,7 @@ bool RFIDManager::waitStatus() QDir dir("/home/plg"); dir.remove("inkRFIDTime.txt"); - res = true; + res = 1; } } else if (status.addedSolvent && status.cardSolvent) { if (sysPara && solventFlag) { @@ -1164,8 +1164,8 @@ bool RFIDManager::waitStatus() QDir dir("/home/plg"); dir.remove("solventRFIDTime.txt"); + res = 2; } - res = true; } return res; @@ -1240,19 +1240,24 @@ void RFIDManager::slt_timerHandle() void RFIDManager::slt_intervalTimerHandle() { updateStatus(); - if (status.addedInk && !status.cardInk && status.firstPromptInkCard) { // 提醒频率定为5s一次,后续可能加界面显示 - emit sig_showMsg(tr("请及时刷墨水卡")); + if(status.addedInk && !status.cardInk && status.firstPromptInkCard){ + emit sig_showMsg(tr("请及时使用墨水盒附带的IC卡激活墨水盒")); status.firstPromptInkCard = false; - } - else if(status.addedSolvent && !status.cardSolvent && status.firstPromptSolventCard) { - emit sig_showMsg(tr("请及时刷溶剂卡")); + } + + if(status.addedSolvent && !status.cardSolvent && status.firstPromptSolventCard){ + emit sig_showMsg(tr("请及时使用溶剂盒附带的IC卡激活溶剂盒")); status.firstPromptSolventCard = false; } //不需要通知先后,成功即可 - if (waitStatus()) { - LogInfo::setRunStatusText(tr("sucess")); -// totalTime = 0; + auto res = waitStatus(); + if (res == 1) { + LogInfo::setRunStatusText("Ink progress finished, and the ink card has been used."); + return; + } + if (res == 2) { + LogInfo::setRunStatusText("Solvent progress finished, and the solvent card has been used."); return; } } diff --git a/rfid/rfidmanager.h b/rfid/rfidmanager.h index 768335c..941fa6b 100644 --- a/rfid/rfidmanager.h +++ b/rfid/rfidmanager.h @@ -107,7 +107,7 @@ private: StatuStruct status; void updateStatus(); QTimer* warningTimer = nullptr; - bool waitStatus(); + int waitStatus(); bool waitCard(); signals: void sig_showMsg(QString msg); diff --git a/scene/BarcodeEditor.cpp b/scene/BarcodeEditor.cpp index 1a8cdea..060a7d9 100644 --- a/scene/BarcodeEditor.cpp +++ b/scene/BarcodeEditor.cpp @@ -57,9 +57,8 @@ BarcodeEditor::BarcodeEditor(QWidget *parent) : connect(ui->cbBoxType, QOverload::of(&QComboBox::currentIndexChanged), this, &BarcodeEditor::onTypeChanged); - connect(&m_barcodeFormatEditor, &DlgBarcodeFormat::accepted, this, &BarcodeEditor::onBarcodeFormatConfirmed); - connect(&m_qrcodeFormatEditor, &DlgQrcodeFormat::accepted, this, &BarcodeEditor::onQrcodeFormatConfirmed); - + m_barcodeFormatEditor.setParent(this, m_barcodeFormatEditor.windowFlags()); + m_qrcodeFormatEditor.setParent(this, m_qrcodeFormatEditor.windowFlags()); m_barcodeFormatEditor.setWindowModality(Qt::WindowModality::WindowModal); m_qrcodeFormatEditor.setWindowModality(Qt::WindowModality::WindowModal); m_barcodeFormatEditor.setWindowTitle(tr("BarCode Format")); @@ -294,11 +293,15 @@ void BarcodeEditor::onBtnFormatClicked() { if(m_vm.type == BARCODE_TYPE_BARCODE) { m_barcodeFormatEditor.setViewModel(m_vm.format.value()); - m_barcodeFormatEditor.show(); + if (m_barcodeFormatEditor.exec() == QDialog::Accepted) { + onBarcodeFormatConfirmed(); + } } else { m_qrcodeFormatEditor.setViewModel(m_vm.format.value()); - m_qrcodeFormatEditor.show(); + if (m_qrcodeFormatEditor.exec() == QDialog::Accepted) { + onQrcodeFormatConfirmed(); + } } } diff --git a/scene/DlgBarcodeFormat.ui b/scene/DlgBarcodeFormat.ui index 4fdb58d..c5b05fd 100644 --- a/scene/DlgBarcodeFormat.ui +++ b/scene/DlgBarcodeFormat.ui @@ -359,6 +359,15 @@ QSpinBox::down-arrow { + + BarCodeType + comboBoxInkColor + BarCodeHeigh + BarCodeScale + BarCodeDot + checkBoxAddText + checkBtn + diff --git a/scene/pictextitem.cpp b/scene/pictextitem.cpp index c4e1808..9d2eee5 100644 --- a/scene/pictextitem.cpp +++ b/scene/pictextitem.cpp @@ -404,7 +404,7 @@ QImage PicTextItem::strToImage(const QString &str) QPointF PicTextItem::clampItemPos(const QPointF &p) { return QPointF (std::min(qreal(scene()->width() - boundingRect().width()), std::max(0.0, p.x())), - std::min(qreal(scene()->height() - boundingRect().height()), std::max(0.0, p.y()))); + std::min((qreal(scene()->height() + 1) - boundingRect().height()), std::max(0.0, p.y()))); } TextItemModel TextItemModel::fromItem(PicTextItem *item) diff --git a/spanish.ts b/spanish.ts index 91a7d4e..de146bd 100644 --- a/spanish.ts +++ b/spanish.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/systemsetting.ui b/systemsetting.ui index 62946a4..77e8bbd 100644 --- a/systemsetting.ui +++ b/systemsetting.ui @@ -22,7 +22,7 @@ Form - + 10 @@ -31,781 +31,871 @@ 430 - - - QLayout::SetDefaultConstraint + + QScrollBar:vertical { + width: 30px; /* 滚动条宽度 */ + margin: 0px; /* 为上下箭头预留空间 */ + +} + + QScrollBar::handle:vertical { + min-height: 30px; + border-radius: 5px; + background-color: rgb(205, 205, 205); + } + + + Qt::ScrollBarAlwaysOn + + + Qt::ScrollBarAlwaysOff + + + true + + + + + 0 + 0 + 749 + 582 + - - 3 - - - 3 - - - 3 - - - 3 - - - - - 电机电流: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - 晶振电压(%): - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - - - - °C - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - - - - - - - 回收泵力度(%): - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 压力: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 喷嘴直径: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 脉冲计数器: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 30 - - - 59 - - - - - - - - 0 - 0 - - - + + + QLayout::SetDefaultConstraint + + + 3 + + + 3 + + + 3 + + + 50 + + + - 64K + - - + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 99 + + + 50 + + + + + + + true + + + + 0 + 0 + + + + 0 + + + 70 + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + + 5 + + + + + 10 + + + + + 15 + + + + + 20 + + + + + 25 + + + + + 30 + + + + + 40 + + + + + 45 + + + + + 50 + + + + + 55 + + + + + 60 + + + + + + - 83K + 电机电流: - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + 500 + + + 3800 + + + + + - 96K + - - + + + + - 128K + 隔膜位置偏移: - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 新晶振 + 压力: - - - - - - - 晶振频率: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 粘度: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 80 - - - 750 - - - 10 - - - 300 - - - - - - - 高压包容差: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 2 - - - 99 - - - 10 - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 99 - - - 50 - - - - - - - - 0 - 0 - - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 1 + + + 59 + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + + 0 + + + + + 0.6 + + + + + 1.0 + + + + + 1.6 + + + + + 2.0 + + + + + + - 50 (UM) + - - + + + + - 60 (UM) + 回收泵力度(%): - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 70 (UM) + 喷嘴直径: - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 0 + 晶振频率: - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 0.6 + - - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 80 + + + 750 + + + 10 + + + 300 + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 2 + + + 99 + + + 10 + + + + + - 1.0 + 晶振电压(%): - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 1.6 + 粘度泵动作间隔(秒): - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 2.0 + + + + + + + + + 0 + 0 + + + + 5000 + + + + + + + + 0 + 0 + + + + + 0 + 31 + - - - - - - - - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 1 - - - 59 - - - - - - - true - - - - 0 - 0 - - - - 0 - - - 70 - - - - - - - - 0 - 0 - - - - 500 - - - 3800 - - - - - - - - 0 - 0 - - - - 5000 - - - - - - - - - - - - - - 频率修正: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 粘度泵动作间隔(秒): - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Hz - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - 隔膜位置: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - -80000 - - - 80000 - - - 0 - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 5 - - - 300 - - - 5 - - - 50 - - - - - - - 墨水温度: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 粘度校正(%): - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 喷头温度: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - - - - 回收槽开关时间: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 隔膜位置偏移: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - - 16777215 - 37 - - - - 5 + 启用回收泵算法 - - + + + + - 10 + °C - - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + - 15 + 频率修正: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 0 + 31 + - - - 20 + 检测回收槽 - - + + + + + + + 0 + 0 + + + + + 50 (UM) + + + + + 60 (UM) + + + + + 70 (UM) + + + + + + - 25 + - - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + 25 + + + + + - 30 + 粘度校正(%): - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 40 + - - + + + + + + + 0 + 0 + + + + + 64K + + + + + 83K + + + + + 96K + + + + + 128K + + + + + 新晶振 + + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 30 + + + 59 + + + + + - 45 + 隔膜位置: - - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + - 50 + °C - - + + + + - 55 + - - + + + + - 60 + Hz - - - - - - - - - - - - - - - - - - - - - - - - - - - - Qt::LeftToRight - - - 风扇开启温度: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 37 - - - - 25 - - - - - - - °C - - - - - - - - 0 - 0 - - - - - 0 - 31 - - - - 启用回收泵算法 - - - - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + Qt::LeftToRight + + + 风扇开启温度: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 喷头温度: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 墨水温度: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 高压包容差: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 粘度: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 31 + + + + 相位故障不打印 + + + + + + + + 0 + 0 + + + + + 0 + 37 + + + + + 16777215 + 37 + + + + 5 + + + 300 + + + 5 + + + 50 + + + + + + + + 0 + 31 + + + + 不检测喷头盖 + + + + + + + + + + + + + + + 0 + 0 + + + + -80000 + + + 80000 + + + 0 + + + + + + + 脉冲计数器: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + + + + + + + + 0 + 31 + + + + 高压故障关闭回收槽 + + + + + + + 回收槽开关时间: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + diff --git a/testprintwidget.cpp b/testprintwidget.cpp index 1b29e85..d2a570d 100644 --- a/testprintwidget.cpp +++ b/testprintwidget.cpp @@ -452,320 +452,56 @@ void TestPrintWidget::onSaveASFile(QString filename,bool Flag){// use for dialog * */ void TestPrintWidget::onFileOpen(QString filePath,bool reviewFlag){ - if(editMode==SCENE) { - if(filePath.endsWith(".xml")) - { - QFile file(filePath); - - if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { // 以只写模式打开文件 - - if(reviewFlag) - xmlfileName=filePath; - - QXmlStreamReader reader(&file); - if(!m_CreateImageFlag) - { - pPicScene->clear(); - pViewer->viewport()->update(); - unsigned char SpecialVarEnable = 0; - if (sysPara) sysPara->devOp->fpgaWr(0xa4b0,(unsigned char *)&SpecialVarEnable,1); - } - // 解析 XML,直到结束 - while (!reader.atEnd()) { - - // 读取下一个元素 - QXmlStreamReader::TokenType nType = reader.readNext(); - - switch (nType) { - case QXmlStreamReader::StartDocument: { // 开始文档 - //qDebug() << QString::fromLocal8Bit("********** 开始文档(XML 声明) ********** "); - // XML 声明 - QString strVersion = reader.documentVersion().toString(); - QString strEncoding = reader.documentEncoding().toString(); - bool bAlone = reader.isStandaloneDocument(); - //qDebug() << QString::fromLocal8Bit("版本:%1 编码:%2 Standalone:%3") - // .arg(strVersion).arg(strEncoding).arg(bAlone) << "\r\n"; - break; - } - case QXmlStreamReader::Comment: { // 注释 - //qDebug() << QString::fromLocal8Bit("********** 注释 ********** "); - QString strComment = reader.text().toString(); - //qDebug() << strComment << "\r\n"; - break; - } - case QXmlStreamReader::ProcessingInstruction: { // 处理指令 - //qDebug() << QString::fromLocal8Bit("********** 处理指令 ********** "); - QString strProcInstr = reader.processingInstructionData().toString(); - //qDebug() << strProcInstr << "\r\n"; - break; - } - case QXmlStreamReader::DTD: { // DTD - //qDebug() << QString::fromLocal8Bit("********** DTD ********** "); - QString strDTD = reader.text().toString(); - QXmlStreamNotationDeclarations notationDeclarations = reader.notationDeclarations(); // 符号声明 - QXmlStreamEntityDeclarations entityDeclarations = reader.entityDeclarations(); // 实体声明 - // DTD 声明 - QString strDTDName = reader.dtdName().toString(); - QString strDTDPublicId = reader.dtdPublicId().toString(); // DTD 公开标识符 - QString strDTDSystemId = reader.dtdSystemId().toString(); // DTD 系统标识符 - //qDebug() << QString::fromLocal8Bit("DTD : %1").arg(strDTD); - //qDebug() << QString::fromLocal8Bit("DTD 名称 : %1").arg(strDTDName); - //qDebug() << QString::fromLocal8Bit("DTD 公开标识符 : %1").arg(strDTDPublicId); - //qDebug() << QString::fromLocal8Bit("DTD 系统标识符 : %1").arg(strDTDSystemId); - //qDebug() << "\r\n"; - - break; - } - case QXmlStreamReader::StartElement: { // 开始元素 - QString strElementName = reader.name().toString(); - if (QString::compare(strElementName, "VBfiles") == 0) { // 根元素 - //qDebug() << QString::fromLocal8Bit("********** 开始元素 ********** "); - QXmlStreamAttributes attributes = reader.attributes(); - if (attributes.hasAttribute("Version")) { - QString strVersion = attributes.value("Version").toString(); - //qDebug() << QString::fromLocal8Bit("属性:Version(%1)").arg(strVersion); - } - - parseVbfile(reader, reviewFlag); - } - - break; - } - - case QXmlStreamReader::EndDocument: { //*/*/ 结束文档 - //qDebug() << QString::fromLocal8Bit("********** 结束文档 ********** "); - break; - } - } - } - - if (reader.hasError()) { // 解析出错 - qDebug() << QString::fromLocal8Bit("错误信息:%1 行号:%2 列号:%3 字符位移:%4").arg(reader.errorString()).arg(reader.lineNumber()).arg(reader.columnNumber()).arg(reader.characterOffset()); - } - //qDebug()<<"open done"; - file.close(); // 关闭文件 - //snprintf(sysPara->para.lastOpenedFileName,sizeof(sysPara->para.lastOpenedFileName),"%s",filePath.toLatin1().constData()); - if(!m_CreateImageFlag)//生成图片显示 - { - if(sysPara) - { - sysPara->sysFile =filePath; - sysPara->loadParaFromFile(); - //qDebug()<<"textedit txt mode onFileOpen" << sysPara->sysFile; - snprintf(sysPara->para.lastOpenedFileName,sizeof(sysPara->para.lastOpenedFileName),"%s",filePath.toLatin1().constData()); - } - } - } - // 主动暂停打印 - if(reviewFlag) { - emit sig_stopPrint(); - - // xmlfileName 会被 saveLastWork 更改,因此此处暂存变量, 在执行后恢复 - qDebug() << "xmlfileName:" << xmlfileName; - auto filename = xmlfileName; - disconnect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),0,0); - connect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),this,SLOT(onSaveASFile(QString,bool)), Qt::DirectConnection); - dialogSaveFile->saveLastWork(); - xmlfileName = filename; - disconnect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),0,0); - } - - emit sendButtonClickedSignal(20); //打开文件完成跳转到主窗口 - } + if(editMode != SCENE || !filePath.endsWith(".xml")) { + return; } -} -extern QStringList stringListRecive; - -void TestPrintWidget::parseVbfile(QXmlStreamReader &reader, bool loadPrintSetting) { - // int textItemPosX; - // int textItemPosY; - // textItemPosX = picText->pos().x() - pPicScene->itemsBoundingRect().x(); - // textItemPosY = picText->pos().y() - pPicScene->itemsBoundingRect().y(); - float pos_x,pos_y; - bool Condition= false ; - int CatchStartValue = -1; - int CatchValue = -1; - - QXmlStreamAttributes itemAttrs; - - while (!reader.atEnd()) { - reader.readNext(); - if (reader.isStartElement()) { // 开始元素 - QString strElementName = reader.name().toString(); - if (QString::compare(strElementName, "VBfile") == 0) { - //qDebug() << QString::fromLocal8Bit("********** 开始元素 ********** "); - } else if (QString::compare(strElementName, QString("pointer_x")) == 0) { // 方式一 - reader.readNext(); - if (reader.isCharacters()) { - pos_x = reader.text().toString().toDouble(); - //qDebug() << QString("pointer_x:%1").arg(reader.text().toString()); - } - } else if (QString::compare(strElementName, QString("pointer_y")) == 0) { // 方式二 - pos_y = reader.readElementText().toDouble(); - //qDebug() << QString("pointer_y:%1").arg(reader.readElementText()); - } - else if (QString::compare(strElementName, QString("Condition")) == 0) { - Condition = reader.readElementText().toInt() ? true : false; - } - else if (QString::compare(strElementName, QString("CatchStartValue")) == 0) { - CatchStartValue = reader.readElementText().toInt(); - } - else if (QString::compare(strElementName, QString("CatchValue")) == 0) { - CatchValue = reader.readElementText().toInt(); - } - else if (QString::compare(strElementName, QString("html_src")) == 0) { - //qDebug() << QString("html_src:%1").arg(reader.readElementText()); - } - else if(strElementName == "itemAttrs") { - itemAttrs = reader.attributes(); - } else if(strElementName == "PrintSettings" && loadPrintSetting) { - - // 加载打印设置 - QXmlStreamAttributes attrs = reader.attributes(); - PrintSettingModel model; - PrintSettingModel::loadFromXml(model, attrs); - if(m_printSetting) { - m_printSetting->setModel(model); - m_printSetting->applyPrintSettingsToSysPara(false); - } - reader.skipCurrentElement(); - } - - } else if (reader.isEntityReference()) { // 实体引用 - QString strName = reader.name().toString(); - QString strText = reader.text().toString(); - //qDebug() << QString("EntityReference : %1(%2)").arg(strName).arg(strText); - } else if (reader.isCDATA()) { // CDATA - QString strCDATA = reader.text().toString(); - //qDebug() << QString("CDATA : %1").arg(strCDATA); - PicTextItem *pPictText = nullptr; - SourceType sourceType = SourceType::UNKNOWN; - bool ok = false; - sourceType = SourceType(itemAttrs.value("sourceType").toInt(&ok)); - switch(sourceType) { - case IMAGE: - pPictText = new PicImageItem(0, 0); - break; - case DATETIME: - pPictText = new PicDateItem(); - break; - case SCHEDULE_SHIFT: - pPictText = new PicScheduleShiftItem(); - break; - case CODE: - pPictText = new PicCodeItem(); - break; - - case COUNTER: - pPictText = new PicCounterItem(); - break; - - case TEXT: - default: - pPictText = new PicTextItem(0, 0, sourceType); - break; - } - - pPictText->setAttrs(itemAttrs); - - if(m_CreateImageFlag) - { - m_pSavePicScene->addItem(pPictText); - } - else - { - pPicScene->addItem(pPictText); - } - QFont font = pPictText->font(); - // font.setLetterSpacing(QFont::AbsoluteSpacing,sysPara->para.textEditCharSpace); - pPictText->setPos(pos_x,pos_y); - pPictText->SpecialConditions = Condition; - pPictText->CatchCnt1StartValue = CatchStartValue; - pPictText->CatchCnt1CurrValue = CatchValue; - - itemAttrs.clear(); - - // Condition= false ; - // CatchValue = -1; - //LogInfo::setRunStatusText(tr("接收文件解析::2")); - if(sysPara!=nullptr && !sysPara->status.forTemplateUse || m_CreateImageFlag) - { - pPictText->setHtml(strCDATA); - } - - else - { - //qDebug() << tr("接收文件解析:"); - //LogInfo::setRunStatusText(tr("接收文件解析::3")); - //stringListRecive << "aaaa" << "bbbb" << "cccc"; - if(strCDATA.contains("#1111") || strCDATA.contains("")) - { - if(stringListRecive.size() > 0) - { - if(strCDATA.contains("#1111")) - { - strCDATA.replace("#1111",stringListRecive.at(0).toStdString().c_str()); - } - else if(strCDATA.contains("")) - { -// emit generateQRCode(stringListRecive.at(0)); - strCDATA.replace("modbusQR#01.bmp","modbusQR.bmp"); - } - } - - } - else if(strCDATA.contains("#2222") || strCDATA.contains("")) - { - if(stringListRecive.size() > 1) - { - if(strCDATA.contains("#2222")) - { - strCDATA.replace("#2222",stringListRecive.at(1).toStdString().c_str()); - } - else if(strCDATA.contains("")) - { -// emit generateQRCode(stringListRecive.at(1)); - strCDATA.replace("modbusQR#02.bmp","modbusQR.bmp"); - } - } - } - else if(strCDATA.contains("#3333") || strCDATA.contains("")) - { - if(stringListRecive.size() > 2) - { - if(strCDATA.contains("#3333")) - { - strCDATA.replace("#3333",stringListRecive.at(2).toStdString().c_str()); - } - else if(strCDATA.contains("")) - { -// emit generateQRCode(stringListRecive.at(2)); - strCDATA.replace("modbusQR#03.bmp","modbusQR.bmp"); - } - } - } - pPictText->setHtml(strCDATA); - } - Condition= false ; - CatchValue = -1; - CatchStartValue = -1; - - reader.readNext(); - if (reader.isCharacters()) { - QString strCharacters = reader.text().toString(); - //qDebug() << QString("Characters : %1").arg(strCharacters); - } - } else if (reader.isEndElement()) { // 结束元素 - QString strElementName = reader.name().toString(); - if (QString::compare(strElementName, "Blogs") == 0) { - //qDebug() << QString::fromLocal8Bit("********** 结束元素 ********** "); - break; // 跳出循环(解析 QXmlStreamReader::EndDocument) - } else if (QString::compare(strElementName, "Blog") == 0) { - //qDebug() << QString::fromLocal8Bit("********** 结束元素 ********** "); - } - } + if(reviewFlag) { + xmlfileName = filePath; } + + pViewer->viewport()->update(); + unsigned char SpecialVarEnable = 0; + if (sysPara) { + sysPara->devOp->fpgaWr(0xa4b0,(unsigned char *)&SpecialVarEnable,1); + } + + PrintSettingModel loadedPrintSetting; + bool ok = PicSceneLoader::loadSceneFromFile(filePath, + pPicScene, + reviewFlag ? &loadedPrintSetting : nullptr); + if(!ok) { + qWarning() << "Failed to load file:" << filePath; + return; + } + + if(reviewFlag && m_printSetting) { + m_printSetting->setModel(loadedPrintSetting); + m_printSetting->applyPrintSettingsToSysPara(false); + } + + if(sysPara) + { + sysPara->sysFile = filePath; + sysPara->loadParaFromFile(); + snprintf(sysPara->para.lastOpenedFileName,sizeof(sysPara->para.lastOpenedFileName),"%s",filePath.toLatin1().constData()); + } + + // 主动暂停打印 + if(reviewFlag) { + emit sig_stopPrint(); + + // xmlfileName 会被 saveLastWork 更改,因此此处暂存变量, 在执行后恢复 + qDebug() << "xmlfileName:" << xmlfileName; + auto filename = xmlfileName; + disconnect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),0,0); + connect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),this,SLOT(onSaveASFile(QString,bool)), Qt::DirectConnection); + dialogSaveFile->saveLastWork(); + xmlfileName = filename; + disconnect(dialogSaveFile,SIGNAL(saveFile(QString,bool)),0,0); + } + + emit sendButtonClickedSignal(20); //打开文件完成跳转到主窗口 } void TestPrintWidget::addCodeItem(QString str) diff --git a/testprintwidget.h b/testprintwidget.h index 58345e0..038b2f9 100644 --- a/testprintwidget.h +++ b/testprintwidget.h @@ -142,8 +142,6 @@ private: QTextEdit* m_TextEdit = nullptr; QLineEdit* m_LineEdit; - void parseVbfile(QXmlStreamReader &reader, bool loadPrintSetting = false); - /** * @brief 对 on_KeyUp_clicked 等按键事件的简便包装 * diff --git a/thai.ts b/thai.ts index 91a7d4e..de146bd 100644 --- a/thai.ts +++ b/thai.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/turkey.ts b/turkey.ts index 91a7d4e..de146bd 100644 --- a/turkey.ts +++ b/turkey.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成 diff --git a/vena.ts b/vena.ts index 91a7d4e..de146bd 100644 --- a/vena.ts +++ b/vena.ts @@ -1958,17 +1958,18 @@ + 自检完成!!! - + 警告 - + 提示 @@ -1988,19 +1989,19 @@ - - - + + + 正在准备重启,请等待%1秒...... - + ink Warning at: %1 - + solvent Warning at: %1 @@ -2011,75 +2012,71 @@ + 停止打印,自动关闭高压. - - + + 电机故障 - + 回收槽到头 - - + + 回收槽卡住或者回收槽开关时间设置错误 - - 错误!粘度计故障:检测不到上位灯 - - - - + 压力过高,请检查管路是否堵塞,然后点击故障恢复按钮 - + 请刷墨水卡,请使用原厂墨水耗材,否则机器将在%1小时后禁止使用! - + 墨水液位报警超过48小时,机器无法正常打印,请先添加原厂墨水再刷墨水卡,以恢复喷码机的正常工作! - + 请刷溶剂卡,请使用原厂溶剂耗材,否则机器将在%1小时后禁止使用! - + 溶剂液位报警超过48小时,机器无法正常打印,请先添加溶剂再刷溶剂卡以恢复喷码机的正常工作! - + 保养期还有%1天到期,请及时保养,否则喷码机容易损坏 - + 保养期已超过%1天,请进行保养以恢复喷码机的正常使用 - + 当前正在使用 %1 确定要新建文件吗? - + 刷卡倒计时起始时间文件不存在 @@ -3052,14 +3049,14 @@ - + 喷嘴开启 - + 喷嘴关闭 @@ -3081,9 +3078,9 @@ - - - + + + 警告 @@ -3115,240 +3112,240 @@ - - + + 变量数大于8个,某些变量将不起作用!!! - + 请减少信息中的变量(或计数器)数量. - - - - - + + + + + 错误 - + 喷印间隔过短,应高于%1! - + 喷头盖未关,请先关喷头盖! - + 墨线未开,请先开墨线开关! - + 当前总列数 %1 ,支持的总列数为 %2,请减少打印串的长度 - + 打印耗时 %1ms ,触发间隔 :%2ms ,触发间隔至少应当大于打印耗时3ms - + 喷嘴已开启 - + 喷嘴开启中 - + 喷嘴已关闭 - + 喷嘴关闭中 - - + + 正在排气... - - + + 高压故障 - - + + 相位故障 - - + + 粘度故障 - - + + 回收故障 - - + + 溶液液位 - - + + 墨水液位 - - + + 墨水缸满 - - + + 墨线开关 - + 正常 - + 提示 - + 随机码文本将展出到U盘,请插入U盘 - - + + 回收槽之前发生阻塞或回收槽时间设置错误,是否强制将当前位置设为到顶位置? - - + + %1.%2 - + 墨水缸满报警 - + 墨水液位报警 - + 溶剂液位报警 - - + + 高压故障,暂停打印 - + 高压故障,暂停打印. - + 高压故障,关回收槽 - + 高压故障,关回收槽和墨线 - - + + 回收故障,关闭回收槽,关墨线 - + 回收故障. - + 回收异常,墨线可能偏离.(%1) - + 正在喷印....... - + 相位故障:飞行时间错误! - + 相位故障:相位检测错误! - - - + + + 相位故障,准备关机 - - - + + + 相位故障,暂停打印 - + 相位故障,屏蔽DAC输出 - - + + 相位故障,屏蔽充电 @@ -4322,70 +4319,75 @@ p, li { white-space: pre-wrap; } - - Cmd[%1]: %2 - - - - + 写数据到数据块6 - + 已经刷过墨水卡,需添加墨水 - + 不需要刷墨水卡! - + 确认要刷墨水卡吗? - + 确认要刷墨水卡吗? %1 秒后将自动确认 - + 刷墨水卡成功! - + + 刷墨水卡成功, 请及时将该墨水卡对应的墨水添加到机器中 + + + + 刷超级墨水卡失败,请联系厂商。 - + 已经刷过溶剂卡,需添加溶剂 - + 不需要刷溶剂卡! - + 确认要刷溶剂卡吗? - + 确认要刷溶剂卡吗? %1 秒后将自动确认 - + 刷溶剂卡成功! + + + 刷溶剂卡成功, 请及时将该溶剂卡对应的溶剂添加到机器中 + + 刷超级溶剂水卡失败,请联系厂商。 @@ -4473,17 +4475,13 @@ p, li { white-space: pre-wrap; } - 请及时刷墨水卡 + 请及时使用墨水盒附带的IC卡激活墨水盒 + 请及时刷墨水卡 - - 请及时刷溶剂卡 - - - - - sucess + + 请及时使用溶剂盒附带的IC卡激活溶剂盒 @@ -4738,23 +4736,23 @@ p, li { white-space: pre-wrap; } - + 齿轮泵关 - + 齿轮泵开 - + 回收槽开 - - + + @@ -4767,63 +4765,63 @@ p, li { white-space: pre-wrap; } - + 回收槽关 - + 粘度泵 - + 混合阀 - + 回收泵 - + 主墨泵 - + 压缩机 - + 泄压阀 - + 墨水阀 - + 循环阀 - + 环境配置 - + 重启 - + 排气 @@ -5222,314 +5220,334 @@ p, li { white-space: pre-wrap; } - + 电机电流: - + 晶振电压(%): - - + + °C - + 回收泵力度(%): - + 压力: - + 喷嘴直径: - + + 相位故障不打印 + + + + + 不检测喷头盖 + + + + 脉冲计数器: - + 64K - + 96K - + 128K - + 新晶振 - + 晶振频率: - + 粘度: - + 高压包容差: - + 50 (UM) - + 60 (UM) - + 70 (UM) - + 0 - + 0.6 - + 1.0 - + 1.6 - + 2.0 - + 频率修正: - + 粘度泵动作间隔(秒): - + Hz - + 隔膜位置: - + 墨水温度: - + 粘度校正(%): - + 喷头温度: - + 回收槽开关时间: - + 隔膜位置偏移: - + 5 - + 10 - + 15 - + 20 - + 25 - + 30 - + 40 - + 45 - + 50 - + 55 - + 60 - + + 检测回收槽 + + + + 风扇开启温度: - + 启用回收泵算法 - + 重置高压 - + 喷嘴逆清洗 - + 83K - + + 高压故障关闭回收槽 + + + + ✓ - + ✕ - + 错误 - + 实际频率不能为%1 - - + + 提示 - + 应用成功 - + 自动清洗时间约为一分钟,然后自动停止 - + 开始清洗 - + 停止清洗 - + 正在喷嘴逆清洗...... - + 清洗完成 - + Application - + 是否更新高压包电流数据? - + Oscillator voltage %1 --- 最长高电平时钟 %2 - + 最佳晶振电压完成