Commit 68c06e96f152c391d05f37f254660635c717cd51

Authored by 김태훈
1 parent 004efa4fdf
Exists in master and in 2 other branches fhd, fhd-demo

자동 요리 세부 사항 구현

- 요리 설정 중 요리 값 확인 기능 추가
- 요리 중 요리 설정 확인 기능 추가
app/gui/oven_control/autocookcheckconfigwindow.cpp
... ... @@ -0,0 +1,238 @@
  1 +#include "autocookcheckconfigwindow.h"
  2 +#include "ui_autocookcheckconfigwindow.h"
  3 +
  4 +#include <QKeyEvent>
  5 +
  6 +#include "soundplayer.h"
  7 +#include "stringer.h"
  8 +
  9 +AutoCookCheckConfigWindow::AutoCookCheckConfigWindow(QWidget *parent, Cook cook) :
  10 + QMainWindow(parent),
  11 + ui(new Ui::AutoCookCheckConfigWindow),
  12 + cook(cook)
  13 +{
  14 + ui->setupUi(this);
  15 +
  16 + if (!this->cook.isLoaded())
  17 + this->cook.load();
  18 +
  19 + configWidgets.append(
  20 + ConfigWidget {
  21 + ui->configButton_1,
  22 + ui->configMinLabel_1,
  23 + ui->configMaxLabel_1,
  24 + ui->configCurrentLabel_1,
  25 + ui->configSlider_1
  26 + });
  27 + configWidgets.append(
  28 + ConfigWidget {
  29 + ui->configButton_2,
  30 + ui->configMinLabel_2,
  31 + ui->configMaxLabel_2,
  32 + ui->configCurrentLabel_2,
  33 + ui->configSlider_2
  34 + });
  35 + configWidgets.append(
  36 + ConfigWidget {
  37 + ui->configButton_3,
  38 + ui->configMinLabel_3,
  39 + ui->configMaxLabel_3,
  40 + ui->configCurrentLabel_3,
  41 + ui->configSlider_3
  42 + });
  43 + configWidgets.append(
  44 + ConfigWidget {
  45 + ui->configButton_4,
  46 + ui->configMinLabel_4,
  47 + ui->configMaxLabel_4,
  48 + ui->configCurrentLabel_4,
  49 + ui->configSlider_4
  50 + });
  51 + configWidgets.append(
  52 + ConfigWidget {
  53 + ui->configButton_5,
  54 + ui->configMinLabel_5,
  55 + ui->configMaxLabel_5,
  56 + ui->configCurrentLabel_5,
  57 + ui->configSlider_5
  58 + });
  59 +
  60 + setupUi();
  61 +
  62 + afterThreeSecsTimer.setSingleShot(true);
  63 + afterThreeSecsTimer.setInterval(3000);
  64 + afterThreeSecsTimer.start();
  65 + connect(&afterThreeSecsTimer, SIGNAL(timeout()), SLOT(afterThreeSecs()));
  66 +
  67 + foreach (QPushButton *button, findChildren<QPushButton *>())
  68 + connect(button, &QPushButton::pressed, SoundPlayer::playClick);
  69 +
  70 + foreach (QWidget *w, findChildren<QWidget *>())
  71 + w->installEventFilter(this);
  72 +
  73 + setFocus();
  74 +}
  75 +
  76 +AutoCookCheckConfigWindow::~AutoCookCheckConfigWindow()
  77 +{
  78 + delete ui;
  79 +}
  80 +
  81 +bool AutoCookCheckConfigWindow::eventFilter(QObject */*watched*/, QEvent *event)
  82 +{
  83 + switch (event->type())
  84 + {
  85 + case QEvent::KeyPress:
  86 + case QEvent::KeyRelease:
  87 + case QEvent::MouseButtonPress:
  88 + case QEvent::MouseButtonRelease:
  89 + case QEvent::MouseMove:
  90 + afterThreeSecsTimer.start();
  91 + break;
  92 + default:
  93 + break;
  94 + }
  95 +
  96 + return false;
  97 +}
  98 +
  99 +void AutoCookCheckConfigWindow::keyPressEvent(QKeyEvent *event)
  100 +{
  101 + switch (event->key())
  102 + {
  103 + case 0x01000030: // Turn left
  104 + onEncoderLeft();
  105 + break;
  106 + case 0x01000031: // Push
  107 + pushed = focusWidget();
  108 + break;
  109 + case 0x01000032: // Turn right
  110 + onEncoderRight();
  111 + break;
  112 + }
  113 +}
  114 +
  115 +void AutoCookCheckConfigWindow::keyReleaseEvent(QKeyEvent *event)
  116 +{
  117 + switch (event->key())
  118 + {
  119 + case 0x01000030: // Turn left
  120 + onEncoderLeft();
  121 + break;
  122 + case 0x01000031: // Push
  123 + if (focusWidget() == pushed)
  124 + onEncoderClicked(pushed);
  125 +
  126 + pushed = NULL;
  127 + break;
  128 + case 0x01000032: // Turn right
  129 + onEncoderRight();
  130 + break;
  131 + }
  132 +}
  133 +
  134 +void AutoCookCheckConfigWindow::setupUi()
  135 +{
  136 + ui->cookTypeIcon->setPixmap(Define::icon(cook.type));
  137 + ui->selectCookButton->setText(cook.name);
  138 +
  139 + for (int idx = 0; idx < 5; idx++)
  140 + {
  141 + ConfigWidget cw = configWidgets.at(idx);
  142 +
  143 + CookConfig config = cook.configs[idx];
  144 + if (config.type == Define::ConfigNotUsed)
  145 + {
  146 + cw.button->hide();
  147 + cw.minimum->hide();
  148 + cw.maximum->hide();
  149 + cw.current->hide();
  150 + cw.slider->hide();
  151 + }
  152 + else
  153 + {
  154 + ConfigWidget cw = configWidgets.at(idx);
  155 + cw.button->show();
  156 + cw.minimum->show();
  157 + cw.maximum->show();
  158 + cw.current->show();
  159 + cw.slider->show();
  160 +
  161 + cw.button->setStyleSheet(
  162 + "QPushButton { image: url("
  163 + + Define::icon(config.type)
  164 + + ") } QPushButton:pressed, QPushButton:focus { image: url("
  165 + + Define::iconOverlay(config.type)
  166 + + ") }");
  167 +
  168 + cw.minimum->setText(Define::minimum(config.type));
  169 + cw.maximum->setText(Define::maximum(config.type));
  170 +
  171 + switch (config.type)
  172 + {
  173 + case Define::Time:
  174 + cw.slider->setSubPixmap(":/images/slider/sub_white.png");
  175 + break;
  176 + case Define::BurnDegree:
  177 + cw.slider->setSubPixmap(":/images/slider/sub_yellow.png");
  178 + break;
  179 + case Define::Brightness:
  180 + cw.slider->setSubPixmap(":/images/slider/sub_red.png");
  181 + break;
  182 + default:
  183 + cw.slider->setSubPixmap(":/images/slider/sub_blue.png");
  184 + break;
  185 + }
  186 +
  187 + cw.slider->blockSignals(true);
  188 + cw.slider->setMinimum(1);
  189 + cw.slider->setMaximum(config.maximum);
  190 + cw.slider->setValue(config.current);
  191 + cw.slider->blockSignals(false);
  192 + cw.slider->bigTickInterval = 1;
  193 +
  194 + switch (config.type)
  195 + {
  196 + case Define::Time:
  197 + cw.current->setText(Stringer::remainingTime(cook.time() * 1000, Stringer::fontSize14));
  198 + break;
  199 + case Define::BurnDegree:
  200 + cw.current->setText(Stringer::temperature(cook.coreTemp(), Stringer::fontSize14));
  201 + break;
  202 + default:
  203 + cw.current->setText(QString().sprintf(
  204 + "%d"
  205 + "<span style=\"font-size:11pt;\">/%d</span>",
  206 + config.current, config.maximum));
  207 + break;
  208 + }
  209 + }
  210 + }
  211 +}
  212 +
  213 +void AutoCookCheckConfigWindow::onEncoderLeft()
  214 +{
  215 + focusPreviousChild();
  216 +}
  217 +
  218 +void AutoCookCheckConfigWindow::onEncoderRight()
  219 +{
  220 + focusNextChild();
  221 +}
  222 +
  223 +void AutoCookCheckConfigWindow::onEncoderClicked(QWidget *clicked)
  224 +{
  225 + QPushButton *pb = qobject_cast<QPushButton *>(clicked);
  226 + if (pb)
  227 + pb->click();
  228 +}
  229 +
  230 +void AutoCookCheckConfigWindow::afterThreeSecs()
  231 +{
  232 + close();
  233 +}
  234 +
  235 +void AutoCookCheckConfigWindow::on_backButton_clicked()
  236 +{
  237 + close();
  238 +}
... ...
app/gui/oven_control/autocookcheckconfigwindow.h
... ... @@ -0,0 +1,58 @@
  1 +#ifndef AUTOCOOKCHECKCONFIGWINDOW_H
  2 +#define AUTOCOOKCHECKCONFIGWINDOW_H
  3 +
  4 +#include <QMainWindow>
  5 +#include <QPushButton>
  6 +#include <QLabel>
  7 +#include <QSlider>
  8 +
  9 +#include "cook.h"
  10 +#include "slider.h"
  11 +
  12 +namespace Ui {
  13 +class AutoCookCheckConfigWindow;
  14 +}
  15 +
  16 +class AutoCookCheckConfigWindow : public QMainWindow
  17 +{
  18 + Q_OBJECT
  19 +
  20 + struct ConfigWidget {
  21 + QPushButton *button;
  22 + QLabel *minimum;
  23 + QLabel *maximum;
  24 + QLabel *current;
  25 + Slider *slider;
  26 + };
  27 +
  28 +public:
  29 + explicit AutoCookCheckConfigWindow(QWidget *parent, Cook cook);
  30 + ~AutoCookCheckConfigWindow();
  31 +
  32 + bool eventFilter(QObject *watched, QEvent *event);
  33 +
  34 +protected:
  35 + void keyPressEvent(QKeyEvent *event);
  36 + void keyReleaseEvent(QKeyEvent *event);
  37 +
  38 +private:
  39 + Ui::AutoCookCheckConfigWindow *ui;
  40 + QList<ConfigWidget> configWidgets;
  41 + Cook cook;
  42 +
  43 + void setupUi();
  44 +
  45 + QTimer afterThreeSecsTimer;
  46 +
  47 + QWidget *pushed = NULL;
  48 +
  49 + void onEncoderLeft();
  50 + void onEncoderRight();
  51 + void onEncoderClicked(QWidget *clicked);
  52 +
  53 +private slots:
  54 + void afterThreeSecs();
  55 + void on_backButton_clicked();
  56 +};
  57 +
  58 +#endif // AUTOCOOKCHECKCONFIGWINDOW_H
... ...
app/gui/oven_control/autocookcheckconfigwindow.ui
... ... @@ -0,0 +1,1336 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui version="4.0">
  3 + <class>AutoCookCheckConfigWindow</class>
  4 + <widget class="QMainWindow" name="AutoCookCheckConfigWindow">
  5 + <property name="geometry">
  6 + <rect>
  7 + <x>0</x>
  8 + <y>0</y>
  9 + <width>900</width>
  10 + <height>1600</height>
  11 + </rect>
  12 + </property>
  13 + <property name="windowTitle">
  14 + <string>MainWindow</string>
  15 + </property>
  16 + <property name="styleSheet">
  17 + <string notr="true">#centralwidget { background-image: url(:/images/background/auto.png); }
  18 +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }
  19 +
  20 +QSlider::groove {
  21 +background-image: url(:/images/slider/groove.png);
  22 +background-repeat: no-repeat;
  23 +background-position: center;
  24 +}
  25 +
  26 +QSlider::sub-page {
  27 +background-repeat: no-repeat;
  28 +background-position: left center;
  29 +margin: 0px 5px;
  30 +}
  31 +
  32 +QSlider[sliderColor=&quot;red&quot;]::sub-page {
  33 +background-image: url(:/images/slider/sub_red.png);
  34 +}
  35 +
  36 +QSlider[sliderColor=&quot;yellow&quot;]::sub-page {
  37 +background-image: url(:/images/slider/sub_yellow.png);
  38 +}
  39 +
  40 +QSlider[sliderColor=&quot;white&quot;]::sub-page {
  41 +background-image: url(:/images/slider/sub_white.png);
  42 +}
  43 +
  44 +QSlider[sliderColor=&quot;blue&quot;]::sub-page {
  45 +background-image: url(:/images/slider/sub_blue.png);
  46 +}
  47 +
  48 +QSlider[sliderColor=&quot;green&quot;]::sub-page {
  49 +background-image: url(:/images/slider/sub_green.png);
  50 +}
  51 +
  52 +QSlider::handle {
  53 +background-image: url(:/images/slider/handle_big.png);
  54 +background-repeat: no-repeat;
  55 +background-position: center;
  56 +width: 23px;
  57 +height: 33px;
  58 +}
  59 +
  60 +QPushButton[style=&quot;icon&quot;] {
  61 +background-image: url(:/images/slider_icon/background.png);
  62 +background-repeat: no-repeat;
  63 +background-position: center;
  64 +border: none;
  65 +}</string>
  66 + </property>
  67 + <widget class="QWidget" name="centralwidget">
  68 + <widget class="QPushButton" name="configButton_4">
  69 + <property name="enabled">
  70 + <bool>false</bool>
  71 + </property>
  72 + <property name="geometry">
  73 + <rect>
  74 + <x>27</x>
  75 + <y>1115</y>
  76 + <width>140</width>
  77 + <height>140</height>
  78 + </rect>
  79 + </property>
  80 + <property name="text">
  81 + <string/>
  82 + </property>
  83 + <property name="style" stdset="0">
  84 + <string notr="true">icon</string>
  85 + </property>
  86 + </widget>
  87 + <widget class="Slider" name="configSlider_1" native="true">
  88 + <property name="enabled">
  89 + <bool>false</bool>
  90 + </property>
  91 + <property name="geometry">
  92 + <rect>
  93 + <x>185</x>
  94 + <y>645</y>
  95 + <width>666</width>
  96 + <height>60</height>
  97 + </rect>
  98 + </property>
  99 + <property name="focusPolicy">
  100 + <enum>Qt::ClickFocus</enum>
  101 + </property>
  102 + </widget>
  103 + <widget class="QLabel" name="configMinLabel_2">
  104 + <property name="enabled">
  105 + <bool>true</bool>
  106 + </property>
  107 + <property name="geometry">
  108 + <rect>
  109 + <x>185</x>
  110 + <y>780</y>
  111 + <width>151</width>
  112 + <height>51</height>
  113 + </rect>
  114 + </property>
  115 + <property name="palette">
  116 + <palette>
  117 + <active>
  118 + <colorrole role="WindowText">
  119 + <brush brushstyle="SolidPattern">
  120 + <color alpha="255">
  121 + <red>255</red>
  122 + <green>255</green>
  123 + <blue>255</blue>
  124 + </color>
  125 + </brush>
  126 + </colorrole>
  127 + </active>
  128 + <inactive>
  129 + <colorrole role="WindowText">
  130 + <brush brushstyle="SolidPattern">
  131 + <color alpha="255">
  132 + <red>255</red>
  133 + <green>255</green>
  134 + <blue>255</blue>
  135 + </color>
  136 + </brush>
  137 + </colorrole>
  138 + </inactive>
  139 + <disabled>
  140 + <colorrole role="WindowText">
  141 + <brush brushstyle="SolidPattern">
  142 + <color alpha="255">
  143 + <red>123</red>
  144 + <green>123</green>
  145 + <blue>123</blue>
  146 + </color>
  147 + </brush>
  148 + </colorrole>
  149 + </disabled>
  150 + </palette>
  151 + </property>
  152 + <property name="font">
  153 + <font>
  154 + <family>Malgun Gothic</family>
  155 + <pointsize>9</pointsize>
  156 + </font>
  157 + </property>
  158 + <property name="text">
  159 + <string>감소</string>
  160 + </property>
  161 + <property name="alignment">
  162 + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  163 + </property>
  164 + </widget>
  165 + <widget class="QLabel" name="cookTypeIcon">
  166 + <property name="geometry">
  167 + <rect>
  168 + <x>0</x>
  169 + <y>430</y>
  170 + <width>250</width>
  171 + <height>150</height>
  172 + </rect>
  173 + </property>
  174 + <property name="text">
  175 + <string/>
  176 + </property>
  177 + <property name="pixmap">
  178 + <pixmap>:/images/images/auto/005_auto_icon_01_ov.png</pixmap>
  179 + </property>
  180 + <property name="alignment">
  181 + <set>Qt::AlignCenter</set>
  182 + </property>
  183 + </widget>
  184 + <widget class="QLabel" name="configMinLabel_4">
  185 + <property name="enabled">
  186 + <bool>true</bool>
  187 + </property>
  188 + <property name="geometry">
  189 + <rect>
  190 + <x>185</x>
  191 + <y>1130</y>
  192 + <width>151</width>
  193 + <height>51</height>
  194 + </rect>
  195 + </property>
  196 + <property name="palette">
  197 + <palette>
  198 + <active>
  199 + <colorrole role="WindowText">
  200 + <brush brushstyle="SolidPattern">
  201 + <color alpha="255">
  202 + <red>255</red>
  203 + <green>255</green>
  204 + <blue>255</blue>
  205 + </color>
  206 + </brush>
  207 + </colorrole>
  208 + </active>
  209 + <inactive>
  210 + <colorrole role="WindowText">
  211 + <brush brushstyle="SolidPattern">
  212 + <color alpha="255">
  213 + <red>255</red>
  214 + <green>255</green>
  215 + <blue>255</blue>
  216 + </color>
  217 + </brush>
  218 + </colorrole>
  219 + </inactive>
  220 + <disabled>
  221 + <colorrole role="WindowText">
  222 + <brush brushstyle="SolidPattern">
  223 + <color alpha="255">
  224 + <red>123</red>
  225 + <green>123</green>
  226 + <blue>123</blue>
  227 + </color>
  228 + </brush>
  229 + </colorrole>
  230 + </disabled>
  231 + </palette>
  232 + </property>
  233 + <property name="font">
  234 + <font>
  235 + <family>Malgun Gothic</family>
  236 + <pointsize>9</pointsize>
  237 + </font>
  238 + </property>
  239 + <property name="text">
  240 + <string>감소</string>
  241 + </property>
  242 + <property name="alignment">
  243 + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  244 + </property>
  245 + </widget>
  246 + <widget class="QLabel" name="configMaxLabel_3">
  247 + <property name="enabled">
  248 + <bool>true</bool>
  249 + </property>
  250 + <property name="geometry">
  251 + <rect>
  252 + <x>700</x>
  253 + <y>950</y>
  254 + <width>151</width>
  255 + <height>51</height>
  256 + </rect>
  257 + </property>
  258 + <property name="palette">
  259 + <palette>
  260 + <active>
  261 + <colorrole role="WindowText">
  262 + <brush brushstyle="SolidPattern">
  263 + <color alpha="255">
  264 + <red>255</red>
  265 + <green>255</green>
  266 + <blue>255</blue>
  267 + </color>
  268 + </brush>
  269 + </colorrole>
  270 + </active>
  271 + <inactive>
  272 + <colorrole role="WindowText">
  273 + <brush brushstyle="SolidPattern">
  274 + <color alpha="255">
  275 + <red>255</red>
  276 + <green>255</green>
  277 + <blue>255</blue>
  278 + </color>
  279 + </brush>
  280 + </colorrole>
  281 + </inactive>
  282 + <disabled>
  283 + <colorrole role="WindowText">
  284 + <brush brushstyle="SolidPattern">
  285 + <color alpha="255">
  286 + <red>123</red>
  287 + <green>123</green>
  288 + <blue>123</blue>
  289 + </color>
  290 + </brush>
  291 + </colorrole>
  292 + </disabled>
  293 + </palette>
  294 + </property>
  295 + <property name="font">
  296 + <font>
  297 + <family>Malgun Gothic</family>
  298 + <pointsize>9</pointsize>
  299 + </font>
  300 + </property>
  301 + <property name="text">
  302 + <string>증가</string>
  303 + </property>
  304 + <property name="alignment">
  305 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  306 + </property>
  307 + </widget>
  308 + <widget class="QStackedWidget" name="upperStack">
  309 + <property name="geometry">
  310 + <rect>
  311 + <x>0</x>
  312 + <y>0</y>
  313 + <width>900</width>
  314 + <height>426</height>
  315 + </rect>
  316 + </property>
  317 + <widget class="QWidget" name="clockContainer">
  318 + <property name="styleSheet">
  319 + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string>
  320 + </property>
  321 + <widget class="Clock" name="clock" native="true">
  322 + <property name="geometry">
  323 + <rect>
  324 + <x>272</x>
  325 + <y>36</y>
  326 + <width>356</width>
  327 + <height>355</height>
  328 + </rect>
  329 + </property>
  330 + </widget>
  331 + <widget class="WashWarnIcon" name="label">
  332 + <property name="geometry">
  333 + <rect>
  334 + <x>800</x>
  335 + <y>320</y>
  336 + <width>80</width>
  337 + <height>84</height>
  338 + </rect>
  339 + </property>
  340 + </widget>
  341 + </widget>
  342 + <widget class="QWidget" name="page_2"/>
  343 + </widget>
  344 + <widget class="QLabel" name="configCurrentLabel_4">
  345 + <property name="enabled">
  346 + <bool>true</bool>
  347 + </property>
  348 + <property name="geometry">
  349 + <rect>
  350 + <x>199</x>
  351 + <y>1200</y>
  352 + <width>641</width>
  353 + <height>51</height>
  354 + </rect>
  355 + </property>
  356 + <property name="palette">
  357 + <palette>
  358 + <active>
  359 + <colorrole role="WindowText">
  360 + <brush brushstyle="SolidPattern">
  361 + <color alpha="255">
  362 + <red>255</red>
  363 + <green>255</green>
  364 + <blue>255</blue>
  365 + </color>
  366 + </brush>
  367 + </colorrole>
  368 + </active>
  369 + <inactive>
  370 + <colorrole role="WindowText">
  371 + <brush brushstyle="SolidPattern">
  372 + <color alpha="255">
  373 + <red>255</red>
  374 + <green>255</green>
  375 + <blue>255</blue>
  376 + </color>
  377 + </brush>
  378 + </colorrole>
  379 + </inactive>
  380 + <disabled>
  381 + <colorrole role="WindowText">
  382 + <brush brushstyle="SolidPattern">
  383 + <color alpha="255">
  384 + <red>123</red>
  385 + <green>123</green>
  386 + <blue>123</blue>
  387 + </color>
  388 + </brush>
  389 + </colorrole>
  390 + </disabled>
  391 + </palette>
  392 + </property>
  393 + <property name="font">
  394 + <font>
  395 + <family>Roboto</family>
  396 + <pointsize>16</pointsize>
  397 + <weight>75</weight>
  398 + <bold>true</bold>
  399 + </font>
  400 + </property>
  401 + <property name="text">
  402 + <string>스팀</string>
  403 + </property>
  404 + <property name="alignment">
  405 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  406 + </property>
  407 + </widget>
  408 + <widget class="QLabel" name="configMaxLabel_4">
  409 + <property name="enabled">
  410 + <bool>true</bool>
  411 + </property>
  412 + <property name="geometry">
  413 + <rect>
  414 + <x>700</x>
  415 + <y>1130</y>
  416 + <width>151</width>
  417 + <height>51</height>
  418 + </rect>
  419 + </property>
  420 + <property name="palette">
  421 + <palette>
  422 + <active>
  423 + <colorrole role="WindowText">
  424 + <brush brushstyle="SolidPattern">
  425 + <color alpha="255">
  426 + <red>255</red>
  427 + <green>255</green>
  428 + <blue>255</blue>
  429 + </color>
  430 + </brush>
  431 + </colorrole>
  432 + </active>
  433 + <inactive>
  434 + <colorrole role="WindowText">
  435 + <brush brushstyle="SolidPattern">
  436 + <color alpha="255">
  437 + <red>255</red>
  438 + <green>255</green>
  439 + <blue>255</blue>
  440 + </color>
  441 + </brush>
  442 + </colorrole>
  443 + </inactive>
  444 + <disabled>
  445 + <colorrole role="WindowText">
  446 + <brush brushstyle="SolidPattern">
  447 + <color alpha="255">
  448 + <red>123</red>
  449 + <green>123</green>
  450 + <blue>123</blue>
  451 + </color>
  452 + </brush>
  453 + </colorrole>
  454 + </disabled>
  455 + </palette>
  456 + </property>
  457 + <property name="font">
  458 + <font>
  459 + <family>Malgun Gothic</family>
  460 + <pointsize>9</pointsize>
  461 + </font>
  462 + </property>
  463 + <property name="text">
  464 + <string>증가</string>
  465 + </property>
  466 + <property name="alignment">
  467 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  468 + </property>
  469 + </widget>
  470 + <widget class="QPushButton" name="configButton_5">
  471 + <property name="enabled">
  472 + <bool>false</bool>
  473 + </property>
  474 + <property name="geometry">
  475 + <rect>
  476 + <x>27</x>
  477 + <y>1285</y>
  478 + <width>140</width>
  479 + <height>140</height>
  480 + </rect>
  481 + </property>
  482 + <property name="text">
  483 + <string/>
  484 + </property>
  485 + <property name="style" stdset="0">
  486 + <string notr="true">icon</string>
  487 + </property>
  488 + </widget>
  489 + <widget class="QPushButton" name="configButton_3">
  490 + <property name="enabled">
  491 + <bool>false</bool>
  492 + </property>
  493 + <property name="geometry">
  494 + <rect>
  495 + <x>27</x>
  496 + <y>935</y>
  497 + <width>140</width>
  498 + <height>140</height>
  499 + </rect>
  500 + </property>
  501 + <property name="text">
  502 + <string/>
  503 + </property>
  504 + <property name="style" stdset="0">
  505 + <string notr="true">icon</string>
  506 + </property>
  507 + </widget>
  508 + <widget class="QWidget" name="bottomBar" native="true">
  509 + <property name="geometry">
  510 + <rect>
  511 + <x>0</x>
  512 + <y>1450</y>
  513 + <width>900</width>
  514 + <height>150</height>
  515 + </rect>
  516 + </property>
  517 + <widget class="QPushButton" name="backButton">
  518 + <property name="geometry">
  519 + <rect>
  520 + <x>401</x>
  521 + <y>26</y>
  522 + <width>97</width>
  523 + <height>97</height>
  524 + </rect>
  525 + </property>
  526 + <property name="sizePolicy">
  527 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  528 + <horstretch>0</horstretch>
  529 + <verstretch>0</verstretch>
  530 + </sizepolicy>
  531 + </property>
  532 + <property name="styleSheet">
  533 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); }
  534 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/back_ov.png); }</string>
  535 + </property>
  536 + <property name="text">
  537 + <string/>
  538 + </property>
  539 + </widget>
  540 + </widget>
  541 + <widget class="QLabel" name="configCurrentLabel_5">
  542 + <property name="enabled">
  543 + <bool>true</bool>
  544 + </property>
  545 + <property name="geometry">
  546 + <rect>
  547 + <x>189</x>
  548 + <y>1370</y>
  549 + <width>651</width>
  550 + <height>51</height>
  551 + </rect>
  552 + </property>
  553 + <property name="palette">
  554 + <palette>
  555 + <active>
  556 + <colorrole role="WindowText">
  557 + <brush brushstyle="SolidPattern">
  558 + <color alpha="255">
  559 + <red>255</red>
  560 + <green>255</green>
  561 + <blue>255</blue>
  562 + </color>
  563 + </brush>
  564 + </colorrole>
  565 + </active>
  566 + <inactive>
  567 + <colorrole role="WindowText">
  568 + <brush brushstyle="SolidPattern">
  569 + <color alpha="255">
  570 + <red>255</red>
  571 + <green>255</green>
  572 + <blue>255</blue>
  573 + </color>
  574 + </brush>
  575 + </colorrole>
  576 + </inactive>
  577 + <disabled>
  578 + <colorrole role="WindowText">
  579 + <brush brushstyle="SolidPattern">
  580 + <color alpha="255">
  581 + <red>123</red>
  582 + <green>123</green>
  583 + <blue>123</blue>
  584 + </color>
  585 + </brush>
  586 + </colorrole>
  587 + </disabled>
  588 + </palette>
  589 + </property>
  590 + <property name="font">
  591 + <font>
  592 + <family>Roboto</family>
  593 + <pointsize>16</pointsize>
  594 + <weight>75</weight>
  595 + <bold>true</bold>
  596 + </font>
  597 + </property>
  598 + <property name="text">
  599 + <string>스팀</string>
  600 + </property>
  601 + <property name="alignment">
  602 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  603 + </property>
  604 + </widget>
  605 + <widget class="Slider" name="configSlider_3" native="true">
  606 + <property name="enabled">
  607 + <bool>false</bool>
  608 + </property>
  609 + <property name="geometry">
  610 + <rect>
  611 + <x>185</x>
  612 + <y>975</y>
  613 + <width>666</width>
  614 + <height>60</height>
  615 + </rect>
  616 + </property>
  617 + <property name="focusPolicy">
  618 + <enum>Qt::ClickFocus</enum>
  619 + </property>
  620 + </widget>
  621 + <widget class="QPushButton" name="configButton_1">
  622 + <property name="enabled">
  623 + <bool>false</bool>
  624 + </property>
  625 + <property name="geometry">
  626 + <rect>
  627 + <x>27</x>
  628 + <y>605</y>
  629 + <width>140</width>
  630 + <height>140</height>
  631 + </rect>
  632 + </property>
  633 + <property name="text">
  634 + <string/>
  635 + </property>
  636 + <property name="style" stdset="0">
  637 + <string notr="true">icon</string>
  638 + </property>
  639 + </widget>
  640 + <widget class="Slider" name="configSlider_2" native="true">
  641 + <property name="enabled">
  642 + <bool>false</bool>
  643 + </property>
  644 + <property name="geometry">
  645 + <rect>
  646 + <x>185</x>
  647 + <y>805</y>
  648 + <width>666</width>
  649 + <height>60</height>
  650 + </rect>
  651 + </property>
  652 + <property name="focusPolicy">
  653 + <enum>Qt::ClickFocus</enum>
  654 + </property>
  655 + </widget>
  656 + <widget class="QLabel" name="configMinLabel_5">
  657 + <property name="enabled">
  658 + <bool>true</bool>
  659 + </property>
  660 + <property name="geometry">
  661 + <rect>
  662 + <x>185</x>
  663 + <y>1300</y>
  664 + <width>151</width>
  665 + <height>51</height>
  666 + </rect>
  667 + </property>
  668 + <property name="palette">
  669 + <palette>
  670 + <active>
  671 + <colorrole role="WindowText">
  672 + <brush brushstyle="SolidPattern">
  673 + <color alpha="255">
  674 + <red>255</red>
  675 + <green>255</green>
  676 + <blue>255</blue>
  677 + </color>
  678 + </brush>
  679 + </colorrole>
  680 + </active>
  681 + <inactive>
  682 + <colorrole role="WindowText">
  683 + <brush brushstyle="SolidPattern">
  684 + <color alpha="255">
  685 + <red>255</red>
  686 + <green>255</green>
  687 + <blue>255</blue>
  688 + </color>
  689 + </brush>
  690 + </colorrole>
  691 + </inactive>
  692 + <disabled>
  693 + <colorrole role="WindowText">
  694 + <brush brushstyle="SolidPattern">
  695 + <color alpha="255">
  696 + <red>123</red>
  697 + <green>123</green>
  698 + <blue>123</blue>
  699 + </color>
  700 + </brush>
  701 + </colorrole>
  702 + </disabled>
  703 + </palette>
  704 + </property>
  705 + <property name="font">
  706 + <font>
  707 + <family>Malgun Gothic</family>
  708 + <pointsize>9</pointsize>
  709 + </font>
  710 + </property>
  711 + <property name="text">
  712 + <string>감소</string>
  713 + </property>
  714 + <property name="alignment">
  715 + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  716 + </property>
  717 + </widget>
  718 + <widget class="QLabel" name="configCurrentLabel_1">
  719 + <property name="enabled">
  720 + <bool>true</bool>
  721 + </property>
  722 + <property name="geometry">
  723 + <rect>
  724 + <x>199</x>
  725 + <y>690</y>
  726 + <width>641</width>
  727 + <height>51</height>
  728 + </rect>
  729 + </property>
  730 + <property name="palette">
  731 + <palette>
  732 + <active>
  733 + <colorrole role="WindowText">
  734 + <brush brushstyle="SolidPattern">
  735 + <color alpha="255">
  736 + <red>255</red>
  737 + <green>255</green>
  738 + <blue>255</blue>
  739 + </color>
  740 + </brush>
  741 + </colorrole>
  742 + </active>
  743 + <inactive>
  744 + <colorrole role="WindowText">
  745 + <brush brushstyle="SolidPattern">
  746 + <color alpha="255">
  747 + <red>255</red>
  748 + <green>255</green>
  749 + <blue>255</blue>
  750 + </color>
  751 + </brush>
  752 + </colorrole>
  753 + </inactive>
  754 + <disabled>
  755 + <colorrole role="WindowText">
  756 + <brush brushstyle="SolidPattern">
  757 + <color alpha="255">
  758 + <red>123</red>
  759 + <green>123</green>
  760 + <blue>123</blue>
  761 + </color>
  762 + </brush>
  763 + </colorrole>
  764 + </disabled>
  765 + </palette>
  766 + </property>
  767 + <property name="font">
  768 + <font>
  769 + <family>Roboto</family>
  770 + <pointsize>16</pointsize>
  771 + <weight>75</weight>
  772 + <bold>true</bold>
  773 + </font>
  774 + </property>
  775 + <property name="text">
  776 + <string>스팀</string>
  777 + </property>
  778 + <property name="alignment">
  779 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  780 + </property>
  781 + </widget>
  782 + <widget class="QPushButton" name="selectCookButton">
  783 + <property name="geometry">
  784 + <rect>
  785 + <x>584</x>
  786 + <y>480</y>
  787 + <width>288</width>
  788 + <height>70</height>
  789 + </rect>
  790 + </property>
  791 + <property name="font">
  792 + <font>
  793 + <family>Roboto</family>
  794 + <pointsize>10</pointsize>
  795 + <weight>75</weight>
  796 + <bold>true</bold>
  797 + </font>
  798 + </property>
  799 + <property name="focusPolicy">
  800 + <enum>Qt::NoFocus</enum>
  801 + </property>
  802 + <property name="styleSheet">
  803 + <string notr="true">QPushButton {
  804 +border-image: url(:/images/button/288.png);
  805 +}
  806 +QPushButton::pressed, QPushButton:focus {
  807 +border-image: url(:/images/button/288_ov.png);
  808 +}</string>
  809 + </property>
  810 + <property name="text">
  811 + <string/>
  812 + </property>
  813 + </widget>
  814 + <widget class="QLabel" name="configMaxLabel_2">
  815 + <property name="enabled">
  816 + <bool>true</bool>
  817 + </property>
  818 + <property name="geometry">
  819 + <rect>
  820 + <x>700</x>
  821 + <y>780</y>
  822 + <width>151</width>
  823 + <height>51</height>
  824 + </rect>
  825 + </property>
  826 + <property name="palette">
  827 + <palette>
  828 + <active>
  829 + <colorrole role="WindowText">
  830 + <brush brushstyle="SolidPattern">
  831 + <color alpha="255">
  832 + <red>255</red>
  833 + <green>255</green>
  834 + <blue>255</blue>
  835 + </color>
  836 + </brush>
  837 + </colorrole>
  838 + </active>
  839 + <inactive>
  840 + <colorrole role="WindowText">
  841 + <brush brushstyle="SolidPattern">
  842 + <color alpha="255">
  843 + <red>255</red>
  844 + <green>255</green>
  845 + <blue>255</blue>
  846 + </color>
  847 + </brush>
  848 + </colorrole>
  849 + </inactive>
  850 + <disabled>
  851 + <colorrole role="WindowText">
  852 + <brush brushstyle="SolidPattern">
  853 + <color alpha="255">
  854 + <red>123</red>
  855 + <green>123</green>
  856 + <blue>123</blue>
  857 + </color>
  858 + </brush>
  859 + </colorrole>
  860 + </disabled>
  861 + </palette>
  862 + </property>
  863 + <property name="font">
  864 + <font>
  865 + <family>Malgun Gothic</family>
  866 + <pointsize>9</pointsize>
  867 + </font>
  868 + </property>
  869 + <property name="text">
  870 + <string>증가</string>
  871 + </property>
  872 + <property name="alignment">
  873 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  874 + </property>
  875 + </widget>
  876 + <widget class="Slider" name="configSlider_5" native="true">
  877 + <property name="enabled">
  878 + <bool>false</bool>
  879 + </property>
  880 + <property name="geometry">
  881 + <rect>
  882 + <x>185</x>
  883 + <y>1325</y>
  884 + <width>666</width>
  885 + <height>60</height>
  886 + </rect>
  887 + </property>
  888 + <property name="focusPolicy">
  889 + <enum>Qt::ClickFocus</enum>
  890 + </property>
  891 + </widget>
  892 + <widget class="QLabel" name="configMinLabel_3">
  893 + <property name="enabled">
  894 + <bool>true</bool>
  895 + </property>
  896 + <property name="geometry">
  897 + <rect>
  898 + <x>185</x>
  899 + <y>950</y>
  900 + <width>151</width>
  901 + <height>51</height>
  902 + </rect>
  903 + </property>
  904 + <property name="palette">
  905 + <palette>
  906 + <active>
  907 + <colorrole role="WindowText">
  908 + <brush brushstyle="SolidPattern">
  909 + <color alpha="255">
  910 + <red>255</red>
  911 + <green>255</green>
  912 + <blue>255</blue>
  913 + </color>
  914 + </brush>
  915 + </colorrole>
  916 + </active>
  917 + <inactive>
  918 + <colorrole role="WindowText">
  919 + <brush brushstyle="SolidPattern">
  920 + <color alpha="255">
  921 + <red>255</red>
  922 + <green>255</green>
  923 + <blue>255</blue>
  924 + </color>
  925 + </brush>
  926 + </colorrole>
  927 + </inactive>
  928 + <disabled>
  929 + <colorrole role="WindowText">
  930 + <brush brushstyle="SolidPattern">
  931 + <color alpha="255">
  932 + <red>123</red>
  933 + <green>123</green>
  934 + <blue>123</blue>
  935 + </color>
  936 + </brush>
  937 + </colorrole>
  938 + </disabled>
  939 + </palette>
  940 + </property>
  941 + <property name="font">
  942 + <font>
  943 + <family>Malgun Gothic</family>
  944 + <pointsize>9</pointsize>
  945 + </font>
  946 + </property>
  947 + <property name="text">
  948 + <string>감소</string>
  949 + </property>
  950 + <property name="alignment">
  951 + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  952 + </property>
  953 + </widget>
  954 + <widget class="QLabel" name="configMaxLabel_5">
  955 + <property name="enabled">
  956 + <bool>true</bool>
  957 + </property>
  958 + <property name="geometry">
  959 + <rect>
  960 + <x>700</x>
  961 + <y>1300</y>
  962 + <width>151</width>
  963 + <height>51</height>
  964 + </rect>
  965 + </property>
  966 + <property name="palette">
  967 + <palette>
  968 + <active>
  969 + <colorrole role="WindowText">
  970 + <brush brushstyle="SolidPattern">
  971 + <color alpha="255">
  972 + <red>255</red>
  973 + <green>255</green>
  974 + <blue>255</blue>
  975 + </color>
  976 + </brush>
  977 + </colorrole>
  978 + </active>
  979 + <inactive>
  980 + <colorrole role="WindowText">
  981 + <brush brushstyle="SolidPattern">
  982 + <color alpha="255">
  983 + <red>255</red>
  984 + <green>255</green>
  985 + <blue>255</blue>
  986 + </color>
  987 + </brush>
  988 + </colorrole>
  989 + </inactive>
  990 + <disabled>
  991 + <colorrole role="WindowText">
  992 + <brush brushstyle="SolidPattern">
  993 + <color alpha="255">
  994 + <red>123</red>
  995 + <green>123</green>
  996 + <blue>123</blue>
  997 + </color>
  998 + </brush>
  999 + </colorrole>
  1000 + </disabled>
  1001 + </palette>
  1002 + </property>
  1003 + <property name="font">
  1004 + <font>
  1005 + <family>Malgun Gothic</family>
  1006 + <pointsize>9</pointsize>
  1007 + </font>
  1008 + </property>
  1009 + <property name="text">
  1010 + <string>증가</string>
  1011 + </property>
  1012 + <property name="alignment">
  1013 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  1014 + </property>
  1015 + </widget>
  1016 + <widget class="QPushButton" name="configButton_2">
  1017 + <property name="enabled">
  1018 + <bool>false</bool>
  1019 + </property>
  1020 + <property name="geometry">
  1021 + <rect>
  1022 + <x>27</x>
  1023 + <y>765</y>
  1024 + <width>140</width>
  1025 + <height>140</height>
  1026 + </rect>
  1027 + </property>
  1028 + <property name="text">
  1029 + <string/>
  1030 + </property>
  1031 + <property name="style" stdset="0">
  1032 + <string notr="true">icon</string>
  1033 + </property>
  1034 + </widget>
  1035 + <widget class="QLabel" name="configCurrentLabel_3">
  1036 + <property name="enabled">
  1037 + <bool>true</bool>
  1038 + </property>
  1039 + <property name="geometry">
  1040 + <rect>
  1041 + <x>199</x>
  1042 + <y>1020</y>
  1043 + <width>641</width>
  1044 + <height>51</height>
  1045 + </rect>
  1046 + </property>
  1047 + <property name="palette">
  1048 + <palette>
  1049 + <active>
  1050 + <colorrole role="WindowText">
  1051 + <brush brushstyle="SolidPattern">
  1052 + <color alpha="255">
  1053 + <red>255</red>
  1054 + <green>255</green>
  1055 + <blue>255</blue>
  1056 + </color>
  1057 + </brush>
  1058 + </colorrole>
  1059 + </active>
  1060 + <inactive>
  1061 + <colorrole role="WindowText">
  1062 + <brush brushstyle="SolidPattern">
  1063 + <color alpha="255">
  1064 + <red>255</red>
  1065 + <green>255</green>
  1066 + <blue>255</blue>
  1067 + </color>
  1068 + </brush>
  1069 + </colorrole>
  1070 + </inactive>
  1071 + <disabled>
  1072 + <colorrole role="WindowText">
  1073 + <brush brushstyle="SolidPattern">
  1074 + <color alpha="255">
  1075 + <red>123</red>
  1076 + <green>123</green>
  1077 + <blue>123</blue>
  1078 + </color>
  1079 + </brush>
  1080 + </colorrole>
  1081 + </disabled>
  1082 + </palette>
  1083 + </property>
  1084 + <property name="font">
  1085 + <font>
  1086 + <family>Roboto</family>
  1087 + <pointsize>16</pointsize>
  1088 + <weight>75</weight>
  1089 + <bold>true</bold>
  1090 + </font>
  1091 + </property>
  1092 + <property name="text">
  1093 + <string>스팀</string>
  1094 + </property>
  1095 + <property name="alignment">
  1096 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  1097 + </property>
  1098 + </widget>
  1099 + <widget class="QLabel" name="configMaxLabel_1">
  1100 + <property name="enabled">
  1101 + <bool>true</bool>
  1102 + </property>
  1103 + <property name="geometry">
  1104 + <rect>
  1105 + <x>700</x>
  1106 + <y>620</y>
  1107 + <width>151</width>
  1108 + <height>51</height>
  1109 + </rect>
  1110 + </property>
  1111 + <property name="palette">
  1112 + <palette>
  1113 + <active>
  1114 + <colorrole role="WindowText">
  1115 + <brush brushstyle="SolidPattern">
  1116 + <color alpha="255">
  1117 + <red>255</red>
  1118 + <green>255</green>
  1119 + <blue>255</blue>
  1120 + </color>
  1121 + </brush>
  1122 + </colorrole>
  1123 + </active>
  1124 + <inactive>
  1125 + <colorrole role="WindowText">
  1126 + <brush brushstyle="SolidPattern">
  1127 + <color alpha="255">
  1128 + <red>255</red>
  1129 + <green>255</green>
  1130 + <blue>255</blue>
  1131 + </color>
  1132 + </brush>
  1133 + </colorrole>
  1134 + </inactive>
  1135 + <disabled>
  1136 + <colorrole role="WindowText">
  1137 + <brush brushstyle="SolidPattern">
  1138 + <color alpha="255">
  1139 + <red>123</red>
  1140 + <green>123</green>
  1141 + <blue>123</blue>
  1142 + </color>
  1143 + </brush>
  1144 + </colorrole>
  1145 + </disabled>
  1146 + </palette>
  1147 + </property>
  1148 + <property name="font">
  1149 + <font>
  1150 + <family>Malgun Gothic</family>
  1151 + <pointsize>9</pointsize>
  1152 + </font>
  1153 + </property>
  1154 + <property name="text">
  1155 + <string>증가</string>
  1156 + </property>
  1157 + <property name="alignment">
  1158 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  1159 + </property>
  1160 + </widget>
  1161 + <widget class="Slider" name="configSlider_4" native="true">
  1162 + <property name="enabled">
  1163 + <bool>false</bool>
  1164 + </property>
  1165 + <property name="geometry">
  1166 + <rect>
  1167 + <x>185</x>
  1168 + <y>1155</y>
  1169 + <width>666</width>
  1170 + <height>60</height>
  1171 + </rect>
  1172 + </property>
  1173 + <property name="focusPolicy">
  1174 + <enum>Qt::ClickFocus</enum>
  1175 + </property>
  1176 + </widget>
  1177 + <widget class="QLabel" name="configCurrentLabel_2">
  1178 + <property name="enabled">
  1179 + <bool>true</bool>
  1180 + </property>
  1181 + <property name="geometry">
  1182 + <rect>
  1183 + <x>199</x>
  1184 + <y>850</y>
  1185 + <width>641</width>
  1186 + <height>51</height>
  1187 + </rect>
  1188 + </property>
  1189 + <property name="palette">
  1190 + <palette>
  1191 + <active>
  1192 + <colorrole role="WindowText">
  1193 + <brush brushstyle="SolidPattern">
  1194 + <color alpha="255">
  1195 + <red>255</red>
  1196 + <green>255</green>
  1197 + <blue>255</blue>
  1198 + </color>
  1199 + </brush>
  1200 + </colorrole>
  1201 + </active>
  1202 + <inactive>
  1203 + <colorrole role="WindowText">
  1204 + <brush brushstyle="SolidPattern">
  1205 + <color alpha="255">
  1206 + <red>255</red>
  1207 + <green>255</green>
  1208 + <blue>255</blue>
  1209 + </color>
  1210 + </brush>
  1211 + </colorrole>
  1212 + </inactive>
  1213 + <disabled>
  1214 + <colorrole role="WindowText">
  1215 + <brush brushstyle="SolidPattern">
  1216 + <color alpha="255">
  1217 + <red>123</red>
  1218 + <green>123</green>
  1219 + <blue>123</blue>
  1220 + </color>
  1221 + </brush>
  1222 + </colorrole>
  1223 + </disabled>
  1224 + </palette>
  1225 + </property>
  1226 + <property name="font">
  1227 + <font>
  1228 + <family>Roboto</family>
  1229 + <pointsize>16</pointsize>
  1230 + <weight>75</weight>
  1231 + <bold>true</bold>
  1232 + </font>
  1233 + </property>
  1234 + <property name="text">
  1235 + <string>스팀</string>
  1236 + </property>
  1237 + <property name="alignment">
  1238 + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  1239 + </property>
  1240 + </widget>
  1241 + <widget class="QLabel" name="configMinLabel_1">
  1242 + <property name="enabled">
  1243 + <bool>true</bool>
  1244 + </property>
  1245 + <property name="geometry">
  1246 + <rect>
  1247 + <x>185</x>
  1248 + <y>620</y>
  1249 + <width>151</width>
  1250 + <height>51</height>
  1251 + </rect>
  1252 + </property>
  1253 + <property name="palette">
  1254 + <palette>
  1255 + <active>
  1256 + <colorrole role="WindowText">
  1257 + <brush brushstyle="SolidPattern">
  1258 + <color alpha="255">
  1259 + <red>255</red>
  1260 + <green>255</green>
  1261 + <blue>255</blue>
  1262 + </color>
  1263 + </brush>
  1264 + </colorrole>
  1265 + </active>
  1266 + <inactive>
  1267 + <colorrole role="WindowText">
  1268 + <brush brushstyle="SolidPattern">
  1269 + <color alpha="255">
  1270 + <red>255</red>
  1271 + <green>255</green>
  1272 + <blue>255</blue>
  1273 + </color>
  1274 + </brush>
  1275 + </colorrole>
  1276 + </inactive>
  1277 + <disabled>
  1278 + <colorrole role="WindowText">
  1279 + <brush brushstyle="SolidPattern">
  1280 + <color alpha="255">
  1281 + <red>123</red>
  1282 + <green>123</green>
  1283 + <blue>123</blue>
  1284 + </color>
  1285 + </brush>
  1286 + </colorrole>
  1287 + </disabled>
  1288 + </palette>
  1289 + </property>
  1290 + <property name="font">
  1291 + <font>
  1292 + <family>Malgun Gothic</family>
  1293 + <pointsize>9</pointsize>
  1294 + </font>
  1295 + </property>
  1296 + <property name="text">
  1297 + <string>감소</string>
  1298 + </property>
  1299 + <property name="alignment">
  1300 + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  1301 + </property>
  1302 + </widget>
  1303 + </widget>
  1304 + </widget>
  1305 + <customwidgets>
  1306 + <customwidget>
  1307 + <class>Clock</class>
  1308 + <extends>QWidget</extends>
  1309 + <header>clock.h</header>
  1310 + <container>1</container>
  1311 + </customwidget>
  1312 + <customwidget>
  1313 + <class>WashWarnIcon</class>
  1314 + <extends>QLabel</extends>
  1315 + <header>washwarnicon.h</header>
  1316 + </customwidget>
  1317 + <customwidget>
  1318 + <class>Slider</class>
  1319 + <extends>QWidget</extends>
  1320 + <header>slider.h</header>
  1321 + <container>1</container>
  1322 + </customwidget>
  1323 + </customwidgets>
  1324 + <tabstops>
  1325 + <tabstop>backButton</tabstop>
  1326 + <tabstop>configButton_5</tabstop>
  1327 + <tabstop>configButton_4</tabstop>
  1328 + <tabstop>configButton_3</tabstop>
  1329 + <tabstop>configButton_1</tabstop>
  1330 + <tabstop>configButton_2</tabstop>
  1331 + </tabstops>
  1332 + <resources>
  1333 + <include location="resources.qrc"/>
  1334 + </resources>
  1335 + <connections/>
  1336 +</ui>
... ...
app/gui/oven_control/autocookcheckwindow.cpp
... ... @@ -0,0 +1,357 @@
  1 +#include "autocookcheckwindow.h"
  2 +#include "ui_autocookcheckwindow.h"
  3 +
  4 +#include <QKeyEvent>
  5 +
  6 +#include "mainwindow.h"
  7 +#include "configwindow.h"
  8 +#include "washwindow.h"
  9 +#include "confirmpopup.h"
  10 +#include "favoritenamepopup.h"
  11 +#include "stringer.h"
  12 +#include "soundplayer.h"
  13 +
  14 +AutoCookCheckWindow::AutoCookCheckWindow(QWidget *parent, Cook cook) :
  15 + QMainWindow(parent),
  16 + ui(new Ui::AutoCookCheckWindow),
  17 + cook(cook)
  18 +{
  19 + ui->setupUi(this);
  20 +
  21 + ui->clockContainer->setParent(ui->upperStack);
  22 + setAttribute(Qt::WA_DeleteOnClose);
  23 +
  24 + if (!this->cook.isLoaded())
  25 + this->cook.load();
  26 +
  27 + setupUi();
  28 +
  29 + foreach (QPushButton *button, findChildren<QPushButton *>())
  30 + connect(button, &QPushButton::pressed, SoundPlayer::playClick);
  31 +
  32 + foreach (QWidget *w, findChildren<QWidget *>())
  33 + w->installEventFilter(this);
  34 +
  35 + afterThreeSecsTimer.setSingleShot(true);
  36 + afterThreeSecsTimer.setInterval(3000);
  37 + afterThreeSecsTimer.start();
  38 + connect(&afterThreeSecsTimer, SIGNAL(timeout()), SLOT(afterThreeSecs()));
  39 +
  40 + setFocus();
  41 +}
  42 +
  43 +AutoCookCheckWindow::~AutoCookCheckWindow()
  44 +{
  45 + delete ui;
  46 +}
  47 +
  48 +bool AutoCookCheckWindow::eventFilter(QObject */*watched*/, QEvent *event)
  49 +{
  50 + switch (event->type())
  51 + {
  52 + case QEvent::KeyPress:
  53 + case QEvent::KeyRelease:
  54 + case QEvent::MouseButtonPress:
  55 + case QEvent::MouseButtonRelease:
  56 + case QEvent::MouseMove:
  57 + afterThreeSecsTimer.start();
  58 + break;
  59 + default:
  60 + break;
  61 + }
  62 +
  63 + return false;
  64 +}
  65 +
  66 +void AutoCookCheckWindow::keyPressEvent(QKeyEvent *event)
  67 +{
  68 + switch (event->key())
  69 + {
  70 + case 0x01000030: // Turn left
  71 + onEncoderLeft();
  72 + break;
  73 + case 0x01000031: // Push
  74 + pushed = focusWidget();
  75 + break;
  76 + case 0x01000032: // Turn right
  77 + onEncoderRight();
  78 + break;
  79 + }
  80 +}
  81 +
  82 +void AutoCookCheckWindow::keyReleaseEvent(QKeyEvent *event)
  83 +{
  84 + switch (event->key())
  85 + {
  86 + case 0x01000030: // Turn left
  87 + onEncoderLeft();
  88 + break;
  89 + case 0x01000031: // Push
  90 + if (focusWidget() == pushed)
  91 + onEncoderClicked(pushed);
  92 +
  93 + pushed = NULL;
  94 + break;
  95 + case 0x01000032: // Turn right
  96 + onEncoderRight();
  97 + break;
  98 + }
  99 +}
  100 +
  101 +void AutoCookCheckWindow::setupUi()
  102 +{
  103 + steamModeIcon.load(":/images/cook_mode/small_steam.png");
  104 + dryModeIcon.load(":/images/cook_mode/small_dryheat.png");
  105 + combiModeIcon.load(":/images/cook_mode/small_combi.png");
  106 +
  107 + ui->cookTypeIcon->setPixmap(Define::icon(cook.type));
  108 + ui->selectCookButton->setText(cook.name);
  109 +
  110 + int msecs = 0;
  111 + for (int i = 0; i < cook.steps.size(); i++)
  112 + msecs += cook.steps[i].time * 1000;
  113 +
  114 + ui->timeLabel->setText(Stringer::remainingTime(msecs));
  115 +
  116 + if (cook.isCoreTempValid())
  117 + ui->interTempLabel->setText(Stringer::temperature(cook.coreTemp()));
  118 + else
  119 + {
  120 + ui->interTempIcon->hide();
  121 + ui->interTempLabel->hide();
  122 + }
  123 +
  124 + ui->stepIndicator->setMaximum(cook.steps.size() - 1);
  125 +
  126 + ui->cookStepAnimation->start(300);
  127 +
  128 + ui->humidityGauge->setMinimum(0);
  129 + ui->humidityGauge->setMaximum(100);
  130 + ui->humidityGauge->setValue(0);
  131 +
  132 + ui->heatGauge->setMinimum(30);
  133 + ui->heatGauge->setMaximum(300);
  134 + ui->heatGauge->setValue(30);
  135 +
  136 + ui->doorStepLabel->hide();
  137 +
  138 + selectedStepIndex = 0;
  139 + lastViewCookMode = Define::InvalidMode;
  140 + lastViewCookType = Define::Invalid;
  141 + lastViewDoorType = Define::Invalid;
  142 +
  143 + updateView();
  144 +}
  145 +
  146 +void AutoCookCheckWindow::onEncoderLeft()
  147 +{
  148 + focusPreviousChild();
  149 +}
  150 +
  151 +void AutoCookCheckWindow::onEncoderRight()
  152 +{
  153 + focusNextChild();
  154 +}
  155 +
  156 +void AutoCookCheckWindow::onEncoderClicked(QWidget *clicked)
  157 +{
  158 + QPushButton *b = qobject_cast<QPushButton *>(clicked);
  159 + if (b)
  160 + b->click();
  161 +}
  162 +
  163 +void AutoCookCheckWindow::updateView()
  164 +{
  165 + ui->stepIndicator->setCurrentIndex(selectedStepIndex);
  166 +
  167 + CookStep showingStep = cook.steps[selectedStepIndex];
  168 + if (Define::classify(showingStep.type) == Define::DoorClass)
  169 + {
  170 + ui->cookStepIcon->hide();
  171 + ui->cookStepLabel->hide();
  172 + ui->cookModeIcon->hide();
  173 + ui->humidityGauge->hide();
  174 + ui->humidityLabel->hide();
  175 + ui->heatGauge->hide();
  176 + ui->heatLabel->hide();
  177 + ui->doorStepLabel->show();
  178 + ui->cookStepAnimation->show();
  179 +
  180 + if (showingStep.type != lastViewDoorType)
  181 + {
  182 + lastViewDoorType = showingStep.type;
  183 +
  184 + ui->doorStepLabel->setText(Define::name(showingStep.type));
  185 + ui->cookStepAnimation->clear();
  186 + switch (showingStep.type)
  187 + {
  188 + case Define::PutThermometer:
  189 + ui->doorStepLabel->setText(tr("중심 온도계 삽입"));
  190 + ui->cookStepAnimation->load(":/images/animation/thermometer_01.png");
  191 + ui->cookStepAnimation->load(":/images/animation/thermometer_02.png");
  192 + ui->cookStepAnimation->setGeometry((900-210)/2, 800, 210, 307);
  193 + ui->cookStepAnimation->start(300);
  194 + break;
  195 + case Define::Load:
  196 + ui->doorStepLabel->setText(tr("식재료 적재"));
  197 + ui->cookStepAnimation->load(":/images/animation/load_01.png");
  198 + ui->cookStepAnimation->load(":/images/animation/load_02.png");
  199 + ui->cookStepAnimation->load(":/images/animation/load_03.png");
  200 + ui->cookStepAnimation->load(":/images/animation/load_04.png");
  201 + ui->cookStepAnimation->load(":/images/animation/load_03.png");
  202 + ui->cookStepAnimation->load(":/images/animation/load_02.png");
  203 + ui->cookStepAnimation->load(":/images/animation/load_01.png");
  204 + ui->cookStepAnimation->setGeometry((900-264)/2, 800, 264, 307);
  205 + ui->cookStepAnimation->start(300);
  206 + break;
  207 + case Define::Cut:
  208 + ui->doorStepLabel->setText(tr("자르기"));
  209 + ui->cookStepAnimation->load(":/images/animation/cut_01.png");
  210 + ui->cookStepAnimation->load(":/images/animation/cut_02.png");
  211 + ui->cookStepAnimation->load(":/images/animation/cut_03.png");
  212 + ui->cookStepAnimation->setGeometry((900-264)/2, 800, 264, 307);
  213 + ui->cookStepAnimation->start(300);
  214 + break;
  215 + case Define::Pour:
  216 + ui->doorStepLabel->setText(tr("물 붓기"));
  217 + ui->cookStepAnimation->load(":/images/animation/pour_01.png");
  218 + ui->cookStepAnimation->load(":/images/animation/pour_02.png");
  219 + ui->cookStepAnimation->load(":/images/animation/pour_03.png");
  220 + ui->cookStepAnimation->load(":/images/animation/pour_04.png");
  221 + ui->cookStepAnimation->setGeometry((900-264)/2, 800, 264, 307);
  222 + ui->cookStepAnimation->start(300);
  223 + break;
  224 + default:
  225 + ui->doorStepLabel->hide();
  226 + ui->cookStepAnimation->hide();
  227 + }
  228 + }
  229 + }
  230 + else
  231 + {
  232 + ui->doorStepLabel->hide();
  233 + ui->cookStepAnimation->hide();
  234 + ui->cookStepIcon->show();
  235 + ui->cookStepLabel->show();
  236 + ui->cookModeIcon->show();
  237 + ui->humidityGauge->show();
  238 + ui->humidityLabel->show();
  239 + ui->heatGauge->show();
  240 + ui->heatLabel->show();
  241 +
  242 + if (showingStep.type != lastViewCookType)
  243 + {
  244 + lastViewCookType = showingStep.type;
  245 +
  246 + ui->cookStepIcon->setPixmap(Define::icon(showingStep.type));
  247 + ui->cookStepLabel->setText(Define::name(showingStep.type));
  248 + }
  249 +
  250 + if (showingStep.mode != lastViewCookMode)
  251 + {
  252 + lastViewCookMode = showingStep.mode;
  253 +
  254 + switch (showingStep.mode)
  255 + {
  256 + case Define::SteamMode:
  257 + ui->cookModeIcon->setPixmap(steamModeIcon);
  258 + break;
  259 + case Define::CombiMode:
  260 + ui->cookModeIcon->setPixmap(combiModeIcon);
  261 + break;
  262 + case Define::DryMode:
  263 + ui->cookModeIcon->setPixmap(dryModeIcon);
  264 + break;
  265 + case Define::InvalidClass:
  266 + ui->cookModeIcon->hide();
  267 + break;
  268 + }
  269 + }
  270 +
  271 + ui->humidityLabel->setText(QString("%1%").arg(showingStep.humidity));
  272 + ui->humidityGauge->setValue(showingStep.humidity);
  273 +
  274 + ui->heatLabel->setText(Stringer::temperature(showingStep.temp));
  275 + ui->heatGauge->setValue(showingStep.temp);
  276 + }
  277 +}
  278 +
  279 +void AutoCookCheckWindow::addFavorite()
  280 +{
  281 + AutoCookSetting s;
  282 + s.type = cook.type;
  283 + s.root = cook.root;
  284 + for (int i = 0; i < 5; i++)
  285 + s.configs[i] = cook.configs[i].current;
  286 +
  287 + FavoriteNamePopup *p = new FavoriteNamePopup(this, s);
  288 + p->showFullScreen();
  289 +}
  290 +
  291 +void AutoCookCheckWindow::afterThreeSecs()
  292 +{
  293 + emit back();
  294 + close();
  295 +}
  296 +
  297 +void AutoCookCheckWindow::on_selectCookButton_clicked()
  298 +{
  299 +
  300 +}
  301 +
  302 +void AutoCookCheckWindow::on_showPrevStepButton_clicked()
  303 +{
  304 + if (selectedStepIndex > 0)
  305 + {
  306 + selectedStepIndex--;
  307 + updateView();
  308 + }
  309 +}
  310 +
  311 +void AutoCookCheckWindow::on_showNextStepButton_clicked()
  312 +{
  313 + if (selectedStepIndex + 1 < cook.steps.size())
  314 + {
  315 + selectedStepIndex++;
  316 + updateView();
  317 + }
  318 +}
  319 +
  320 +void AutoCookCheckWindow::on_backButton_clicked()
  321 +{
  322 + emit back();
  323 + close();
  324 +}
  325 +
  326 +void AutoCookCheckWindow::on_configButton_clicked()
  327 +{
  328 + ConfigWindow *w = new ConfigWindow(MainWindow::getInstance());
  329 + w->setWindowModality(Qt::WindowModal);
  330 + w->showFullScreen();
  331 + w->raise();
  332 +
  333 + MainWindow::jump(w);
  334 +}
  335 +
  336 +void AutoCookCheckWindow::on_favoritesButton_clicked()
  337 +{
  338 + ConfirmPopup *p = new ConfirmPopup(this, tr("즐겨찾기 항목에 추가하시겠습니까?"));
  339 + p->showFullScreen();
  340 +
  341 + connect(p, SIGNAL(accepted()), SLOT(addFavorite()));
  342 +}
  343 +
  344 +void AutoCookCheckWindow::on_washButton_clicked()
  345 +{
  346 + WashWindow *w = new WashWindow(MainWindow::getInstance());
  347 + w->setWindowModality(Qt::WindowModal);
  348 + w->showFullScreen();
  349 + w->raise();
  350 +
  351 + MainWindow::jump(w);
  352 +}
  353 +
  354 +void AutoCookCheckWindow::on_helpButton_clicked()
  355 +{
  356 +
  357 +}
... ...
app/gui/oven_control/autocookcheckwindow.h
... ... @@ -0,0 +1,69 @@
  1 +#ifndef AUTOCOOKCHECKWINDOW_H
  2 +#define AUTOCOOKCHECKWINDOW_H
  3 +
  4 +#include <QMainWindow>
  5 +
  6 +#include "cook.h"
  7 +
  8 +namespace Ui {
  9 +class AutoCookCheckWindow;
  10 +}
  11 +
  12 +class AutoCookCheckWindow : public QMainWindow
  13 +{
  14 + Q_OBJECT
  15 +
  16 +public:
  17 + explicit AutoCookCheckWindow(QWidget *parent, Cook cook);
  18 + ~AutoCookCheckWindow();
  19 +
  20 + bool eventFilter(QObject *watched, QEvent *event);
  21 +
  22 +protected:
  23 + void keyPressEvent(QKeyEvent *event);
  24 + void keyReleaseEvent(QKeyEvent *event);
  25 +
  26 +private:
  27 + Ui::AutoCookCheckWindow *ui;
  28 +
  29 + Cook cook;
  30 +
  31 + QPixmap steamModeIcon;
  32 + QPixmap dryModeIcon;
  33 + QPixmap combiModeIcon;
  34 +
  35 + int selectedStepIndex;
  36 +
  37 + Define::StepType lastViewDoorType;
  38 + Define::StepType lastViewCookType;
  39 + Define::Mode lastViewCookMode;
  40 +
  41 + void setupUi();
  42 +
  43 + QTimer afterThreeSecsTimer;
  44 +
  45 + QWidget *pushed = NULL;
  46 +
  47 + void onEncoderLeft();
  48 + void onEncoderRight();
  49 + void onEncoderClicked(QWidget *clicked);
  50 +
  51 +private slots:
  52 + void updateView();
  53 + void addFavorite();
  54 + void afterThreeSecs();
  55 +
  56 + void on_selectCookButton_clicked();
  57 + void on_showPrevStepButton_clicked();
  58 + void on_showNextStepButton_clicked();
  59 + void on_backButton_clicked();
  60 + void on_configButton_clicked();
  61 + void on_favoritesButton_clicked();
  62 + void on_washButton_clicked();
  63 + void on_helpButton_clicked();
  64 +
  65 +signals:
  66 + void back();
  67 +};
  68 +
  69 +#endif // AUTOCOOKCHECKWINDOW_H
... ...
app/gui/oven_control/autocookcheckwindow.ui
... ... @@ -0,0 +1,907 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui version="4.0">
  3 + <class>AutoCookCheckWindow</class>
  4 + <widget class="QMainWindow" name="AutoCookCheckWindow">
  5 + <property name="geometry">
  6 + <rect>
  7 + <x>0</x>
  8 + <y>0</y>
  9 + <width>900</width>
  10 + <height>1600</height>
  11 + </rect>
  12 + </property>
  13 + <property name="windowTitle">
  14 + <string>MainWindow</string>
  15 + </property>
  16 + <property name="styleSheet">
  17 + <string notr="true">#centralwidget { background-image: url(:/images/background/auto_steps.png); }
  18 +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }
  19 +
  20 +QPushButton {
  21 +background-repeat: no-repeat;
  22 +background-position: center;
  23 +border: none;
  24 +}</string>
  25 + </property>
  26 + <widget class="QWidget" name="centralwidget">
  27 + <widget class="AnimatedImageBox" name="cookStepAnimation">
  28 + <property name="geometry">
  29 + <rect>
  30 + <x>340</x>
  31 + <y>800</y>
  32 + <width>231</width>
  33 + <height>281</height>
  34 + </rect>
  35 + </property>
  36 + <property name="text">
  37 + <string/>
  38 + </property>
  39 + </widget>
  40 + <widget class="QPushButton" name="showPrevStepButton">
  41 + <property name="geometry">
  42 + <rect>
  43 + <x>10</x>
  44 + <y>715</y>
  45 + <width>60</width>
  46 + <height>400</height>
  47 + </rect>
  48 + </property>
  49 + <property name="styleSheet">
  50 + <string notr="true">QPushButton { background-image: url(:/images/auto_button/prev_step.png); }
  51 +QPushButton::pressed, QPushButton:focus { background-image: url(:/images/auto_button/prev_step_ov.png); }</string>
  52 + </property>
  53 + <property name="text">
  54 + <string/>
  55 + </property>
  56 + </widget>
  57 + <widget class="QLabel" name="doorStepLabel">
  58 + <property name="geometry">
  59 + <rect>
  60 + <x>110</x>
  61 + <y>710</y>
  62 + <width>541</width>
  63 + <height>100</height>
  64 + </rect>
  65 + </property>
  66 + <property name="palette">
  67 + <palette>
  68 + <active>
  69 + <colorrole role="WindowText">
  70 + <brush brushstyle="SolidPattern">
  71 + <color alpha="255">
  72 + <red>255</red>
  73 + <green>255</green>
  74 + <blue>255</blue>
  75 + </color>
  76 + </brush>
  77 + </colorrole>
  78 + </active>
  79 + <inactive>
  80 + <colorrole role="WindowText">
  81 + <brush brushstyle="SolidPattern">
  82 + <color alpha="255">
  83 + <red>255</red>
  84 + <green>255</green>
  85 + <blue>255</blue>
  86 + </color>
  87 + </brush>
  88 + </colorrole>
  89 + </inactive>
  90 + <disabled>
  91 + <colorrole role="WindowText">
  92 + <brush brushstyle="SolidPattern">
  93 + <color alpha="255">
  94 + <red>123</red>
  95 + <green>123</green>
  96 + <blue>123</blue>
  97 + </color>
  98 + </brush>
  99 + </colorrole>
  100 + </disabled>
  101 + </palette>
  102 + </property>
  103 + <property name="font">
  104 + <font>
  105 + <family>Malgun Gothic</family>
  106 + <pointsize>14</pointsize>
  107 + </font>
  108 + </property>
  109 + <property name="text">
  110 + <string notr="true">Preheat</string>
  111 + </property>
  112 + </widget>
  113 + <widget class="QStackedWidget" name="upperStack">
  114 + <property name="geometry">
  115 + <rect>
  116 + <x>0</x>
  117 + <y>0</y>
  118 + <width>900</width>
  119 + <height>426</height>
  120 + </rect>
  121 + </property>
  122 + <widget class="QWidget" name="clockContainer">
  123 + <property name="styleSheet">
  124 + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string>
  125 + </property>
  126 + <widget class="Clock" name="clock" native="true">
  127 + <property name="geometry">
  128 + <rect>
  129 + <x>272</x>
  130 + <y>36</y>
  131 + <width>356</width>
  132 + <height>355</height>
  133 + </rect>
  134 + </property>
  135 + </widget>
  136 + <widget class="WashWarnIcon" name="label">
  137 + <property name="geometry">
  138 + <rect>
  139 + <x>800</x>
  140 + <y>320</y>
  141 + <width>80</width>
  142 + <height>84</height>
  143 + </rect>
  144 + </property>
  145 + </widget>
  146 + </widget>
  147 + <widget class="QWidget" name="page_2"/>
  148 + </widget>
  149 + <widget class="QLabel" name="label_3">
  150 + <property name="geometry">
  151 + <rect>
  152 + <x>130</x>
  153 + <y>600</y>
  154 + <width>100</width>
  155 + <height>100</height>
  156 + </rect>
  157 + </property>
  158 + <property name="text">
  159 + <string/>
  160 + </property>
  161 + <property name="pixmap">
  162 + <pixmap resource="resources.qrc">:/images/symbol/time.png</pixmap>
  163 + </property>
  164 + <property name="alignment">
  165 + <set>Qt::AlignCenter</set>
  166 + </property>
  167 + </widget>
  168 + <widget class="HeatCircularGauge" name="heatGauge" native="true">
  169 + <property name="geometry">
  170 + <rect>
  171 + <x>510</x>
  172 + <y>810</y>
  173 + <width>291</width>
  174 + <height>290</height>
  175 + </rect>
  176 + </property>
  177 + <property name="palette">
  178 + <palette>
  179 + <active>
  180 + <colorrole role="WindowText">
  181 + <brush brushstyle="SolidPattern">
  182 + <color alpha="255">
  183 + <red>255</red>
  184 + <green>255</green>
  185 + <blue>255</blue>
  186 + </color>
  187 + </brush>
  188 + </colorrole>
  189 + </active>
  190 + <inactive>
  191 + <colorrole role="WindowText">
  192 + <brush brushstyle="SolidPattern">
  193 + <color alpha="255">
  194 + <red>255</red>
  195 + <green>255</green>
  196 + <blue>255</blue>
  197 + </color>
  198 + </brush>
  199 + </colorrole>
  200 + </inactive>
  201 + <disabled>
  202 + <colorrole role="WindowText">
  203 + <brush brushstyle="SolidPattern">
  204 + <color alpha="255">
  205 + <red>123</red>
  206 + <green>123</green>
  207 + <blue>123</blue>
  208 + </color>
  209 + </brush>
  210 + </colorrole>
  211 + </disabled>
  212 + </palette>
  213 + </property>
  214 + </widget>
  215 + <widget class="QPushButton" name="selectCookButton">
  216 + <property name="geometry">
  217 + <rect>
  218 + <x>584</x>
  219 + <y>480</y>
  220 + <width>288</width>
  221 + <height>70</height>
  222 + </rect>
  223 + </property>
  224 + <property name="font">
  225 + <font>
  226 + <family>Roboto</family>
  227 + <pointsize>10</pointsize>
  228 + <weight>75</weight>
  229 + <bold>true</bold>
  230 + </font>
  231 + </property>
  232 + <property name="focusPolicy">
  233 + <enum>Qt::NoFocus</enum>
  234 + </property>
  235 + <property name="styleSheet">
  236 + <string notr="true">QPushButton { border-image: url(:/images/button/288.png); }
  237 +QPushButton::pressed, QPushButton:focus { border-image: url(:/images/button/288_ov.png); }</string>
  238 + </property>
  239 + <property name="text">
  240 + <string/>
  241 + </property>
  242 + </widget>
  243 + <widget class="QLabel" name="cookModeIcon">
  244 + <property name="geometry">
  245 + <rect>
  246 + <x>80</x>
  247 + <y>1020</y>
  248 + <width>741</width>
  249 + <height>81</height>
  250 + </rect>
  251 + </property>
  252 + <property name="text">
  253 + <string/>
  254 + </property>
  255 + <property name="pixmap">
  256 + <pixmap>:/images/images/auto/window_icon_06.png</pixmap>
  257 + </property>
  258 + <property name="alignment">
  259 + <set>Qt::AlignCenter</set>
  260 + </property>
  261 + </widget>
  262 + <widget class="BulletIndicator" name="stepIndicator" native="true">
  263 + <property name="geometry">
  264 + <rect>
  265 + <x>100</x>
  266 + <y>1130</y>
  267 + <width>700</width>
  268 + <height>50</height>
  269 + </rect>
  270 + </property>
  271 + </widget>
  272 + <widget class="QLabel" name="interTempIcon">
  273 + <property name="geometry">
  274 + <rect>
  275 + <x>460</x>
  276 + <y>600</y>
  277 + <width>100</width>
  278 + <height>100</height>
  279 + </rect>
  280 + </property>
  281 + <property name="text">
  282 + <string/>
  283 + </property>
  284 + <property name="pixmap">
  285 + <pixmap resource="resources.qrc">:/images/symbol/core_temp.png</pixmap>
  286 + </property>
  287 + <property name="alignment">
  288 + <set>Qt::AlignCenter</set>
  289 + </property>
  290 + </widget>
  291 + <widget class="QLabel" name="cookStepLabel">
  292 + <property name="geometry">
  293 + <rect>
  294 + <x>180</x>
  295 + <y>710</y>
  296 + <width>541</width>
  297 + <height>100</height>
  298 + </rect>
  299 + </property>
  300 + <property name="palette">
  301 + <palette>
  302 + <active>
  303 + <colorrole role="WindowText">
  304 + <brush brushstyle="SolidPattern">
  305 + <color alpha="255">
  306 + <red>255</red>
  307 + <green>255</green>
  308 + <blue>255</blue>
  309 + </color>
  310 + </brush>
  311 + </colorrole>
  312 + </active>
  313 + <inactive>
  314 + <colorrole role="WindowText">
  315 + <brush brushstyle="SolidPattern">
  316 + <color alpha="255">
  317 + <red>255</red>
  318 + <green>255</green>
  319 + <blue>255</blue>
  320 + </color>
  321 + </brush>
  322 + </colorrole>
  323 + </inactive>
  324 + <disabled>
  325 + <colorrole role="WindowText">
  326 + <brush brushstyle="SolidPattern">
  327 + <color alpha="255">
  328 + <red>123</red>
  329 + <green>123</green>
  330 + <blue>123</blue>
  331 + </color>
  332 + </brush>
  333 + </colorrole>
  334 + </disabled>
  335 + </palette>
  336 + </property>
  337 + <property name="font">
  338 + <font>
  339 + <family>Malgun Gothic</family>
  340 + <pointsize>14</pointsize>
  341 + </font>
  342 + </property>
  343 + <property name="text">
  344 + <string notr="true">Preheat</string>
  345 + </property>
  346 + </widget>
  347 + <widget class="QLabel" name="heatLabel">
  348 + <property name="geometry">
  349 + <rect>
  350 + <x>490</x>
  351 + <y>960</y>
  352 + <width>321</width>
  353 + <height>100</height>
  354 + </rect>
  355 + </property>
  356 + <property name="palette">
  357 + <palette>
  358 + <active>
  359 + <colorrole role="WindowText">
  360 + <brush brushstyle="SolidPattern">
  361 + <color alpha="255">
  362 + <red>255</red>
  363 + <green>255</green>
  364 + <blue>255</blue>
  365 + </color>
  366 + </brush>
  367 + </colorrole>
  368 + </active>
  369 + <inactive>
  370 + <colorrole role="WindowText">
  371 + <brush brushstyle="SolidPattern">
  372 + <color alpha="255">
  373 + <red>255</red>
  374 + <green>255</green>
  375 + <blue>255</blue>
  376 + </color>
  377 + </brush>
  378 + </colorrole>
  379 + </inactive>
  380 + <disabled>
  381 + <colorrole role="WindowText">
  382 + <brush brushstyle="SolidPattern">
  383 + <color alpha="255">
  384 + <red>123</red>
  385 + <green>123</green>
  386 + <blue>123</blue>
  387 + </color>
  388 + </brush>
  389 + </colorrole>
  390 + </disabled>
  391 + </palette>
  392 + </property>
  393 + <property name="font">
  394 + <font>
  395 + <family>Roboto</family>
  396 + <pointsize>16</pointsize>
  397 + <weight>75</weight>
  398 + <bold>true</bold>
  399 + </font>
  400 + </property>
  401 + <property name="text">
  402 + <string notr="true">10</string>
  403 + </property>
  404 + <property name="alignment">
  405 + <set>Qt::AlignCenter</set>
  406 + </property>
  407 + </widget>
  408 + <widget class="QLabel" name="interTempLabel">
  409 + <property name="geometry">
  410 + <rect>
  411 + <x>560</x>
  412 + <y>600</y>
  413 + <width>231</width>
  414 + <height>100</height>
  415 + </rect>
  416 + </property>
  417 + <property name="palette">
  418 + <palette>
  419 + <active>
  420 + <colorrole role="WindowText">
  421 + <brush brushstyle="SolidPattern">
  422 + <color alpha="255">
  423 + <red>255</red>
  424 + <green>255</green>
  425 + <blue>255</blue>
  426 + </color>
  427 + </brush>
  428 + </colorrole>
  429 + </active>
  430 + <inactive>
  431 + <colorrole role="WindowText">
  432 + <brush brushstyle="SolidPattern">
  433 + <color alpha="255">
  434 + <red>255</red>
  435 + <green>255</green>
  436 + <blue>255</blue>
  437 + </color>
  438 + </brush>
  439 + </colorrole>
  440 + </inactive>
  441 + <disabled>
  442 + <colorrole role="WindowText">
  443 + <brush brushstyle="SolidPattern">
  444 + <color alpha="255">
  445 + <red>123</red>
  446 + <green>123</green>
  447 + <blue>123</blue>
  448 + </color>
  449 + </brush>
  450 + </colorrole>
  451 + </disabled>
  452 + </palette>
  453 + </property>
  454 + <property name="font">
  455 + <font>
  456 + <family>Roboto</family>
  457 + <pointsize>16</pointsize>
  458 + <weight>75</weight>
  459 + <bold>true</bold>
  460 + </font>
  461 + </property>
  462 + <property name="text">
  463 + <string notr="true">000/000</string>
  464 + </property>
  465 + </widget>
  466 + <widget class="QPushButton" name="showNextStepButton">
  467 + <property name="geometry">
  468 + <rect>
  469 + <x>830</x>
  470 + <y>715</y>
  471 + <width>60</width>
  472 + <height>400</height>
  473 + </rect>
  474 + </property>
  475 + <property name="styleSheet">
  476 + <string notr="true">QPushButton { background-image: url(:/images/auto_button/next_step.png); }
  477 +QPushButton::pressed, QPushButton:focus { background-image: url(:/images/auto_button/next_step_ov.png); }</string>
  478 + </property>
  479 + <property name="text">
  480 + <string/>
  481 + </property>
  482 + </widget>
  483 + <widget class="QLabel" name="cookTypeIcon">
  484 + <property name="geometry">
  485 + <rect>
  486 + <x>0</x>
  487 + <y>430</y>
  488 + <width>250</width>
  489 + <height>150</height>
  490 + </rect>
  491 + </property>
  492 + <property name="text">
  493 + <string/>
  494 + </property>
  495 + <property name="pixmap">
  496 + <pixmap>:/images/images/auto/005_auto_icon_01_ov.png</pixmap>
  497 + </property>
  498 + <property name="alignment">
  499 + <set>Qt::AlignCenter</set>
  500 + </property>
  501 + </widget>
  502 + <widget class="QLabel" name="timeLabel">
  503 + <property name="geometry">
  504 + <rect>
  505 + <x>230</x>
  506 + <y>600</y>
  507 + <width>231</width>
  508 + <height>100</height>
  509 + </rect>
  510 + </property>
  511 + <property name="palette">
  512 + <palette>
  513 + <active>
  514 + <colorrole role="WindowText">
  515 + <brush brushstyle="SolidPattern">
  516 + <color alpha="255">
  517 + <red>255</red>
  518 + <green>255</green>
  519 + <blue>255</blue>
  520 + </color>
  521 + </brush>
  522 + </colorrole>
  523 + </active>
  524 + <inactive>
  525 + <colorrole role="WindowText">
  526 + <brush brushstyle="SolidPattern">
  527 + <color alpha="255">
  528 + <red>255</red>
  529 + <green>255</green>
  530 + <blue>255</blue>
  531 + </color>
  532 + </brush>
  533 + </colorrole>
  534 + </inactive>
  535 + <disabled>
  536 + <colorrole role="WindowText">
  537 + <brush brushstyle="SolidPattern">
  538 + <color alpha="255">
  539 + <red>123</red>
  540 + <green>123</green>
  541 + <blue>123</blue>
  542 + </color>
  543 + </brush>
  544 + </colorrole>
  545 + </disabled>
  546 + </palette>
  547 + </property>
  548 + <property name="font">
  549 + <font>
  550 + <family>Roboto</family>
  551 + <pointsize>16</pointsize>
  552 + <weight>75</weight>
  553 + <bold>true</bold>
  554 + </font>
  555 + </property>
  556 + <property name="text">
  557 + <string notr="true">00:00</string>
  558 + </property>
  559 + </widget>
  560 + <widget class="QWidget" name="bottomBar" native="true">
  561 + <property name="geometry">
  562 + <rect>
  563 + <x>0</x>
  564 + <y>1450</y>
  565 + <width>900</width>
  566 + <height>150</height>
  567 + </rect>
  568 + </property>
  569 + <widget class="QPushButton" name="backButton">
  570 + <property name="geometry">
  571 + <rect>
  572 + <x>175</x>
  573 + <y>26</y>
  574 + <width>97</width>
  575 + <height>97</height>
  576 + </rect>
  577 + </property>
  578 + <property name="sizePolicy">
  579 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  580 + <horstretch>0</horstretch>
  581 + <verstretch>0</verstretch>
  582 + </sizepolicy>
  583 + </property>
  584 + <property name="styleSheet">
  585 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); }
  586 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/back_ov.png); }</string>
  587 + </property>
  588 + <property name="text">
  589 + <string/>
  590 + </property>
  591 + </widget>
  592 + <widget class="QPushButton" name="washButton">
  593 + <property name="geometry">
  594 + <rect>
  595 + <x>514</x>
  596 + <y>26</y>
  597 + <width>97</width>
  598 + <height>97</height>
  599 + </rect>
  600 + </property>
  601 + <property name="sizePolicy">
  602 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  603 + <horstretch>0</horstretch>
  604 + <verstretch>0</verstretch>
  605 + </sizepolicy>
  606 + </property>
  607 + <property name="styleSheet">
  608 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/wash.png); }
  609 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/wash_ov.png); }</string>
  610 + </property>
  611 + <property name="text">
  612 + <string/>
  613 + </property>
  614 + </widget>
  615 + <widget class="QPushButton" name="configButton">
  616 + <property name="geometry">
  617 + <rect>
  618 + <x>288</x>
  619 + <y>26</y>
  620 + <width>97</width>
  621 + <height>97</height>
  622 + </rect>
  623 + </property>
  624 + <property name="sizePolicy">
  625 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  626 + <horstretch>0</horstretch>
  627 + <verstretch>0</verstretch>
  628 + </sizepolicy>
  629 + </property>
  630 + <property name="styleSheet">
  631 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/config.png); }
  632 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/config_ov.png); }</string>
  633 + </property>
  634 + <property name="text">
  635 + <string/>
  636 + </property>
  637 + </widget>
  638 + <widget class="QPushButton" name="helpButton">
  639 + <property name="geometry">
  640 + <rect>
  641 + <x>627</x>
  642 + <y>26</y>
  643 + <width>97</width>
  644 + <height>97</height>
  645 + </rect>
  646 + </property>
  647 + <property name="sizePolicy">
  648 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  649 + <horstretch>0</horstretch>
  650 + <verstretch>0</verstretch>
  651 + </sizepolicy>
  652 + </property>
  653 + <property name="styleSheet">
  654 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/help.png); }
  655 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/help_ov.png); }</string>
  656 + </property>
  657 + <property name="text">
  658 + <string/>
  659 + </property>
  660 + </widget>
  661 + <widget class="QPushButton" name="favoritesButton">
  662 + <property name="geometry">
  663 + <rect>
  664 + <x>401</x>
  665 + <y>26</y>
  666 + <width>97</width>
  667 + <height>97</height>
  668 + </rect>
  669 + </property>
  670 + <property name="sizePolicy">
  671 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  672 + <horstretch>0</horstretch>
  673 + <verstretch>0</verstretch>
  674 + </sizepolicy>
  675 + </property>
  676 + <property name="styleSheet">
  677 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/favorites.png); }
  678 +QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/favorites_ov.png); }</string>
  679 + </property>
  680 + <property name="text">
  681 + <string/>
  682 + </property>
  683 + </widget>
  684 + </widget>
  685 + <widget class="QLabel" name="cookStepIcon">
  686 + <property name="geometry">
  687 + <rect>
  688 + <x>80</x>
  689 + <y>710</y>
  690 + <width>100</width>
  691 + <height>100</height>
  692 + </rect>
  693 + </property>
  694 + <property name="palette">
  695 + <palette>
  696 + <active>
  697 + <colorrole role="WindowText">
  698 + <brush brushstyle="SolidPattern">
  699 + <color alpha="255">
  700 + <red>255</red>
  701 + <green>255</green>
  702 + <blue>255</blue>
  703 + </color>
  704 + </brush>
  705 + </colorrole>
  706 + </active>
  707 + <inactive>
  708 + <colorrole role="WindowText">
  709 + <brush brushstyle="SolidPattern">
  710 + <color alpha="255">
  711 + <red>255</red>
  712 + <green>255</green>
  713 + <blue>255</blue>
  714 + </color>
  715 + </brush>
  716 + </colorrole>
  717 + </inactive>
  718 + <disabled>
  719 + <colorrole role="WindowText">
  720 + <brush brushstyle="SolidPattern">
  721 + <color alpha="255">
  722 + <red>123</red>
  723 + <green>123</green>
  724 + <blue>123</blue>
  725 + </color>
  726 + </brush>
  727 + </colorrole>
  728 + </disabled>
  729 + </palette>
  730 + </property>
  731 + <property name="font">
  732 + <font>
  733 + <family>Malgun Gothic</family>
  734 + <pointsize>14</pointsize>
  735 + </font>
  736 + </property>
  737 + <property name="text">
  738 + <string/>
  739 + </property>
  740 + <property name="pixmap">
  741 + <pixmap resource="resources.qrc">:/images/cook_step_type/sys_icon_05.png</pixmap>
  742 + </property>
  743 + <property name="alignment">
  744 + <set>Qt::AlignCenter</set>
  745 + </property>
  746 + </widget>
  747 + <widget class="HumidityCircularGauge" name="humidityGauge" native="true">
  748 + <property name="geometry">
  749 + <rect>
  750 + <x>100</x>
  751 + <y>810</y>
  752 + <width>291</width>
  753 + <height>290</height>
  754 + </rect>
  755 + </property>
  756 + <property name="palette">
  757 + <palette>
  758 + <active>
  759 + <colorrole role="WindowText">
  760 + <brush brushstyle="SolidPattern">
  761 + <color alpha="255">
  762 + <red>255</red>
  763 + <green>255</green>
  764 + <blue>255</blue>
  765 + </color>
  766 + </brush>
  767 + </colorrole>
  768 + </active>
  769 + <inactive>
  770 + <colorrole role="WindowText">
  771 + <brush brushstyle="SolidPattern">
  772 + <color alpha="255">
  773 + <red>255</red>
  774 + <green>255</green>
  775 + <blue>255</blue>
  776 + </color>
  777 + </brush>
  778 + </colorrole>
  779 + </inactive>
  780 + <disabled>
  781 + <colorrole role="WindowText">
  782 + <brush brushstyle="SolidPattern">
  783 + <color alpha="255">
  784 + <red>123</red>
  785 + <green>123</green>
  786 + <blue>123</blue>
  787 + </color>
  788 + </brush>
  789 + </colorrole>
  790 + </disabled>
  791 + </palette>
  792 + </property>
  793 + </widget>
  794 + <widget class="QLabel" name="humidityLabel">
  795 + <property name="geometry">
  796 + <rect>
  797 + <x>90</x>
  798 + <y>960</y>
  799 + <width>321</width>
  800 + <height>100</height>
  801 + </rect>
  802 + </property>
  803 + <property name="palette">
  804 + <palette>
  805 + <active>
  806 + <colorrole role="WindowText">
  807 + <brush brushstyle="SolidPattern">
  808 + <color alpha="255">
  809 + <red>255</red>
  810 + <green>255</green>
  811 + <blue>255</blue>
  812 + </color>
  813 + </brush>
  814 + </colorrole>
  815 + </active>
  816 + <inactive>
  817 + <colorrole role="WindowText">
  818 + <brush brushstyle="SolidPattern">
  819 + <color alpha="255">
  820 + <red>255</red>
  821 + <green>255</green>
  822 + <blue>255</blue>
  823 + </color>
  824 + </brush>
  825 + </colorrole>
  826 + </inactive>
  827 + <disabled>
  828 + <colorrole role="WindowText">
  829 + <brush brushstyle="SolidPattern">
  830 + <color alpha="255">
  831 + <red>123</red>
  832 + <green>123</green>
  833 + <blue>123</blue>
  834 + </color>
  835 + </brush>
  836 + </colorrole>
  837 + </disabled>
  838 + </palette>
  839 + </property>
  840 + <property name="font">
  841 + <font>
  842 + <family>Roboto</family>
  843 + <pointsize>16</pointsize>
  844 + <weight>75</weight>
  845 + <bold>true</bold>
  846 + </font>
  847 + </property>
  848 + <property name="text">
  849 + <string notr="true">10</string>
  850 + </property>
  851 + <property name="alignment">
  852 + <set>Qt::AlignCenter</set>
  853 + </property>
  854 + </widget>
  855 + </widget>
  856 + </widget>
  857 + <customwidgets>
  858 + <customwidget>
  859 + <class>Clock</class>
  860 + <extends>QWidget</extends>
  861 + <header>clock.h</header>
  862 + <container>1</container>
  863 + </customwidget>
  864 + <customwidget>
  865 + <class>WashWarnIcon</class>
  866 + <extends>QLabel</extends>
  867 + <header>washwarnicon.h</header>
  868 + </customwidget>
  869 + <customwidget>
  870 + <class>AnimatedImageBox</class>
  871 + <extends>QLabel</extends>
  872 + <header>animatedimagebox.h</header>
  873 + </customwidget>
  874 + <customwidget>
  875 + <class>HumidityCircularGauge</class>
  876 + <extends>QWidget</extends>
  877 + <header>humiditycirculargauge.h</header>
  878 + <container>1</container>
  879 + </customwidget>
  880 + <customwidget>
  881 + <class>HeatCircularGauge</class>
  882 + <extends>QWidget</extends>
  883 + <header>heatcirculargauge.h</header>
  884 + <container>1</container>
  885 + </customwidget>
  886 + <customwidget>
  887 + <class>BulletIndicator</class>
  888 + <extends>QWidget</extends>
  889 + <header>bulletindicator.h</header>
  890 + <container>1</container>
  891 + </customwidget>
  892 + </customwidgets>
  893 + <tabstops>
  894 + <tabstop>selectCookButton</tabstop>
  895 + <tabstop>showPrevStepButton</tabstop>
  896 + <tabstop>showNextStepButton</tabstop>
  897 + <tabstop>backButton</tabstop>
  898 + <tabstop>configButton</tabstop>
  899 + <tabstop>favoritesButton</tabstop>
  900 + <tabstop>washButton</tabstop>
  901 + <tabstop>helpButton</tabstop>
  902 + </tabstops>
  903 + <resources>
  904 + <include location="resources.qrc"/>
  905 + </resources>
  906 + <connections/>
  907 +</ui>
... ...
app/gui/oven_control/autocookconfigwindow.cpp
... ... @@ -12,6 +12,7 @@
12 12 #include "washwindow.h"
13 13 #include "mainwindow.h"
14 14 #include "autocookselectionpopup.h"
  15 +#include "autocookcheckwindow.h"
15 16  
16 17 AutoCookConfigWindow::AutoCookConfigWindow(QWidget *parent, Cook cook) :
17 18 QMainWindow(parent),
... ... @@ -325,6 +326,8 @@ void AutoCookConfigWindow::updateConfig()
325 326  
326 327 void AutoCookConfigWindow::start()
327 328 {
  329 + setFocus();
  330 +
328 331 AutoCookWindow *w = new AutoCookWindow(parentWidget(), cook);
329 332 w->setWindowModality(Qt::WindowModal);
330 333 w->showFullScreen();
... ... @@ -412,11 +415,15 @@ void AutoCookConfigWindow::on_configButton_5_clicked()
412 415  
413 416 void AutoCookConfigWindow::on_selectCookButton_clicked()
414 417 {
  418 + setFocus();
  419 +
415 420 AutoCookSelectionPopup *p = new AutoCookSelectionPopup(this, cook.type);
416 421 p->showFullScreen();
417 422 p->raise();
418 423  
419 424 connect(p, SIGNAL(selected(Cook)), SLOT(changeCook(Cook)));
  425 + connect(p, SIGNAL(selected(Cook)), SLOT(setFocus()));
  426 + connect(p, SIGNAL(canceled()), SLOT(setFocus()));
420 427  
421 428 if (afterThreeSecsTimer.isActive())
422 429 {
... ... @@ -425,3 +432,19 @@ void AutoCookConfigWindow::on_selectCookButton_clicked()
425 432 connect(p, SIGNAL(canceled()), &afterThreeSecsTimer, SLOT(start()));
426 433 }
427 434 }
  435 +
  436 +void AutoCookConfigWindow::on_checkCookButton_clicked()
  437 +{
  438 + setFocus();
  439 +
  440 + AutoCookCheckWindow *w = new AutoCookCheckWindow(this, cook);
  441 + w->setWindowModality(Qt::WindowModal);
  442 + w->showFullScreen();
  443 + w->raise();
  444 +
  445 + if (afterThreeSecsTimer.isActive())
  446 + {
  447 + afterThreeSecsTimer.stop();
  448 + connect(w, SIGNAL(back()), &afterThreeSecsTimer, SLOT(start()));
  449 + }
  450 +}
... ...
app/gui/oven_control/autocookconfigwindow.h
... ... @@ -74,6 +74,7 @@ private slots:
74 74 void on_configButton_4_clicked();
75 75 void on_configButton_5_clicked();
76 76 void on_selectCookButton_clicked();
  77 + void on_checkCookButton_clicked();
77 78 };
78 79  
79 80 #endif // AUTOCOOKCONFIGWINDOW_H
... ...
app/gui/oven_control/autocookconfigwindow.ui
... ... @@ -626,7 +626,7 @@ border-image: url(:/images/button/288_ov.png);
626 626 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
627 627 </property>
628 628 </widget>
629   - <widget class="QPushButton" name="pushButton_4">
  629 + <widget class="QPushButton" name="checkCookButton">
630 630 <property name="geometry">
631 631 <rect>
632 632 <x>720</x>
... ... @@ -1410,7 +1410,7 @@ border-image: url(:/images/button/152_ov.png);
1410 1410 </customwidgets>
1411 1411 <tabstops>
1412 1412 <tabstop>selectCookButton</tabstop>
1413   - <tabstop>pushButton_4</tabstop>
  1413 + <tabstop>checkCookButton</tabstop>
1414 1414 <tabstop>configButton_1</tabstop>
1415 1415 <tabstop>configButton_2</tabstop>
1416 1416 <tabstop>configButton_3</tabstop>
... ...
app/gui/oven_control/autocookwindow.cpp
... ... @@ -15,6 +15,7 @@
15 15 #include "config.h"
16 16 #include "errorpopupdlg.h"
17 17 #include "autocookselectionpopup.h"
  18 +#include "autocookcheckconfigwindow.h"
18 19  
19 20 AutoCookWindow::AutoCookWindow(QWidget *parent, Cook cook) :
20 21 QMainWindow(parent),
... ... @@ -938,7 +939,12 @@ void AutoCookWindow::on_homeButton_clicked()
938 939  
939 940 void AutoCookWindow::on_configCookButton_clicked()
940 941 {
  942 + setFocus();
941 943  
  944 + AutoCookCheckConfigWindow *w = new AutoCookCheckConfigWindow(this, cook);
  945 + w->setWindowModality(Qt::WindowModal);
  946 + w->showFullScreen();
  947 + w->raise();
942 948 }
943 949  
944 950 void AutoCookWindow::on_humidityGaugeButton_pressed()
... ...
app/gui/oven_control/oven_control.pro
... ... @@ -119,7 +119,9 @@ SOURCES += main.cpp\
119 119 configdoormonitoring.cpp \
120 120 config1digitsetandenablesetdlg.cpp \
121 121 slider.cpp \
122   - autocookselectionpopup.cpp
  122 + autocookselectionpopup.cpp \
  123 + autocookcheckwindow.cpp \
  124 + autocookcheckconfigwindow.cpp
123 125  
124 126 HEADERS += mainwindow.h \
125 127 cook.h \
... ... @@ -228,7 +230,9 @@ HEADERS += mainwindow.h \
228 230 configdoormonitoring.h \
229 231 config1digitsetandenablesetdlg.h \
230 232 slider.h \
231   - autocookselectionpopup.h
  233 + autocookselectionpopup.h \
  234 + autocookcheckwindow.h \
  235 + autocookcheckconfigwindow.h
232 236  
233 237 FORMS += mainwindow.ui \
234 238 manualcookwindow.ui \
... ... @@ -303,7 +307,9 @@ FORMS += mainwindow.ui \
303 307 reservedtimepopup.ui \
304 308 configdoormonitoring.ui \
305 309 config1digitsetandenablesetdlg.ui \
306   - autocookselectionpopup.ui
  310 + autocookselectionpopup.ui \
  311 + autocookcheckwindow.ui \
  312 + autocookcheckconfigwindow.ui
307 313  
308 314 RESOURCES += \
309 315 resources.qrc
... ...