From c824bb98b065eab11d968462330efce257ea04e7 Mon Sep 17 00:00:00 2001 From: byloveletter Date: Fri, 28 Jul 2017 18:53:59 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=A0=EA=B0=9D=EC=82=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=9A=94=EC=B2=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 엔지니어 모드 내부 세척 밸브 제어 추가 --- app/gui/oven_control/udphandler.h | 1 + app/gui/oven_control/valvetestwindow.cpp | 20 +++++++ app/gui/oven_control/valvetestwindow.h | 4 ++ app/gui/oven_control/valvetestwindow.ui | 99 ++++++++++++++++++++++++++++++-- 4 files changed, 118 insertions(+), 6 deletions(-) diff --git a/app/gui/oven_control/udphandler.h b/app/gui/oven_control/udphandler.h index 272032b..61dd783 100644 --- a/app/gui/oven_control/udphandler.h +++ b/app/gui/oven_control/udphandler.h @@ -55,6 +55,7 @@ public: bool unp() { return (state.onoff_state2 & 0x0200) != 0; } bool hdm() { return (state.onoff_state2 & 0x0400) != 0; } bool sgnv() { return (state.onoff_state2 & 0x0800) != 0; } + bool inv() {return (state.onoff_state2 & 0x1000) !=0; } signals: void changed(); diff --git a/app/gui/oven_control/valvetestwindow.cpp b/app/gui/oven_control/valvetestwindow.cpp index 44d0ee0..0c54dfa 100644 --- a/app/gui/oven_control/valvetestwindow.cpp +++ b/app/gui/oven_control/valvetestwindow.cpp @@ -116,6 +116,15 @@ void ValveTestWindow::on_steamPumpButton_clicked() steamPumpOn(); } +void ValveTestWindow::on_steamPumpButton_2_clicked() +{ + if (udp->inv()) + steamPumpOff(); + else + steamPumpOn(); +} + + void ValveTestWindow::on_quenchingValveButton_clicked() { if (udp->qnv()) @@ -223,3 +232,14 @@ void ValveTestWindow::cleanValveClose() { udp->turnOff(TG_SGNV); } + +void ValveTestWindow::innerCleanValveOpen() +{ + udp->turnOn(TG_INV); +} + +void ValveTestWindow::innerCleanValveClose() +{ + udp->turnOff(TG_INV); +} + diff --git a/app/gui/oven_control/valvetestwindow.h b/app/gui/oven_control/valvetestwindow.h index 843807d..fd40f8e 100644 --- a/app/gui/oven_control/valvetestwindow.h +++ b/app/gui/oven_control/valvetestwindow.h @@ -32,6 +32,8 @@ private slots: void sideValveClose(); void cleanValveOpen(); void cleanValveClose(); + void innerCleanValveOpen(); + void innerCleanValveClose(); void onDataChanged(); @@ -44,6 +46,8 @@ private slots: void on_backButton_clicked(); + void on_steamPumpButton_2_clicked(); + private: Ui::ValveTestWindow *ui; UdpHandler *udp; diff --git a/app/gui/oven_control/valvetestwindow.ui b/app/gui/oven_control/valvetestwindow.ui index a86484b..3654d64 100644 --- a/app/gui/oven_control/valvetestwindow.ui +++ b/app/gui/oven_control/valvetestwindow.ui @@ -121,7 +121,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/b 697 - 655 + 593 184 70 @@ -183,7 +183,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 697 - 585 + 523 184 70 @@ -763,7 +763,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 480 - 585 + 523 211 70 @@ -820,7 +820,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 480 - 655 + 593 184 70 @@ -1062,7 +1062,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 332 - 592 + 530 133 56 @@ -1078,7 +1078,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 369 - 666 + 604 96 48 @@ -1194,6 +1194,93 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_o 서비스단계(엔지니어모드) > 기능테스트 > 급수밸브 + + + + 696 + 662 + 184 + 70 + + + + + 0 + 0 + + + + + Roboto + 10 + 75 + true + + + + QPushButton { border-image: url(:/images/button/184.png); } +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/button/184_ov.png); } + + + START + + + + + + 479 + 662 + 184 + 70 + + + + + + + + + 255 + 255 + 255 + + + + + + + + + 255 + 255 + 255 + + + + + + + + + 123 + 123 + 123 + + + + + + + + + Malgun Gothic + 11 + + + + 내부 세척 밸브 + + -- 2.1.4