diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkwindow.cpp b/softwareDirectory/AutoVerScheme/checkwindow.cpp index 99738d8..8f341d0 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.cpp +++ b/softwareDirectory/AutoVerScheme/checkwindow.cpp @@ -8,6 +8,7 @@ #include "formcheckpoint.h" #include "multiinputdialog.h" #include "formgageresult.h" +#include "dialogdcstabinput.h" CheckWindow::CheckWindow(QWidget *parent) : QWidget(parent), @@ -1376,6 +1377,7 @@ } SendDevice(instrcutLib,Engine); + count++; } } void CheckWindow::connectDevice(){ @@ -1736,18 +1738,34 @@ } } } - InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); - SendDevice(instrcutLibstan,&standardEngine,true); - //被检设备读数 - BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); - InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); - SendDevice(instrcutLib,&deviceEngine); - sRet=ReadDevice(instrcutLib,&deviceEngine); - if(sRet!=""){ - TempValue.clear(); - TempValue.append("单位"); - idx= getIndexByHeader(constsLable,TempValue); - dStdValue = transUnit(sRet,dataRes[i][idx]); + if(iEquipType==2){ + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源输出")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("可编程交流电源"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("可编程交流电源",constsLable); + SendDevice(instrcutLibRole,&engineRole); + BaseCommonApi::SaveLogInfo(1,QString("被检电源输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,constsLable); + SendDevice(instrcutLib,&deviceEngine); + BaseCommonApi::SaveLogInfo(1,QString("电子负载")); + engineRole=getVisaCommbyRoleName("电子负载"); //角色 + instrcutLibRole=getCmdByRoleName("电子负载",constsLable); + SendDevice(instrcutLibRole,&engineRole); + } + else + { + InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); + SendDevice(instrcutLibstan,&standardEngine,true); + //被检设备读数 + BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); + SendDevice(instrcutLib,&deviceEngine); + sRet=ReadDevice(instrcutLib,&deviceEngine); + if(sRet!=""){ + TempValue.clear(); + TempValue.append("单位"); + idx= getIndexByHeader(constsLable,TempValue); + dStdValue = transUnit(sRet,dataRes[i][idx]); + } } autoAdujstData(constsLable,i,dStdValue,dataRes); CheckBackColorUpdate(false,i); @@ -1886,14 +1904,41 @@ //Delay_MSec(2000); } if(iEquipType==2){ - if(qIsFinite(dStdValue)){ - bool bOk = false; - dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); - if (bOk) { - //sRet = QString::number(dStdValue); - }else{ - dStdValue=0; - } +// if(qIsFinite(dStdValue)){ +// bool bOk = false; +// dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); +// if (bOk) { +// //sRet = QString::number(dStdValue); +// }else{ +// dStdValue=0; +// } +// } + QString sTips= "请调节电压和电流至额定状态后,点击测量。"; + if(sLabel=="电源电压调整率") + sTips = "请调节电压和电流至额定状态后,点击测量。"; + else if(sLabel=="负载调整率"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("负载情况"))); + if(dataRes[i][idx]=="满载") + sTips="请调节仪器至满载状态后,点击测量。"; + else + sTips="请调节仪器至空载状态后,点击测量。"; + }else if(sLabel=="电压示值误差"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("调节输出至额定电压%1%2,并测量被检电源的实际电压,记录到蓝色区域。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + }else if(sLabel=="电流示值误差(直接测量)"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("请调节仪器至%1%2额定电流状态,且电流接线状态正确后,点击测量按钮。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + } + + DialogDCStabInput dlg(this,sLabel,sTips); + dlg.dataRes = &dataRes[i]; + stabInputdlg = &dlg; + connect(&dlg,SIGNAL(readData(QString)),this,SLOT(readDCStabData(QString))); + dlg.setModal(true); + if(dlg.exec()==QDialog::Accepted){ + dStdValue = dlg.getInputData(); } if(sLabel=="电压示值误差"||sLabel=="电流示值误差(直接测量)"||sLabel=="电流示值误差(间接测量)"){ newdStdValue= TranDecimals(sLabel,dataRes[i],dStdValue); @@ -2696,3 +2741,21 @@ } } +void CheckWindow::readDCStabData(QString sLabel){ + qDebug() << sLabel; + QString sRole = "数字多用表"; + if(sLabel=="纹波电压") + sRole="示波器"; + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源读取数值")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("sRole"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("sRole",sLabel); + QString sRet = ReadDevice(instrcutLibRole,&engineRole); + //sRet="0.005"; + if(sRet!=""){ + QStringList TempValue; + TempValue.append("单位"); + int idx= getIndexByHeader(sLabel,TempValue); + double dStdValue = transUnit(sRet,stabInputdlg->dataRes->at(idx)); + stabInputdlg->setInputData(dStdValue); + } +} diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkwindow.cpp b/softwareDirectory/AutoVerScheme/checkwindow.cpp index 99738d8..8f341d0 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.cpp +++ b/softwareDirectory/AutoVerScheme/checkwindow.cpp @@ -8,6 +8,7 @@ #include "formcheckpoint.h" #include "multiinputdialog.h" #include "formgageresult.h" +#include "dialogdcstabinput.h" CheckWindow::CheckWindow(QWidget *parent) : QWidget(parent), @@ -1376,6 +1377,7 @@ } SendDevice(instrcutLib,Engine); + count++; } } void CheckWindow::connectDevice(){ @@ -1736,18 +1738,34 @@ } } } - InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); - SendDevice(instrcutLibstan,&standardEngine,true); - //被检设备读数 - BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); - InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); - SendDevice(instrcutLib,&deviceEngine); - sRet=ReadDevice(instrcutLib,&deviceEngine); - if(sRet!=""){ - TempValue.clear(); - TempValue.append("单位"); - idx= getIndexByHeader(constsLable,TempValue); - dStdValue = transUnit(sRet,dataRes[i][idx]); + if(iEquipType==2){ + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源输出")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("可编程交流电源"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("可编程交流电源",constsLable); + SendDevice(instrcutLibRole,&engineRole); + BaseCommonApi::SaveLogInfo(1,QString("被检电源输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,constsLable); + SendDevice(instrcutLib,&deviceEngine); + BaseCommonApi::SaveLogInfo(1,QString("电子负载")); + engineRole=getVisaCommbyRoleName("电子负载"); //角色 + instrcutLibRole=getCmdByRoleName("电子负载",constsLable); + SendDevice(instrcutLibRole,&engineRole); + } + else + { + InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); + SendDevice(instrcutLibstan,&standardEngine,true); + //被检设备读数 + BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); + SendDevice(instrcutLib,&deviceEngine); + sRet=ReadDevice(instrcutLib,&deviceEngine); + if(sRet!=""){ + TempValue.clear(); + TempValue.append("单位"); + idx= getIndexByHeader(constsLable,TempValue); + dStdValue = transUnit(sRet,dataRes[i][idx]); + } } autoAdujstData(constsLable,i,dStdValue,dataRes); CheckBackColorUpdate(false,i); @@ -1886,14 +1904,41 @@ //Delay_MSec(2000); } if(iEquipType==2){ - if(qIsFinite(dStdValue)){ - bool bOk = false; - dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); - if (bOk) { - //sRet = QString::number(dStdValue); - }else{ - dStdValue=0; - } +// if(qIsFinite(dStdValue)){ +// bool bOk = false; +// dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); +// if (bOk) { +// //sRet = QString::number(dStdValue); +// }else{ +// dStdValue=0; +// } +// } + QString sTips= "请调节电压和电流至额定状态后,点击测量。"; + if(sLabel=="电源电压调整率") + sTips = "请调节电压和电流至额定状态后,点击测量。"; + else if(sLabel=="负载调整率"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("负载情况"))); + if(dataRes[i][idx]=="满载") + sTips="请调节仪器至满载状态后,点击测量。"; + else + sTips="请调节仪器至空载状态后,点击测量。"; + }else if(sLabel=="电压示值误差"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("调节输出至额定电压%1%2,并测量被检电源的实际电压,记录到蓝色区域。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + }else if(sLabel=="电流示值误差(直接测量)"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("请调节仪器至%1%2额定电流状态,且电流接线状态正确后,点击测量按钮。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + } + + DialogDCStabInput dlg(this,sLabel,sTips); + dlg.dataRes = &dataRes[i]; + stabInputdlg = &dlg; + connect(&dlg,SIGNAL(readData(QString)),this,SLOT(readDCStabData(QString))); + dlg.setModal(true); + if(dlg.exec()==QDialog::Accepted){ + dStdValue = dlg.getInputData(); } if(sLabel=="电压示值误差"||sLabel=="电流示值误差(直接测量)"||sLabel=="电流示值误差(间接测量)"){ newdStdValue= TranDecimals(sLabel,dataRes[i],dStdValue); @@ -2696,3 +2741,21 @@ } } +void CheckWindow::readDCStabData(QString sLabel){ + qDebug() << sLabel; + QString sRole = "数字多用表"; + if(sLabel=="纹波电压") + sRole="示波器"; + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源读取数值")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("sRole"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("sRole",sLabel); + QString sRet = ReadDevice(instrcutLibRole,&engineRole); + //sRet="0.005"; + if(sRet!=""){ + QStringList TempValue; + TempValue.append("单位"); + int idx= getIndexByHeader(sLabel,TempValue); + double dStdValue = transUnit(sRet,stabInputdlg->dataRes->at(idx)); + stabInputdlg->setInputData(dStdValue); + } +} diff --git a/softwareDirectory/AutoVerScheme/checkwindow.h b/softwareDirectory/AutoVerScheme/checkwindow.h index 04f5425..4e1b2de 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.h +++ b/softwareDirectory/AutoVerScheme/checkwindow.h @@ -12,6 +12,7 @@ #include #include #include +#include "dialogdcstabinput.h" using namespace QtCharts; namespace Ui { @@ -86,6 +87,7 @@ QMap readDataFromFile(QString filePath); void RefreshTime_Slot(); void on_pushButtonGetTemp_clicked(); + void readDCStabData(QString sLabel); private: void getCheckDevice(bool bInit=true); @@ -181,6 +183,7 @@ QChartView *chartView; QTimer* timerChart; SyncRunStatus Teststate; + DialogDCStabInput* stabInputdlg; }; #endif // CHECKWINDOW_H diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkwindow.cpp b/softwareDirectory/AutoVerScheme/checkwindow.cpp index 99738d8..8f341d0 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.cpp +++ b/softwareDirectory/AutoVerScheme/checkwindow.cpp @@ -8,6 +8,7 @@ #include "formcheckpoint.h" #include "multiinputdialog.h" #include "formgageresult.h" +#include "dialogdcstabinput.h" CheckWindow::CheckWindow(QWidget *parent) : QWidget(parent), @@ -1376,6 +1377,7 @@ } SendDevice(instrcutLib,Engine); + count++; } } void CheckWindow::connectDevice(){ @@ -1736,18 +1738,34 @@ } } } - InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); - SendDevice(instrcutLibstan,&standardEngine,true); - //被检设备读数 - BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); - InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); - SendDevice(instrcutLib,&deviceEngine); - sRet=ReadDevice(instrcutLib,&deviceEngine); - if(sRet!=""){ - TempValue.clear(); - TempValue.append("单位"); - idx= getIndexByHeader(constsLable,TempValue); - dStdValue = transUnit(sRet,dataRes[i][idx]); + if(iEquipType==2){ + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源输出")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("可编程交流电源"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("可编程交流电源",constsLable); + SendDevice(instrcutLibRole,&engineRole); + BaseCommonApi::SaveLogInfo(1,QString("被检电源输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,constsLable); + SendDevice(instrcutLib,&deviceEngine); + BaseCommonApi::SaveLogInfo(1,QString("电子负载")); + engineRole=getVisaCommbyRoleName("电子负载"); //角色 + instrcutLibRole=getCmdByRoleName("电子负载",constsLable); + SendDevice(instrcutLibRole,&engineRole); + } + else + { + InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); + SendDevice(instrcutLibstan,&standardEngine,true); + //被检设备读数 + BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); + SendDevice(instrcutLib,&deviceEngine); + sRet=ReadDevice(instrcutLib,&deviceEngine); + if(sRet!=""){ + TempValue.clear(); + TempValue.append("单位"); + idx= getIndexByHeader(constsLable,TempValue); + dStdValue = transUnit(sRet,dataRes[i][idx]); + } } autoAdujstData(constsLable,i,dStdValue,dataRes); CheckBackColorUpdate(false,i); @@ -1886,14 +1904,41 @@ //Delay_MSec(2000); } if(iEquipType==2){ - if(qIsFinite(dStdValue)){ - bool bOk = false; - dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); - if (bOk) { - //sRet = QString::number(dStdValue); - }else{ - dStdValue=0; - } +// if(qIsFinite(dStdValue)){ +// bool bOk = false; +// dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); +// if (bOk) { +// //sRet = QString::number(dStdValue); +// }else{ +// dStdValue=0; +// } +// } + QString sTips= "请调节电压和电流至额定状态后,点击测量。"; + if(sLabel=="电源电压调整率") + sTips = "请调节电压和电流至额定状态后,点击测量。"; + else if(sLabel=="负载调整率"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("负载情况"))); + if(dataRes[i][idx]=="满载") + sTips="请调节仪器至满载状态后,点击测量。"; + else + sTips="请调节仪器至空载状态后,点击测量。"; + }else if(sLabel=="电压示值误差"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("调节输出至额定电压%1%2,并测量被检电源的实际电压,记录到蓝色区域。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + }else if(sLabel=="电流示值误差(直接测量)"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("请调节仪器至%1%2额定电流状态,且电流接线状态正确后,点击测量按钮。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + } + + DialogDCStabInput dlg(this,sLabel,sTips); + dlg.dataRes = &dataRes[i]; + stabInputdlg = &dlg; + connect(&dlg,SIGNAL(readData(QString)),this,SLOT(readDCStabData(QString))); + dlg.setModal(true); + if(dlg.exec()==QDialog::Accepted){ + dStdValue = dlg.getInputData(); } if(sLabel=="电压示值误差"||sLabel=="电流示值误差(直接测量)"||sLabel=="电流示值误差(间接测量)"){ newdStdValue= TranDecimals(sLabel,dataRes[i],dStdValue); @@ -2696,3 +2741,21 @@ } } +void CheckWindow::readDCStabData(QString sLabel){ + qDebug() << sLabel; + QString sRole = "数字多用表"; + if(sLabel=="纹波电压") + sRole="示波器"; + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源读取数值")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("sRole"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("sRole",sLabel); + QString sRet = ReadDevice(instrcutLibRole,&engineRole); + //sRet="0.005"; + if(sRet!=""){ + QStringList TempValue; + TempValue.append("单位"); + int idx= getIndexByHeader(sLabel,TempValue); + double dStdValue = transUnit(sRet,stabInputdlg->dataRes->at(idx)); + stabInputdlg->setInputData(dStdValue); + } +} diff --git a/softwareDirectory/AutoVerScheme/checkwindow.h b/softwareDirectory/AutoVerScheme/checkwindow.h index 04f5425..4e1b2de 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.h +++ b/softwareDirectory/AutoVerScheme/checkwindow.h @@ -12,6 +12,7 @@ #include #include #include +#include "dialogdcstabinput.h" using namespace QtCharts; namespace Ui { @@ -86,6 +87,7 @@ QMap readDataFromFile(QString filePath); void RefreshTime_Slot(); void on_pushButtonGetTemp_clicked(); + void readDCStabData(QString sLabel); private: void getCheckDevice(bool bInit=true); @@ -181,6 +183,7 @@ QChartView *chartView; QTimer* timerChart; SyncRunStatus Teststate; + DialogDCStabInput* stabInputdlg; }; #endif // CHECKWINDOW_H diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp new file mode 100644 index 0000000..e733612 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp @@ -0,0 +1,41 @@ +#include "dialogdcstabinput.h" +#include "ui_dialogdcstabinput.h" + +DialogDCStabInput::DialogDCStabInput(QWidget *parent,QString label,QString sTips) : + QDialog(parent), + sLabel(label), + ui(new Ui::DialogDCStabInput) +{ + ui->setupUi(this); + setWindowTitle(label); + ui->labelTips->setText(sTips); +} + +DialogDCStabInput::~DialogDCStabInput() +{ + delete ui; +} + +void DialogDCStabInput::on_pushButtonRead_clicked() +{ + //ui->doubleSpinBox->setValue(1); + emit readData(sLabel); +} + +void DialogDCStabInput::on_pushButtonOK_clicked() +{ + this->accept(); +} + +void DialogDCStabInput::on_pushButtonCancel_clicked() +{ + this->reject(); +} + +double DialogDCStabInput::getInputData(){ + return ui->doubleSpinBox->value(); +} + +double DialogDCStabInput::setInputData(double dVal){ + ui->doubleSpinBox->setValue(dVal); +} diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkwindow.cpp b/softwareDirectory/AutoVerScheme/checkwindow.cpp index 99738d8..8f341d0 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.cpp +++ b/softwareDirectory/AutoVerScheme/checkwindow.cpp @@ -8,6 +8,7 @@ #include "formcheckpoint.h" #include "multiinputdialog.h" #include "formgageresult.h" +#include "dialogdcstabinput.h" CheckWindow::CheckWindow(QWidget *parent) : QWidget(parent), @@ -1376,6 +1377,7 @@ } SendDevice(instrcutLib,Engine); + count++; } } void CheckWindow::connectDevice(){ @@ -1736,18 +1738,34 @@ } } } - InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); - SendDevice(instrcutLibstan,&standardEngine,true); - //被检设备读数 - BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); - InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); - SendDevice(instrcutLib,&deviceEngine); - sRet=ReadDevice(instrcutLib,&deviceEngine); - if(sRet!=""){ - TempValue.clear(); - TempValue.append("单位"); - idx= getIndexByHeader(constsLable,TempValue); - dStdValue = transUnit(sRet,dataRes[i][idx]); + if(iEquipType==2){ + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源输出")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("可编程交流电源"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("可编程交流电源",constsLable); + SendDevice(instrcutLibRole,&engineRole); + BaseCommonApi::SaveLogInfo(1,QString("被检电源输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,constsLable); + SendDevice(instrcutLib,&deviceEngine); + BaseCommonApi::SaveLogInfo(1,QString("电子负载")); + engineRole=getVisaCommbyRoleName("电子负载"); //角色 + instrcutLibRole=getCmdByRoleName("电子负载",constsLable); + SendDevice(instrcutLibRole,&engineRole); + } + else + { + InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); + SendDevice(instrcutLibstan,&standardEngine,true); + //被检设备读数 + BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); + SendDevice(instrcutLib,&deviceEngine); + sRet=ReadDevice(instrcutLib,&deviceEngine); + if(sRet!=""){ + TempValue.clear(); + TempValue.append("单位"); + idx= getIndexByHeader(constsLable,TempValue); + dStdValue = transUnit(sRet,dataRes[i][idx]); + } } autoAdujstData(constsLable,i,dStdValue,dataRes); CheckBackColorUpdate(false,i); @@ -1886,14 +1904,41 @@ //Delay_MSec(2000); } if(iEquipType==2){ - if(qIsFinite(dStdValue)){ - bool bOk = false; - dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); - if (bOk) { - //sRet = QString::number(dStdValue); - }else{ - dStdValue=0; - } +// if(qIsFinite(dStdValue)){ +// bool bOk = false; +// dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); +// if (bOk) { +// //sRet = QString::number(dStdValue); +// }else{ +// dStdValue=0; +// } +// } + QString sTips= "请调节电压和电流至额定状态后,点击测量。"; + if(sLabel=="电源电压调整率") + sTips = "请调节电压和电流至额定状态后,点击测量。"; + else if(sLabel=="负载调整率"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("负载情况"))); + if(dataRes[i][idx]=="满载") + sTips="请调节仪器至满载状态后,点击测量。"; + else + sTips="请调节仪器至空载状态后,点击测量。"; + }else if(sLabel=="电压示值误差"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("调节输出至额定电压%1%2,并测量被检电源的实际电压,记录到蓝色区域。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + }else if(sLabel=="电流示值误差(直接测量)"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("请调节仪器至%1%2额定电流状态,且电流接线状态正确后,点击测量按钮。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + } + + DialogDCStabInput dlg(this,sLabel,sTips); + dlg.dataRes = &dataRes[i]; + stabInputdlg = &dlg; + connect(&dlg,SIGNAL(readData(QString)),this,SLOT(readDCStabData(QString))); + dlg.setModal(true); + if(dlg.exec()==QDialog::Accepted){ + dStdValue = dlg.getInputData(); } if(sLabel=="电压示值误差"||sLabel=="电流示值误差(直接测量)"||sLabel=="电流示值误差(间接测量)"){ newdStdValue= TranDecimals(sLabel,dataRes[i],dStdValue); @@ -2696,3 +2741,21 @@ } } +void CheckWindow::readDCStabData(QString sLabel){ + qDebug() << sLabel; + QString sRole = "数字多用表"; + if(sLabel=="纹波电压") + sRole="示波器"; + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源读取数值")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("sRole"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("sRole",sLabel); + QString sRet = ReadDevice(instrcutLibRole,&engineRole); + //sRet="0.005"; + if(sRet!=""){ + QStringList TempValue; + TempValue.append("单位"); + int idx= getIndexByHeader(sLabel,TempValue); + double dStdValue = transUnit(sRet,stabInputdlg->dataRes->at(idx)); + stabInputdlg->setInputData(dStdValue); + } +} diff --git a/softwareDirectory/AutoVerScheme/checkwindow.h b/softwareDirectory/AutoVerScheme/checkwindow.h index 04f5425..4e1b2de 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.h +++ b/softwareDirectory/AutoVerScheme/checkwindow.h @@ -12,6 +12,7 @@ #include #include #include +#include "dialogdcstabinput.h" using namespace QtCharts; namespace Ui { @@ -86,6 +87,7 @@ QMap readDataFromFile(QString filePath); void RefreshTime_Slot(); void on_pushButtonGetTemp_clicked(); + void readDCStabData(QString sLabel); private: void getCheckDevice(bool bInit=true); @@ -181,6 +183,7 @@ QChartView *chartView; QTimer* timerChart; SyncRunStatus Teststate; + DialogDCStabInput* stabInputdlg; }; #endif // CHECKWINDOW_H diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp new file mode 100644 index 0000000..e733612 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp @@ -0,0 +1,41 @@ +#include "dialogdcstabinput.h" +#include "ui_dialogdcstabinput.h" + +DialogDCStabInput::DialogDCStabInput(QWidget *parent,QString label,QString sTips) : + QDialog(parent), + sLabel(label), + ui(new Ui::DialogDCStabInput) +{ + ui->setupUi(this); + setWindowTitle(label); + ui->labelTips->setText(sTips); +} + +DialogDCStabInput::~DialogDCStabInput() +{ + delete ui; +} + +void DialogDCStabInput::on_pushButtonRead_clicked() +{ + //ui->doubleSpinBox->setValue(1); + emit readData(sLabel); +} + +void DialogDCStabInput::on_pushButtonOK_clicked() +{ + this->accept(); +} + +void DialogDCStabInput::on_pushButtonCancel_clicked() +{ + this->reject(); +} + +double DialogDCStabInput::getInputData(){ + return ui->doubleSpinBox->value(); +} + +double DialogDCStabInput::setInputData(double dVal){ + ui->doubleSpinBox->setValue(dVal); +} diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.h b/softwareDirectory/AutoVerScheme/dialogdcstabinput.h new file mode 100644 index 0000000..2b66db2 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.h @@ -0,0 +1,38 @@ +#ifndef DIALOGDCSTABINPUT_H +#define DIALOGDCSTABINPUT_H + +#include + +namespace Ui { +class DialogDCStabInput; +} + +class DialogDCStabInput : public QDialog +{ + Q_OBJECT + +public: + explicit DialogDCStabInput(QWidget *parent = nullptr,QString label="",QString sTips=""); + ~DialogDCStabInput(); + + double getInputData(); + double setInputData(double dVal); + +signals: + void readData(QString label); + +private slots: + void on_pushButtonRead_clicked(); + + void on_pushButtonOK_clicked(); + + void on_pushButtonCancel_clicked(); + +private: + Ui::DialogDCStabInput *ui; + QString sLabel=""; +public: + QStringList* dataRes; +}; + +#endif // DIALOGDCSTABINPUT_H diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index d7ac8c2..67784c8 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -41,6 +41,7 @@ depar_task.cpp \ depar_task_server.cpp \ dialogcheckresult.cpp \ + dialogdcstabinput.cpp \ formaddrsetting.cpp \ formcheckpoint.cpp \ formcommsetting.cpp \ @@ -75,6 +76,7 @@ PageControl.h \ createtask_scandevice.h \ databaseconnectionmainsys.h \ + dialogdcstabinput.h \ formaddrsetting.h \ formcommsetting.h \ formgageresult.h \ @@ -133,6 +135,7 @@ datasyncview.ui \ depar_task.ui \ dialogcheckresult.ui \ + dialogdcstabinput.ui \ formaddrsetting.ui \ formcheckpoint.ui \ formcommsetting.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkwindow.cpp b/softwareDirectory/AutoVerScheme/checkwindow.cpp index 99738d8..8f341d0 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.cpp +++ b/softwareDirectory/AutoVerScheme/checkwindow.cpp @@ -8,6 +8,7 @@ #include "formcheckpoint.h" #include "multiinputdialog.h" #include "formgageresult.h" +#include "dialogdcstabinput.h" CheckWindow::CheckWindow(QWidget *parent) : QWidget(parent), @@ -1376,6 +1377,7 @@ } SendDevice(instrcutLib,Engine); + count++; } } void CheckWindow::connectDevice(){ @@ -1736,18 +1738,34 @@ } } } - InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); - SendDevice(instrcutLibstan,&standardEngine,true); - //被检设备读数 - BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); - InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); - SendDevice(instrcutLib,&deviceEngine); - sRet=ReadDevice(instrcutLib,&deviceEngine); - if(sRet!=""){ - TempValue.clear(); - TempValue.append("单位"); - idx= getIndexByHeader(constsLable,TempValue); - dStdValue = transUnit(sRet,dataRes[i][idx]); + if(iEquipType==2){ + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源输出")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("可编程交流电源"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("可编程交流电源",constsLable); + SendDevice(instrcutLibRole,&engineRole); + BaseCommonApi::SaveLogInfo(1,QString("被检电源输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,constsLable); + SendDevice(instrcutLib,&deviceEngine); + BaseCommonApi::SaveLogInfo(1,QString("电子负载")); + engineRole=getVisaCommbyRoleName("电子负载"); //角色 + instrcutLibRole=getCmdByRoleName("电子负载",constsLable); + SendDevice(instrcutLibRole,&engineRole); + } + else + { + InstructionLib *instrcutLibstan = getCmdByCheckName(1,sParam); + SendDevice(instrcutLibstan,&standardEngine,true); + //被检设备读数 + BaseCommonApi::SaveLogInfo(1,QString("被检设备输出")); + InstructionLib *instrcutLib = getCmdByCheckName(0,sParam); + SendDevice(instrcutLib,&deviceEngine); + sRet=ReadDevice(instrcutLib,&deviceEngine); + if(sRet!=""){ + TempValue.clear(); + TempValue.append("单位"); + idx= getIndexByHeader(constsLable,TempValue); + dStdValue = transUnit(sRet,dataRes[i][idx]); + } } autoAdujstData(constsLable,i,dStdValue,dataRes); CheckBackColorUpdate(false,i); @@ -1886,14 +1904,41 @@ //Delay_MSec(2000); } if(iEquipType==2){ - if(qIsFinite(dStdValue)){ - bool bOk = false; - dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); - if (bOk) { - //sRet = QString::number(dStdValue); - }else{ - dStdValue=0; - } +// if(qIsFinite(dStdValue)){ +// bool bOk = false; +// dStdValue = QInputDialog::getDouble(this,"手动测试","请输入测量值",0,-100000, 100000,5,&bOk); +// if (bOk) { +// //sRet = QString::number(dStdValue); +// }else{ +// dStdValue=0; +// } +// } + QString sTips= "请调节电压和电流至额定状态后,点击测量。"; + if(sLabel=="电源电压调整率") + sTips = "请调节电压和电流至额定状态后,点击测量。"; + else if(sLabel=="负载调整率"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("负载情况"))); + if(dataRes[i][idx]=="满载") + sTips="请调节仪器至满载状态后,点击测量。"; + else + sTips="请调节仪器至空载状态后,点击测量。"; + }else if(sLabel=="电压示值误差"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("调节输出至额定电压%1%2,并测量被检电源的实际电压,记录到蓝色区域。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + }else if(sLabel=="电流示值误差(直接测量)"){ + int idx =getIndexByHeader(sLabel,QStrTranQStrList(("被检表示值"))); + int idx2 =getIndexByHeader(sLabel,QStrTranQStrList(("单位"))); + sTips = QString("请调节仪器至%1%2额定电流状态,且电流接线状态正确后,点击测量按钮。").arg(dataRes[i][idx]).arg(dataRes[i][idx2]); + } + + DialogDCStabInput dlg(this,sLabel,sTips); + dlg.dataRes = &dataRes[i]; + stabInputdlg = &dlg; + connect(&dlg,SIGNAL(readData(QString)),this,SLOT(readDCStabData(QString))); + dlg.setModal(true); + if(dlg.exec()==QDialog::Accepted){ + dStdValue = dlg.getInputData(); } if(sLabel=="电压示值误差"||sLabel=="电流示值误差(直接测量)"||sLabel=="电流示值误差(间接测量)"){ newdStdValue= TranDecimals(sLabel,dataRes[i],dStdValue); @@ -2696,3 +2741,21 @@ } } +void CheckWindow::readDCStabData(QString sLabel){ + qDebug() << sLabel; + QString sRole = "数字多用表"; + if(sLabel=="纹波电压") + sRole="示波器"; + BaseCommonApi::SaveLogInfo(1,QString("可编程交流电源读取数值")); + VisaCommonEngine engineRole=getVisaCommbyRoleName("sRole"); //角色 + InstructionLib *instrcutLibRole=getCmdByRoleName("sRole",sLabel); + QString sRet = ReadDevice(instrcutLibRole,&engineRole); + //sRet="0.005"; + if(sRet!=""){ + QStringList TempValue; + TempValue.append("单位"); + int idx= getIndexByHeader(sLabel,TempValue); + double dStdValue = transUnit(sRet,stabInputdlg->dataRes->at(idx)); + stabInputdlg->setInputData(dStdValue); + } +} diff --git a/softwareDirectory/AutoVerScheme/checkwindow.h b/softwareDirectory/AutoVerScheme/checkwindow.h index 04f5425..4e1b2de 100644 --- a/softwareDirectory/AutoVerScheme/checkwindow.h +++ b/softwareDirectory/AutoVerScheme/checkwindow.h @@ -12,6 +12,7 @@ #include #include #include +#include "dialogdcstabinput.h" using namespace QtCharts; namespace Ui { @@ -86,6 +87,7 @@ QMap readDataFromFile(QString filePath); void RefreshTime_Slot(); void on_pushButtonGetTemp_clicked(); + void readDCStabData(QString sLabel); private: void getCheckDevice(bool bInit=true); @@ -181,6 +183,7 @@ QChartView *chartView; QTimer* timerChart; SyncRunStatus Teststate; + DialogDCStabInput* stabInputdlg; }; #endif // CHECKWINDOW_H diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp new file mode 100644 index 0000000..e733612 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.cpp @@ -0,0 +1,41 @@ +#include "dialogdcstabinput.h" +#include "ui_dialogdcstabinput.h" + +DialogDCStabInput::DialogDCStabInput(QWidget *parent,QString label,QString sTips) : + QDialog(parent), + sLabel(label), + ui(new Ui::DialogDCStabInput) +{ + ui->setupUi(this); + setWindowTitle(label); + ui->labelTips->setText(sTips); +} + +DialogDCStabInput::~DialogDCStabInput() +{ + delete ui; +} + +void DialogDCStabInput::on_pushButtonRead_clicked() +{ + //ui->doubleSpinBox->setValue(1); + emit readData(sLabel); +} + +void DialogDCStabInput::on_pushButtonOK_clicked() +{ + this->accept(); +} + +void DialogDCStabInput::on_pushButtonCancel_clicked() +{ + this->reject(); +} + +double DialogDCStabInput::getInputData(){ + return ui->doubleSpinBox->value(); +} + +double DialogDCStabInput::setInputData(double dVal){ + ui->doubleSpinBox->setValue(dVal); +} diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.h b/softwareDirectory/AutoVerScheme/dialogdcstabinput.h new file mode 100644 index 0000000..2b66db2 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.h @@ -0,0 +1,38 @@ +#ifndef DIALOGDCSTABINPUT_H +#define DIALOGDCSTABINPUT_H + +#include + +namespace Ui { +class DialogDCStabInput; +} + +class DialogDCStabInput : public QDialog +{ + Q_OBJECT + +public: + explicit DialogDCStabInput(QWidget *parent = nullptr,QString label="",QString sTips=""); + ~DialogDCStabInput(); + + double getInputData(); + double setInputData(double dVal); + +signals: + void readData(QString label); + +private slots: + void on_pushButtonRead_clicked(); + + void on_pushButtonOK_clicked(); + + void on_pushButtonCancel_clicked(); + +private: + Ui::DialogDCStabInput *ui; + QString sLabel=""; +public: + QStringList* dataRes; +}; + +#endif // DIALOGDCSTABINPUT_H diff --git a/softwareDirectory/AutoVerScheme/dialogdcstabinput.ui b/softwareDirectory/AutoVerScheme/dialogdcstabinput.ui new file mode 100644 index 0000000..017c511 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/dialogdcstabinput.ui @@ -0,0 +1,191 @@ + + + DialogDCStabInput + + + + 0 + 0 + 558 + 221 + + + + Dialog + + + background-color: rgb(255, 255, 255); + + + + 20 + + + + + + 9 + 75 + true + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 4 + + + 1000000.000000000000000 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 75 + true + + + + background-color: rgb(2, 125, 180); +color: rgb(255, 255, 255); + + + 测量 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 75 + true + + + + background-color: rgb(51, 69, 130); +color: rgb(255, 255, 255); + + + 确定 + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 100 + 20 + + + + + + + + + 75 + true + + + + background-color: rgb(167, 167, 167); +color: rgb(255, 255, 255); + + + 取消 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + +