From c1f45d3524d4e5af92668684e224d18599fcf123 Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Mon, 7 Apr 2025 19:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2=E6=8C=AF=E5=8A=A8=E6=9D=BF=E5=8D=A1?= =?UTF-8?q?=E5=85=B3=E8=81=94=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 9 +- seismic_monitor.ui | 234 ++++++++++++++++++++++++++++++++++++++------- 2 files changed, 205 insertions(+), 38 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e70c993..cf887a5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -18,7 +18,8 @@ #include #include #include "relaysetting.h" -#include "common.h" +#include "config_mgr.h" +#include "vibrationdata.h" QString g_strServerIp; @@ -282,6 +283,12 @@ void MainWindow::onMenuActionTriggered() { chan_display = "键相"; } else if (slot_type == "HAM824") { chan_display = "振动"; + auto vibrationData = std::make_shared(); + vibrationData->slot_ = button_id; + if(rack_type == "单板卡"){ + vibrationData->card_type_ = kCardVibSingle; + } + ConfigMgr::Instance()->AddCard(vibrationData); } else if (slot_type == "OPM844") { chan_display = "转速"; } diff --git a/seismic_monitor.ui b/seismic_monitor.ui index dfa44fe..043b9dc 100644 --- a/seismic_monitor.ui +++ b/seismic_monitor.ui @@ -61,7 +61,7 @@ 10 - 470 + 500 844 37 @@ -220,7 +220,7 @@ 40 40 331 - 401 + 441 @@ -230,7 +230,7 @@ 10 - 300 + 340 120 80 @@ -272,7 +272,7 @@ 200 - 300 + 340 120 81 @@ -315,20 +315,20 @@ 10 50 - 312 - 245 + 311 + 268 0 - 245 + 0 16777215 - 245 + 16777215 @@ -342,7 +342,7 @@ 9 - 121 + 150 288 80 @@ -463,13 +463,13 @@ - + - 0 + 1 0 - 271 - 111 + 266 + 136 @@ -529,7 +529,7 @@ - 20 + 40 20 @@ -700,7 +700,47 @@ - 20 + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 90 + 20 + + + + + + + + Qt::LeftToRight + + + 是否供电 + + + + + + + Qt::Horizontal + + + + 40 20 @@ -719,7 +759,7 @@ 9 - 121 + 150 288 80 @@ -852,13 +892,13 @@ - + - 0 + 1 0 266 - 108 + 136 @@ -1094,6 +1134,46 @@ + + + + + + Qt::Horizontal + + + + 90 + 20 + + + + + + + + Qt::LeftToRight + + + 是否供电 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -1115,7 +1195,7 @@ 140 - 310 + 350 52 75 @@ -1171,7 +1251,7 @@ 460 40 331 - 401 + 441 @@ -1181,7 +1261,7 @@ 10 - 300 + 340 120 80 @@ -1223,7 +1303,7 @@ 200 - 300 + 340 120 80 @@ -1267,19 +1347,19 @@ 10 50 312 - 245 + 271 0 - 245 + 0 16777215 - 245 + 16777215 @@ -1293,7 +1373,7 @@ 9 - 121 + 150 288 80 @@ -1414,13 +1494,13 @@ - + - 0 - 0 + 1 + 1 266 - 108 + 136 @@ -1656,6 +1736,46 @@ + + + + + + Qt::Horizontal + + + + 90 + 20 + + + + + + + + Qt::LeftToRight + + + 是否供电 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -1667,7 +1787,7 @@ 9 - 121 + 150 288 80 @@ -1788,13 +1908,13 @@ - + - 0 - 0 + 1 + 1 266 - 108 + 136 @@ -2030,6 +2150,46 @@ + + + + + + Qt::Horizontal + + + + 90 + 20 + + + + + + + + Qt::LeftToRight + + + 是否供电 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -2051,7 +2211,7 @@ 140 - 312 + 352 52 75