From 7a37675d780b7be7cc7146d619f35e2a606f971f Mon Sep 17 00:00:00 2001 From: pandx Date: Wed, 18 Dec 2024 16:46:39 +0800 Subject: [PATCH] add relay. --- singlerelay.cpp | 14 + singlerelay.h | 22 ++ singlerelay.ui | 606 +++++++++++++++++++++++++++++++++++++++ tmrrelayassociation.cpp | 14 + tmrrelayassociation.h | 22 ++ tmrrelayassociation.ui | 616 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1294 insertions(+) create mode 100644 singlerelay.cpp create mode 100644 singlerelay.h create mode 100644 singlerelay.ui create mode 100644 tmrrelayassociation.cpp create mode 100644 tmrrelayassociation.h create mode 100644 tmrrelayassociation.ui diff --git a/singlerelay.cpp b/singlerelay.cpp new file mode 100644 index 0000000..bcd8db5 --- /dev/null +++ b/singlerelay.cpp @@ -0,0 +1,14 @@ +#include "singlerelay.h" +#include "ui_singlerelay.h" + +SingleRelay::SingleRelay(QWidget *parent) + : QDialog(parent) + , ui(new Ui::SingleRelay) +{ + ui->setupUi(this); +} + +SingleRelay::~SingleRelay() +{ + delete ui; +} diff --git a/singlerelay.h b/singlerelay.h new file mode 100644 index 0000000..0f280cc --- /dev/null +++ b/singlerelay.h @@ -0,0 +1,22 @@ +#ifndef SINGLERELAY_H +#define SINGLERELAY_H + +#include + +namespace Ui { +class SingleRelay; +} + +class SingleRelay : public QDialog +{ + Q_OBJECT + +public: + explicit SingleRelay(QWidget *parent = nullptr); + ~SingleRelay(); + +private: + Ui::SingleRelay *ui; +}; + +#endif // SINGLERELAY_H diff --git a/singlerelay.ui b/singlerelay.ui new file mode 100644 index 0000000..fc4ac16 --- /dev/null +++ b/singlerelay.ui @@ -0,0 +1,606 @@ + + + SingleRelay + + + + 0 + 0 + 834 + 569 + + + + Dialog + + + + + 240 + 360 + 91 + 16 + + + + 告警驱动逻辑: + + + + + + 220 + 530 + 71 + 32 + + + + 确 定 + + + + + + 430 + 60 + 31 + 251 + + + + PushButton + + + + + + 750 + 535 + 71 + 20 + + + + NCT6100T + + + + + + 160 + 60 + 31 + 251 + + + + PushButton + + + + + + 460 + 60 + 31 + 251 + + + + PushButton + + + + + + 580 + 230 + 61 + 31 + + + + 或(*) + + + + + + 240 + 380 + 551 + 131 + + + + <!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" /><meta charset="utf-8" /><style type="text/css"> +p, li { white-space: pre-wrap; } +hr { height: 1px; border-width: 0; } +li.unchecked::marker { content: "\2610"; } +li.checked::marker { content: "\2612"; } +</style></head><body style=" font-family:'.AppleSystemUIFont'; font-size:13pt; 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;">S02C01P##NO * S03C01P##NO * S04C01P##NO</p></body></html> + + + + + + 500 + 310 + 271 + 51 + + + + 0 of 15 逻辑操作数/通道 + + + + + 10 + 20 + 261 + 31 + + + + 24 + + + + + + + 190 + 60 + 31 + 251 + + + + PushButton + + + + + + 510 + 30 + 111 + 16 + + + + 可用的告警: + + + + + + 100 + 60 + 31 + 251 + + + + PushButton + + + + + + 510 + 530 + 71 + 32 + + + + 打 印... + + + + + + 130 + 60 + 31 + 251 + + + + PushButton + + + + + + 310 + 60 + 31 + 251 + + + + PushButton + + + + + + 510 + 50 + 301 + 161 + + + + + S02C01P##NO (Slot 2 Channel 1 Not OK) + + + + + S02C02P##NO (Slot 2 Channel 2 Not OK) + + + + + S02C03P##NO (Slot 2 Channel 3 Not OK) + + + + + S02C04P##NO (Slot 2 Channel 4 Not OK) + + + + + + + 250 + 60 + 31 + 251 + + + + PushButton + + + + + + 10 + 360 + 201 + 151 + + + + 继电器关联 + + + + + 20 + 30 + 103 + 32 + + + + + 通道 1-4 + + + + + 通道 5-8 + + + + + 通道 9-12 + + + + + 通道 13-16 + + + + + + + 26 + 70 + 85 + 20 + + + + 激活 + + + + + + + 220 + 60 + 31 + 251 + + + + PushButton + + + + + + 580 + 270 + 61 + 31 + + + + ) + + + + + + 113 + 9 + 31 + 21 + + + + 13 + + + + + + 510 + 230 + 61 + 31 + + + + 与(*) + + + + + + 510 + 270 + 61 + 31 + + + + + + + + + + 40 + 10 + 71 + 16 + + + + 继电器槽位: + + + + + + 70 + 60 + 31 + 251 + + + + PushButton + + + + + + 340 + 60 + 31 + 251 + + + + PushButton + + + + + + 650 + 230 + 61 + 71 + + + + Enter + + + + + + 40 + 60 + 31 + 251 + + + + PushButton + + + + + + 600 + 530 + 81 + 32 + + + + 帮 助 + + + + + + 10 + 60 + 31 + 251 + + + + PushButton + + + + + + 740 + 290 + 61 + 31 + + + + Copy... + + + + + + 20 + 46 + 491 + 16 + + + + 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 + + + + + + 370 + 60 + 31 + 251 + + + + PushButton + + + + + + 400 + 60 + 31 + 251 + + + + PushButton + + + + + + 740 + 260 + 61 + 31 + + + + CLR + + + + + + 740 + 230 + 61 + 31 + + + + <--- + + + + + + 320 + 530 + 81 + 32 + + + + 测点名称... + + + + + + 280 + 60 + 31 + 251 + + + + PushButton + + + + + + 420 + 530 + 71 + 32 + + + + 取 消 + + + + + + diff --git a/tmrrelayassociation.cpp b/tmrrelayassociation.cpp new file mode 100644 index 0000000..25966b3 --- /dev/null +++ b/tmrrelayassociation.cpp @@ -0,0 +1,14 @@ +#include "tmrrelayassociation.h" +#include "ui_tmrrelayassociation.h" + +TMRRelayAssociation::TMRRelayAssociation(QWidget *parent) + : QDialog(parent) + , ui(new Ui::TMRRelayAssociation) +{ + ui->setupUi(this); +} + +TMRRelayAssociation::~TMRRelayAssociation() +{ + delete ui; +} diff --git a/tmrrelayassociation.h b/tmrrelayassociation.h new file mode 100644 index 0000000..55cace7 --- /dev/null +++ b/tmrrelayassociation.h @@ -0,0 +1,22 @@ +#ifndef TMRRELAYASSOCIATION_H +#define TMRRELAYASSOCIATION_H + +#include + +namespace Ui { +class TMRRelayAssociation; +} + +class TMRRelayAssociation : public QDialog +{ + Q_OBJECT + +public: + explicit TMRRelayAssociation(QWidget *parent = nullptr); + ~TMRRelayAssociation(); + +private: + Ui::TMRRelayAssociation *ui; +}; + +#endif // TMRRELAYASSOCIATION_H diff --git a/tmrrelayassociation.ui b/tmrrelayassociation.ui new file mode 100644 index 0000000..23e25b9 --- /dev/null +++ b/tmrrelayassociation.ui @@ -0,0 +1,616 @@ + + + TMRRelayAssociation + + + + 0 + 0 + 838 + 576 + + + + Dialog + + + + + 50 + 20 + 71 + 16 + + + + 继电器槽位: + + + + + + 123 + 19 + 31 + 21 + + + + 13 + + + + + + 30 + 56 + 491 + 16 + + + + 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 + + + + + + 20 + 70 + 31 + 251 + + + + PushButton + + + + + + 50 + 70 + 31 + 251 + + + + PushButton + + + + + + 110 + 70 + 31 + 251 + + + + PushButton + + + + + + 80 + 70 + 31 + 251 + + + + PushButton + + + + + + 230 + 70 + 31 + 251 + + + + PushButton + + + + + + 200 + 70 + 31 + 251 + + + + PushButton + + + + + + 170 + 70 + 31 + 251 + + + + PushButton + + + + + + 140 + 70 + 31 + 251 + + + + PushButton + + + + + + 410 + 70 + 31 + 251 + + + + PushButton + + + + + + 440 + 70 + 31 + 251 + + + + PushButton + + + + + + 350 + 70 + 31 + 251 + + + + PushButton + + + + + + 380 + 70 + 31 + 251 + + + + PushButton + + + + + + 470 + 70 + 31 + 251 + + + + PushButton + + + + + + 320 + 70 + 31 + 251 + + + + PushButton + + + + + + 290 + 70 + 31 + 251 + + + + PushButton + + + + + + 260 + 70 + 31 + 251 + + + + PushButton + + + + + + 520 + 40 + 111 + 16 + + + + 可用的告警: + + + + + + 520 + 60 + 301 + 161 + + + + + S02C01A1 (Slot 2 Channel 1 Alert) + + + + + S02C01A2 (Slot 2 Channel 1 Danger) + + + + + S02C02A1 (Slot 2 Channel 2 Alert) + + + + + S02C02A2 (Slot 2 Channel 2 Danger) + + + + + S02C03A1 (Slot 2 Channel 3 Alert) + + + + + S02C03A2 (Slot 2 Channel 3 Danger) + + + + + S02C04A1 (Slot 2 Channel 4 Alert) + + + + + S02C04A2 (Slot 2 Channel 4 Danger) + + + + + + + 520 + 240 + 61 + 31 + + + + 与(*) + + + + + + 590 + 240 + 61 + 31 + + + + 或(*) + + + + + + 520 + 280 + 61 + 31 + + + + + + + + + + 590 + 280 + 61 + 31 + + + + ) + + + + + + 660 + 240 + 61 + 71 + + + + Enter + + + + + + 750 + 240 + 61 + 31 + + + + <--- + + + + + + 750 + 270 + 61 + 31 + + + + CLR + + + + + + 750 + 300 + 61 + 31 + + + + Copy... + + + + + + 510 + 320 + 271 + 51 + + + + TMR - 0 of 15 逻辑操作数/通道 + + + + + 10 + 20 + 261 + 31 + + + + 24 + + + + + + + 20 + 370 + 201 + 151 + + + + TMR继电器关联 + + + + + 20 + 30 + 103 + 32 + + + + + 通道 1-4 + + + + + 通道 5-8 + + + + + 通道 9-12 + + + + + 通道 13-16 + + + + + + + 26 + 70 + 85 + 20 + + + + 激活 + + + + + + + 250 + 370 + 91 + 16 + + + + 告警驱动逻辑: + + + + + + 250 + 390 + 551 + 131 + + + + + + + 330 + 540 + 81 + 32 + + + + 测点名称... + + + + + + 520 + 540 + 71 + 32 + + + + 打 印... + + + + + + 230 + 540 + 71 + 32 + + + + 确 定 + + + + + + 610 + 540 + 81 + 32 + + + + 帮 助 + + + + + + 430 + 540 + 71 + 32 + + + + 取 消 + + + + + + 760 + 545 + 71 + 20 + + + + NCT6100T + + + + + +