From 50989bcd5bbcacd528966527025cc6f5e9d6bbc0 Mon Sep 17 00:00:00 2001
From: tangchao0503 <735056338@qq.com>
Date: Wed, 1 Apr 2026 15:55:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
HPPA/HPPA.cpp | 8 ++
HPPA/HPPA.h | 3 +
HPPA/HPPA.ui | 4 +-
HPPA/HPPA.vcxproj | 3 +
HPPA/HPPA.vcxproj.filters | 9 ++
HPPA/set.ui | 284 ++++++++++++++++++++++++++++++++++++++
HPPA/setWindow.cpp | 27 ++++
HPPA/setWindow.h | 27 ++++
8 files changed, 363 insertions(+), 2 deletions(-)
create mode 100644 HPPA/set.ui
create mode 100644 HPPA/setWindow.cpp
create mode 100644 HPPA/setWindow.h
diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp
index 15abd71..18ada9a 100644
--- a/HPPA/HPPA.cpp
+++ b/HPPA/HPPA.cpp
@@ -107,6 +107,7 @@ HPPA::HPPA(QWidget* parent)
initPanelToolbar();
setDockNestingEnabled(true);
+ connect(this->ui.mSetting, SIGNAL(triggered()), this, SLOT(settingWindow()));
connect(this->ui.action_about, SIGNAL(triggered()), this, SLOT(onAbout()));
connect(this->ui.mActionOneMotorScenario, SIGNAL(triggered()), this, SLOT(createOneMotorScenario()));
connect(this->ui.mActionPlantPhenotypeScenario, SIGNAL(triggered()), this, SLOT(createPlantPhenotypeScenario()));
@@ -1954,6 +1955,13 @@ void HPPA::onAbout()
about.exec();
}
+void HPPA::settingWindow()
+{
+ setWindow w;
+ w.show();
+ w.exec();
+}
+
void HPPA::onDark()
{
QMessageBox msgBox;
diff --git a/HPPA/HPPA.h b/HPPA/HPPA.h
index 2492ed7..395b4c0 100644
--- a/HPPA/HPPA.h
+++ b/HPPA/HPPA.h
@@ -73,6 +73,8 @@
#include "recordFrameCounter.h"
+#include "setWindow.h"
+
#define PI 3.1415926
QT_CHARTS_USE_NAMESPACE//QChartView 使用 需要加宏, 否则无法使用
@@ -313,6 +315,7 @@ public Q_SLOTS:
void onFocus2(int command);
void onFocusWindowClosed();
void onAbout();
+ void settingWindow();
void onDark();
void recordDarkFinish();
void onReference();
diff --git a/HPPA/HPPA.ui b/HPPA/HPPA.ui
index b536069..094d598 100644
--- a/HPPA/HPPA.ui
+++ b/HPPA/HPPA.ui
@@ -72,7 +72,7 @@ color:white;
-
+