zhongfuqiang上传最新代码20250325
This commit is contained in:
@@ -51,10 +51,11 @@
|
||||
#include <QSerialPortInfo>
|
||||
#include <QStringList>
|
||||
#include <QSerialPort>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#include "./SerialPortHandler/crc32.h"
|
||||
#include "./UI_Widget/UI_Name.h"
|
||||
#include "./SerialPortHandler/SerialPortHandler.h"
|
||||
#include "../Json/readJsonFile.h"
|
||||
@@ -79,12 +80,12 @@
|
||||
#define MANUAL_UPLOAD_LICENSE 0 // 打开手动上传 License的功能
|
||||
#define START_MDNS 1
|
||||
#define FOCUS_WINDOWS_BUTTON 4 // 大窗口播放视频的按键编号
|
||||
#define TCP_CONNECT_PORT 12412 // TCP监听的端口
|
||||
//#define TCP_CONNECT_PORT 12412 // TCP监听的端口
|
||||
#define GET_PIC_DATA_SIZE (480 * 640 * 1.5)
|
||||
|
||||
#define NEW_MAP 1
|
||||
|
||||
|
||||
// FactoryToolSendGetUuidToHttpServer 函数还需要改
|
||||
#define FACTORY_ID "TEST" // 工厂ID
|
||||
#define LABEL "TEST_SL100_20240826" // 出货标签
|
||||
#define BATCH 1 // 出货批次
|
||||
@@ -104,6 +105,7 @@ public:
|
||||
QByteArray hexStringToByteArray(const QString& hexString);
|
||||
|
||||
signals:
|
||||
void userInputEntered(const QString&);
|
||||
void openFocusWindowRequested(int itemIndex);
|
||||
void serialComPortConnected();
|
||||
void requestDevInfo();
|
||||
@@ -111,12 +113,15 @@ signals:
|
||||
void openFocusWindow(int itemIndex);
|
||||
|
||||
private slots:
|
||||
void showDelUserWindow();
|
||||
void setupSerialPortHandlerConnections();
|
||||
void onSerialDataReceived(const QByteArray& data);
|
||||
// 发送HTTP请求
|
||||
//void onSomeButtonClicked();
|
||||
// 处理HTTP响应
|
||||
// 启动图片共享服务
|
||||
void onStartImageSharing(int width, int height, QString img_type, std::function<void(QString)> callback);
|
||||
void onStartLOGOImageSharing(int width, int height, QString img_type, std::function<void(QString)> callback);
|
||||
void onHttpRequestFinished(const QJsonObject& response);
|
||||
// 处理HTTP错误
|
||||
void onHttpRequestError(const QString& errorString);
|
||||
@@ -177,6 +182,8 @@ private:
|
||||
void readJsonConfig();
|
||||
// 设置 UI
|
||||
void setupUI();
|
||||
// 切换页面
|
||||
void switchToTab(int tabIndex);
|
||||
#if NEW_MAP
|
||||
void addDeviceAreaTab(QTabWidget* mainTabWidget, const QString& tabName,
|
||||
QGroupBox* deviceInfoGroupBox, QGroupBox* licenseGroupBox,
|
||||
@@ -207,6 +214,8 @@ private:
|
||||
void saveStatusListToFile(const QString& filePath);
|
||||
// 用于更新按键文本的函数
|
||||
void updateServerButtonText();
|
||||
void updateGetVideoButtonState(int state, int connectedDevices, const QVector<QPushButton*>& buttons);
|
||||
void updateGetPicButtonsState(int state, int connectedDevices);
|
||||
void onHandleInvalidOperate(const QString& text);
|
||||
void onDisconnectClient(int clientId);
|
||||
void setupTimerForThreadPoolInfo();
|
||||
@@ -301,6 +310,7 @@ private:
|
||||
QTextEdit* UuidHwInfoEdit; // Uuid的硬件信息
|
||||
MainWidget* mainWidget;
|
||||
QTabWidget* tabWidget; // 标签页
|
||||
QTabWidget* mainTabWidget;
|
||||
QWidget* functionTestArea; // 功能测试区
|
||||
QWidget* functionConfigArea; // 功能配置区
|
||||
QComboBox* ipComboBox;
|
||||
|
||||
Reference in New Issue
Block a user