diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 658fc81..b87665f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -28,10 +28,10 @@
#include "tab/mini_servo_tab.hpp"
#include "tab/module_opera_tab.hpp"
#include "tab/pipette_ctrl_tab.hpp"
+#include "tab/plate_code_scaner_tab.hpp"
#include "tab/step_motor_ctrl_tab.hpp"
#include "tab/water_cooling_temperature_tab.hpp"
#include "tab/xyrobot_tab.hpp"
-#include "tab/plate_code_scaner_tab.hpp"
#include "version.h"
using namespace std;
@@ -195,6 +195,18 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
ZQUI::ins()->setInstructionPreviewClear([this]() { instructionPreviewClear(); });
ui->menu_version->setTitle(QApplication::translate("MainWindow", VERSION, nullptr));
+ ui->boardId_tableWidget->resizeColumnsToContents();
+ ui->boardId_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); // x先自适应宽度
+ ui->boardId_tableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents); // 然后设置要根据内容使用宽度的列
+ ui->boardId_tableWidget->setAlternatingRowColors(true);
+ ui->boardId_tableWidget->setStyleSheet("alternate-background-color:rgb( 255,250,240);background-color:rgb(245,245,245)");
+
+
+ ui->ioid_tableWidget->resizeColumnsToContents();
+ ui->ioid_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); // x先自适应宽度
+ ui->ioid_tableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents); // 然后设置要根据内容使用宽度的列
+ ui->ioid_tableWidget->setAlternatingRowColors(true);
+ ui->ioid_tableWidget->setStyleSheet("alternate-background-color:rgb( 255,250,240);background-color:rgb(245,245,245)");
/**
* @brief 页面逻辑初始化
@@ -270,8 +282,6 @@ void MainWindow::constructAppUI() {
IDCardReaderTab::inst()->construct(ui->buttonTabWidget);
PlateCodeScanerTab::inst()->construct(ui->buttonTabWidget);
-
-
}
void MainWindow::on_PublicState_ConfirmKey_clicked() {}
@@ -307,4 +317,3 @@ void MainWindow::on_dumpRegListButton_clicked() {
ZQUI::ins()->ishow("%-50s %d", regtable[i].regname, regtable[i].index);
}
}
-
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index c0cc1b2..050967d 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -6,8 +6,8 @@
0
0
- 1497
- 940
+ 1629
+ 950
@@ -1002,63 +1002,1008 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
基础页
-
-
-
- 30
- 20
- 541
- 721
-
-
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
-<html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;">
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">10(0x0A) 机械臂 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> XY机械臂模块(11)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">20(0x14) 板夹仓模块 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 板夹仓平移电机(21)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 板夹枪推杆电机(22)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">30(0x1E) 摇匀模组</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 31:步进夹爪 (单位0.1mm,单边开合范围0->9mm,打开为正方向)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 32:步进升降 (正转向下,0.1mm)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 33:步进摇匀 (360为1圈)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 34:舵机-试管帽夹爪-水平移动(舵机一圈3600,中点1800)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 35:舵机-试管帽夹爪(夹紧点为1800)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 36:舵机-试管扫码夹紧(舵机一圈3600)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 37:舵机-试管旋转</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">40(0x28) 孵育盘加热 加热模块</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">50(0x32) 板夹仓加热</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">60(0x3C) 进出料 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO扩展板(60)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO0:试管高低</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO1:转移通道外光电</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO2:转移通道内光电</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO3:出料口试管有无</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO4:试管有无</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> IO5:进料口试管有无</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 进料电机(61)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 转移电机(62)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 出料电机(63)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 扫码器(64)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">70(0x46) 孵育盘 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 孵育盘转盘(71)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">80(0x50) 机械臂Z轴 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> Z轴升降(81)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 移液枪(82)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 扫码器(83)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">90(0x5A) 光学模组 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 拍照电机(91)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 推杆电机(92)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 光学模块(93)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 光学板(90)</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;">100(0x64) ID卡读卡器 </span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Consolas','Courier New','monospace'; font-size:11pt; color:#ff0000;"> 读卡器(101)</span></p></body></html>
-
-
+
+ -
+
+
+ true
+
+
+
+ 0
+ 10
+
+
+
+ QAbstractItemView::NoEditTriggers
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+
+ 10
+
+
+
+
+ 11
+
+
+
+
+ 20
+
+
+
+
+ 21
+
+
+
+
+ 22
+
+
+
+
+ 23
+
+
+
+
+ 30
+
+
+
+
+ 31
+
+
+
+
+ 32
+
+
+
+
+ 33
+
+
+
+
+ 34
+
+
+
+
+ 35
+
+
+
+
+ 36
+
+
+
+
+ 37
+
+
+
+
+ 40
+
+
+
+
+ 41
+
+
+
+
+ 42
+
+
+
+
+ 50
+
+
+
+
+ 51
+
+
+
+
+ 52
+
+
+
+
+ 60
+
+
+
+
+ 61
+
+
+
+
+ 62
+
+
+
+
+ 63
+
+
+
+
+ 64
+
+
+
+
+ 70
+
+
+
+
+ 71
+
+
+
+
+ 80
+
+
+
+
+ 81
+
+
+
+
+ 82
+
+
+
+
+ 83
+
+
+
+
+ 90
+
+
+
+
+ 91
+
+
+
+
+ 92
+
+
+
+
+ 93
+
+
+
+
+ 100
+
+
+
+
+ 101
+
+
+
+
+ 板
+
+
+
+
+ id
+
+
+
+
+ 模块名
+
+
+
+
+ 说明
+
+
+ -
+
+ 机械臂板
+
+
+ -
+
+ 10
+
+
+ -
+
+
+
+
+ -
+
+ -
+
+
+ -
+
+ 11
+
+
+ -
+
+ XY机械臂模块
+
+
+ -
+
+ -
+
+
+ -
+
+ 20
+
+
+ -
+
+ 板夹仓模块
+
+
+ -
+
+ -
+
+
+ -
+
+ 21
+
+
+ -
+
+ 板夹仓平移电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 22
+
+
+ -
+
+ 板夹枪推杆电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 23
+
+
+ -
+
+ 板夹仓板夹扫码
+
+
+ -
+
+ 摇匀模组板
+
+
+ -
+
+ 30
+
+
+ -
+
+
+
+
+ -
+
+ -
+
+
+ -
+
+ 31
+
+
+ -
+
+ 步进夹爪
+
+
+ -
+
+ (单位0.1mm,单边开合范围0->9mm,打开为正方向)
+
+
+ -
+
+ -
+
+
+ -
+
+ 32
+
+
+ -
+
+ 步进升降
+
+
+ -
+
+ (正转向下,0.1mm)
+
+
+ -
+
+ -
+
+
+ -
+
+ 33
+
+
+ -
+
+ 步进摇匀
+
+
+ -
+
+ (360为1圈)
+
+
+ -
+
+ -
+
+
+ -
+
+ 34
+
+
+ -
+
+ 舵机-试管帽夹爪-水平移动
+
+
+ -
+
+ (舵机一圈3600,中点1800)
+
+
+ -
+
+ -
+
+
+ -
+
+ 35
+
+
+ -
+
+ 舵机-试管帽夹爪
+
+
+ -
+
+ (夹紧点为1800)
+
+
+ -
+
+ -
+
+
+ -
+
+ 36
+
+
+ -
+
+ 舵机-试管扫码夹紧
+
+
+ -
+
+ (舵机一圈3600)
+
+
+ -
+
+ -
+
+
+ -
+
+ 37
+
+
+ -
+
+ 舵机-试管旋转
+
+
+ -
+
+ 板夹仓加热板
+
+
+ -
+
+ 40
+
+
+ -
+
+
+
+
+ -
+
+ -
+
+
+ -
+
+ 41
+
+
+ -
+
+ -
+
+
+ -
+
+ 42
+
+
+ -
+
+ 孵育盘加热板
+
+
+ -
+
+ 50
+
+
+ -
+
+
+
+
+ -
+
+ -
+
+
+ -
+
+ 51
+
+
+ -
+
+ -
+
+
+ -
+
+ 52
+
+
+ -
+
+ 进出料
+
+
+ -
+
+ 60
+
+
+ -
+
+
+
+
+ -
+
+ -
+
+
+ -
+
+ 61
+
+
+ -
+
+ 进料电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 62
+
+
+ -
+
+ 转移电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 63
+
+
+ -
+
+ 出料电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 64
+
+
+ -
+
+ 二维码&一维码扫码器
+
+
+ -
+
+ 孵育盘
+
+
+ -
+
+ 70
+
+
+ -
+
+
+
+
+ -
+
+ 71
+
+
+ -
+
+ 孵育盘转盘
+
+
+ -
+
+ 机械臂Z轴
+
+
+ -
+
+ 80
+
+
+ -
+
+ -
+
+
+ -
+
+ 81
+
+
+ -
+
+ Z轴升降
+
+
+ -
+
+ -
+
+
+ -
+
+ 82
+
+
+ -
+
+ 移液枪
+
+
+ -
+
+ -
+
+
+ -
+
+ 83
+
+
+ -
+
+ 扫码器
+
+
+ -
+
+ 光学模组
+
+
+ -
+
+ 90
+
+
+ -
+
+ -
+
+
+ -
+
+ 91
+
+
+ -
+
+ 拍照电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 92
+
+
+ -
+
+ 推杆电机
+
+
+ -
+
+ -
+
+
+ -
+
+ 93
+
+
+ -
+
+ 光学模块
+
+
+ -
+
+ ID卡读卡器
+
+
+ -
+
+ 100
+
+
+ -
+
+ -
+
+
+ -
+
+ 101
+
+
+ -
+
+ 读卡器模块
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 5
+
+
+
+ QAbstractItemView::NoEditTriggers
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+
+ 1
+
+
+
+
+ 2
+
+
+
+
+ 3
+
+
+
+
+ 4
+
+
+
+
+ 5
+
+
+
+
+ 6
+
+
+
+
+ 7
+
+
+
+
+ 8
+
+
+
+
+ 9
+
+
+
+
+ 10
+
+
+
+
+ 板号
+
+
+
+
+ 方向
+
+
+
+
+ IO编号
+
+
+
+
+ IO功能
+
+
+ -
+
+ IO扩展板(60)
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 0
+
+
+ -
+
+ 试管高低
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 1
+
+
+ -
+
+ 转移通道外光电
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 2
+
+
+ -
+
+ 转移通道内光电
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 3
+
+
+ -
+
+ 出料口试管有无
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 4
+
+
+ -
+
+ 试管有无
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 5
+
+
+ -
+
+ 进料口试管有无
+
+
+ -
+
+ 板夹仓(40)
+
+
+ -
+
+ 输入
+
+
+ -
+
+ 2
+
+
+ -
+
+ 光栅状态
+
+
+ -
+
+ 输出
+
+
+ -
+
+ 0
+
+
+ -
+
+ 光栅电源
+
+
+
+
+
@@ -1164,7 +2109,7 @@ p, li { white-space: pre-wrap; }
0
0
- 1497
+ 1629
20