1 UI展示内容调整

jizhi
bob.pan 5 years ago
parent ace2bff209
commit a494893c78

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,19 @@
{
"COM": {
"baute": "19200",
"comName": "COM1",
"useRaster": true
},
"Raster": {
"basehight": 0,
"basehight_bool": false,
"beilv": 1,
"beilv_bool": true,
"lowNum": 0,
"lowNum_bool": false,
"maxsize": 10,
"maxsize_bool": false,
"mid_value": 0.8,
"mid_value_bool": false
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -18,6 +18,9 @@
<property name="windowTitle"> <property name="windowTitle">
<string>检测配置任务表</string> <string>检测配置任务表</string>
</property> </property>
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
<property name="leftMargin"> <property name="leftMargin">
<number>0</number> <number>0</number>
@ -110,6 +113,9 @@
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
@ -233,6 +239,9 @@
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
@ -282,6 +291,13 @@
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="toolTip"> <property name="toolTip">
<string>添加型号到检测列表</string> <string>添加型号到检测列表</string>
</property> </property>
@ -310,6 +326,13 @@
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="toolTip"> <property name="toolTip">
<string>从检测列表移除所选型号</string> <string>从检测列表移除所选型号</string>
</property> </property>
@ -456,6 +479,9 @@
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="4"> <item row="3" column="0" colspan="4">

@ -302,7 +302,7 @@ background-color: rgb(170, 170, 127);</string>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="page_2"> <widget class="QWidget" name="page_2">
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
@ -433,7 +433,14 @@ background-color: rgb(170, 170, 127);</string>
</spacer> </spacer>
</item> </item>
<item row="2" column="0" rowspan="3"> <item row="2" column="0" rowspan="3">
<widget class="QTableView" name="tableView_checkShengchang"/> <widget class="QTableView" name="tableView_checkShengchang">
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QLabel" name="CheckDlg_label_Pic"> <widget class="QLabel" name="CheckDlg_label_Pic">
@ -477,6 +484,11 @@ background-color: rgb(170, 170, 127);</string>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::Box</enum> <enum>QFrame::Box</enum>
</property> </property>
@ -487,6 +499,11 @@ background-color: rgb(170, 170, 127);</string>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>双击单条记录显示图片</string> <string>双击单条记录显示图片</string>
</property> </property>
@ -1277,6 +1294,15 @@ background-color: rgb(255, 255, 255);</string>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Consolas</family>
<pointsize>12</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(85, 255, 0); <string notr="true">background-color: rgb(85, 255, 0);
font: 75 12pt &quot;Consolas&quot;;</string> font: 75 12pt &quot;Consolas&quot;;</string>
@ -1497,6 +1523,11 @@ font: 75 12pt &quot;Consolas&quot;;</string>
</item> </item>
<item row="3" column="0" colspan="3"> <item row="3" column="0" colspan="3">
<widget class="QScrollArea" name="scrollArea"> <widget class="QScrollArea" name="scrollArea">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="widgetResizable"> <property name="widgetResizable">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -1744,13 +1775,24 @@ font: 75 12pt &quot;Consolas&quot;;</string>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_Tab3_Title"> <widget class="QLabel" name="label_Tab3_Title">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>报警记录查询</string> <string>报警记录查询</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QTableView" name="tableView_TWarning"/> <widget class="QTableView" name="tableView_TWarning">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item> </item>
<item row="3" column="0"> <item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>993</width> <width>993</width>
<height>657</height> <height>699</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -94,6 +94,9 @@
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property>
<property name="wheel_prop_tableview_header" stdset="0"> <property name="wheel_prop_tableview_header" stdset="0">
<stringlist> <stringlist>
<string>modelID</string> <string>modelID</string>
@ -126,7 +129,10 @@
</font> </font>
</property> </property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>true</bool> <bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property> </property>
<property name="title"> <property name="title">
<string>轮毂信息:</string> <string>轮毂信息:</string>
@ -259,6 +265,11 @@
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="QCheckBox" name="checkBox"> <widget class="QCheckBox" name="checkBox">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>加入训练</string> <string>加入训练</string>
</property> </property>
@ -320,6 +331,11 @@
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<item> <item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>最小偏距</string> <string>最小偏距</string>
</property> </property>
@ -327,6 +343,11 @@
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_min"> <widget class="QDoubleSpinBox" name="doubleSpinBox_min">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="buttonSymbols"> <property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum> <enum>QAbstractSpinBox::NoButtons</enum>
</property> </property>
@ -337,6 +358,11 @@
</item> </item>
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>最大偏距</string> <string>最大偏距</string>
</property> </property>
@ -344,6 +370,11 @@
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_max"> <widget class="QDoubleSpinBox" name="doubleSpinBox_max">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="buttonSymbols"> <property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum> <enum>QAbstractSpinBox::NoButtons</enum>
</property> </property>
@ -428,6 +459,11 @@
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLabel" name="ModelMgr_label_12"> <widget class="QLabel" name="ModelMgr_label_12">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>阈值调节</string> <string>阈值调节</string>
</property> </property>
@ -435,6 +471,11 @@
</item> </item>
<item> <item>
<widget class="QSlider" name="ModelMgr_horizontalSlider"> <widget class="QSlider" name="ModelMgr_horizontalSlider">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -448,6 +489,11 @@
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>0%</string> <string>0%</string>
</property> </property>
@ -477,7 +523,11 @@
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QListWidget" name="listWidget"/> <widget class="QListWidget" name="listWidget">
<property name="styleSheet">
<string notr="true">background-color: rgb(230, 230, 230);</string>
</property>
</widget>
</item> </item>
<item row="0" column="1" rowspan="2"> <item row="0" column="1" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">

@ -993,8 +993,20 @@ void lpMainWin::timerEvent(QTimerEvent *event)
void lpMainWin::closeEvent(QCloseEvent *event) void lpMainWin::closeEvent(QCloseEvent *event)
{ {
QMessageBox info(this);
info.setWindowIcon(QIcon(":/image/leaper"));
info.setWindowTitle(QObject::tr("警告"));
info.setText(QObject::tr("本检测系统正在运行,您真的要关闭?"));
info.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
info.setButtonText(QMessageBox::Ok, QObject::tr("确定"));
info.setButtonText(QMessageBox::Cancel, QObject::tr("取消"));
if (info.exec() != QMessageBox::Ok)
{
return event->ignore();
} }
return event->accept();
}
void lpMainWin::SendModelKuTskFun() void lpMainWin::SendModelKuTskFun()
{ {
/* /*
@ -1431,7 +1443,7 @@ void lpMainWin::onShowResult(Result2Ui* pRlt)
ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(250,0,0,250);background-color: rgb(200, 200, 200);}")); ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(250,0,0,250);background-color: rgb(200, 200, 200);}"));
pRlt->m_strModel = "NG"; pRlt->m_strModel = "NG";
ui.main_lb_res_okng->setText("NG"); ui.main_lb_res_okng->setText("NG");
ui.main_lb_res_okng->setStyleSheet("background-color: rgb(255, 0, 0);"); ui.main_lb_res_okng->setStyleSheet("font: 75 24pt \"Consolas\";background-color: rgb(255, 0, 0);");
IWheelModel *pModel = m_pCtrl->getModel("NG"); IWheelModel *pModel = m_pCtrl->getModel("NG");
if (pModel) { if (pModel) {
pModel->increCount(); pModel->increCount();
@ -1446,7 +1458,7 @@ void lpMainWin::onShowResult(Result2Ui* pRlt)
ui.main_lb_res_model_pic->setPixmap(pix.scaled(scare - 15, scare - 15)); ui.main_lb_res_model_pic->setPixmap(pix.scaled(scare - 15, scare - 15));
pModel->increCount(); pModel->increCount();
ui.main_lb_res_okng->setText("OK"); ui.main_lb_res_okng->setText("OK");
ui.main_lb_res_okng->setStyleSheet("background-color: rgb(0, 255, 0);"); ui.main_lb_res_okng->setStyleSheet("font: 75 24pt \"Consolas\";background-color: rgb(0, 255, 0);");
ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(0,250,0,250);background-color: rgb(200, 200, 200);}")); ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(0,250,0,250);background-color: rgb(200, 200, 200);}"));
emit m_pTableCheck->sgValueChange(pModel->getModelID()); emit m_pTableCheck->sgValueChange(pModel->getModelID());
} }

Loading…
Cancel
Save