From 36685016587c79bf79564c108534ea6e09f589d0 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 22 Mar 2017 19:25:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=B0=EB=8F=99=20=EC=8B=9C=ED=97=98=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/componenttestwindow.cpp | 4 +-- .../images/manual/graphe_BTN_Bigsize.png | Bin 0 -> 3862 bytes app/gui/oven_control/manualcookwindow.ui | 35 +++++++++------------ app/gui/oven_control/oven.cpp | 8 ++++- app/gui/oven_control/ovencontroller.cpp | 2 +- app/gui/oven_control/packetprinter.cpp | 4 +-- app/gui/oven_control/resources.qrc | 1 + 7 files changed, 28 insertions(+), 26 deletions(-) create mode 100644 app/gui/oven_control/images/manual/graphe_BTN_Bigsize.png diff --git a/app/gui/oven_control/componenttestwindow.cpp b/app/gui/oven_control/componenttestwindow.cpp index 2b1a37c..9fc22e0 100644 --- a/app/gui/oven_control/componenttestwindow.cpp +++ b/app/gui/oven_control/componenttestwindow.cpp @@ -32,9 +32,9 @@ void ComponentTestWindow::onDataChanged() ui->lampButton->setText("ON"); if (udp->hdm()) - ui->damperButton->setText("START"); - else ui->damperButton->setText("STOP"); + else + ui->damperButton->setText("START"); } void ComponentTestWindow::on_speakerButton_clicked() diff --git a/app/gui/oven_control/images/manual/graphe_BTN_Bigsize.png b/app/gui/oven_control/images/manual/graphe_BTN_Bigsize.png new file mode 100644 index 0000000000000000000000000000000000000000..d23fd255e77ff49261b155af0c59ed6fbc667694 GIT binary patch literal 3862 zcmV+x59#oUP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02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`AvZq6QrfPiH-0AUlbl+-A7zvMhKwKf3D1ccNIr4@5k zSqFp(pp{0?k@AfC3@Zy)C^dJ=MfPq2NUe}Q@GG$q#wQXq)GsCwFzD&+r?j+$y4spM z(hUHWRbHsioIS^$eFsU|HqMm8o_z;7aq8@h@8n!CGjM#<(z>>VWlJ9+9139w!Hds7 z!@QD`8Pg?1o-Il$q%3SpRV2cK>T2xCG#X8F;}WElq^F!2ToHMmD~Xh{;J}}MJ<7o4 zLAE@*8OyTRxoZ!#HBmM`(Kd0;<&EwcmScq^tx7c_xv^D zd4-kFudJZ7B+OuJ6r~i4YNObbQ(PUp;R`p-0Lz;mj+(i&NL3i#b>R|;WRi#KYB3Ch zw%?9ZQd~@RG~x?4vdWEVTV&xrf1!uAL+#jh8pm;IJJe2RSGVtYDQ{XVfT};bdPZE= zE2zSmN@Gt>Qc?Z@2#Cl3B^(M-6bkz)w=9!2E1R;mNdL5ym6b97!Ajy2Nwm@|T3CzY zdL&b}FFau6MbYyVehYf|$Z-aTVr+hT1D0vAd+&atRS{a(uJQL=7_`Td8~i%^1#W)rOO+OLgA=V3Z?aot%33Qjf*?K z`r^&q-+kK#3;}V#75Ui*LO^A}G;7}2_Tkp%-U~l``T6#5QprS4t=)d2 z^M6@h-`e5}&&|RD%7F+_2?PNr3mna<{k`MQ+ji>>>sHSQ&!0so+a};;1CY*!!MFY! Y07$c{aGUkfkN^Mx07*qoM6N<$f+=V|V*mgE literal 0 HcmV?d00001 diff --git a/app/gui/oven_control/manualcookwindow.ui b/app/gui/oven_control/manualcookwindow.ui index aeca067..813e1b4 100644 --- a/app/gui/oven_control/manualcookwindow.ui +++ b/app/gui/oven_control/manualcookwindow.ui @@ -433,10 +433,9 @@ margin-bottom: 13px; } QSlider::handle { -background-image: url(:/images/images/manual/010_gauge_sel.png); -width: 22px; -margin-right: -2px; -margin-top: -2px; +background-image: url(:/images/images/manual/graphe_BTN_Bigsize.png); +width: 23px; +margin-bottom: -7px; } QSlider { @@ -503,10 +502,9 @@ margin-bottom: 13px; } QSlider::handle { -background-image: url(:/images/images/manual/010_gauge_sel.png); -width: 22px; -margin-right: -2px; -margin-top: -2px; +background-image: url(:/images/images/manual/graphe_BTN_Bigsize.png); +width: 23px; +margin-bottom: -7px; } QSlider { @@ -559,10 +557,9 @@ margin-bottom: 13px; } QSlider::handle { -background-image: url(:/images/images/manual/010_gauge_sel.png); -width: 22px; -margin-right: -2px; -margin-top: -2px; +background-image: url(:/images/images/manual/graphe_BTN_Bigsize.png); +width: 23px; +margin-bottom: -7px; } QSlider { @@ -653,10 +650,9 @@ margin-bottom: 13px; } QSlider::handle { -background-image: url(:/images/images/manual/010_gauge_sel.png); -width: 22px; -margin-right: -2px; -margin-top: -2px; +background-image: url(:/images/images/manual/graphe_BTN_Bigsize.png); +width: 23px; +margin-bottom: -7px; } QSlider { @@ -1578,10 +1574,9 @@ margin-bottom: 13px; } QSlider::handle { -background-image: url(:/images/images/manual/010_gauge_sel.png); -width: 22px; -margin-right: -2px; -margin-top: -2px; +background-image: url(:/images/images/manual/graphe_BTN_Bigsize.png); +width: 23px; +margin-bottom: -7px; } QSlider { diff --git a/app/gui/oven_control/oven.cpp b/app/gui/oven_control/oven.cpp index 514dda4..8e246ab 100644 --- a/app/gui/oven_control/oven.cpp +++ b/app/gui/oven_control/oven.cpp @@ -164,6 +164,11 @@ bool Oven::setInterTempEnabled_(bool enabled) if (interTempEnabled_ != enabled) { interTempEnabled_ = enabled; + if (interTempEnabled_) + interface->setInterTemp(interTemp_); + else + interface->setInterTemp(300); + return true; } @@ -184,7 +189,8 @@ bool Oven::setInterTemp_(int celsius) if (celsius != interTemp_) { interTemp_ = celsius; - interface->setInterTemp(celsius); + if (interTempEnabled_) + interface->setInterTemp(celsius); return true; } diff --git a/app/gui/oven_control/ovencontroller.cpp b/app/gui/oven_control/ovencontroller.cpp index 522f374..45ff8de 100644 --- a/app/gui/oven_control/ovencontroller.cpp +++ b/app/gui/oven_control/ovencontroller.cpp @@ -2,7 +2,6 @@ OvenController::OvenController(QObject *parent) : OvenInterface(parent) { - } void OvenController::setUdpHandler(UdpHandler *udp) @@ -66,6 +65,7 @@ void OvenController::setFan(int rpm) void OvenController::startCooking() { udp->set(TG_OVEN_MODE, 1); + udp->set(TG_TIME, 1440); udp->turnOn(TG_SYSTEM); udp->turnOn(TG_COOKING); } diff --git a/app/gui/oven_control/packetprinter.cpp b/app/gui/oven_control/packetprinter.cpp index 8f4ea0d..673305c 100644 --- a/app/gui/oven_control/packetprinter.cpp +++ b/app/gui/oven_control/packetprinter.cpp @@ -24,7 +24,7 @@ void PacketPrinter::printControl(oven_control_t &control) stream << "Control\n"; - for (int idx = 0; idx < sizeof(control) / sizeof(unsigned short); idx++) + for (int idx = 0; idx < (int) sizeof(control) / sizeof(unsigned short); idx++) { QString str; stream << str.sprintf("0x%04X 0x%04X\n", idx, ((unsigned short *) &control)[idx]); @@ -40,7 +40,7 @@ void PacketPrinter::printState(oven_state_t &state) QTextStream stream(&str); stream << "State\n"; - for (int idx = 0; idx < sizeof(state) / sizeof(unsigned short); idx++) + for (int idx = 0; idx < (int) sizeof(state) / sizeof(unsigned short); idx++) { QString str; stream << str.sprintf("0x%04X 0x%04X\n", idx, ((unsigned short *) &state)[idx]); diff --git a/app/gui/oven_control/resources.qrc b/app/gui/oven_control/resources.qrc index e172fb0..64c8cb9 100644 --- a/app/gui/oven_control/resources.qrc +++ b/app/gui/oven_control/resources.qrc @@ -420,5 +420,6 @@ images/config_service/112_profile_hide_menu_12.png images/config_service/112_profile_hide_menu_13.png images/config_service/112_profile_hide_menu_14.png + images/manual/graphe_BTN_Bigsize.png -- 2.1.4