Commit 652e9cd5409104f8962549c59e129702cd15b0b2

Authored by 고영탁
1 parent 6ecd061744
Exists in master and in 2 other branches fhd, fhd-demo

Merge

app/gui/oven_control/engineermenuwindow.cpp
... ... @@ -0,0 +1,14 @@
  1 +#include "engineermenuwindow.h"
  2 +#include "ui_engineermenuwindow.h"
  3 +
  4 +engineermenuwindow::engineermenuwindow(QWidget *parent) :
  5 + QMainWindow(parent),
  6 + ui(new Ui::engineermenuwindow)
  7 +{
  8 + ui->setupUi(this);
  9 +}
  10 +
  11 +engineermenuwindow::~engineermenuwindow()
  12 +{
  13 + delete ui;
  14 +}
... ...
app/gui/oven_control/engineermenuwindow.h
... ... @@ -0,0 +1,22 @@
  1 +#ifndef ENGINEERMENUWINDOW_H
  2 +#define ENGINEERMENUWINDOW_H
  3 +
  4 +#include <QMainWindow>
  5 +
  6 +namespace Ui {
  7 +class engineermenuwindow;
  8 +}
  9 +
  10 +class engineermenuwindow : public QMainWindow
  11 +{
  12 + Q_OBJECT
  13 +
  14 +public:
  15 + explicit engineermenuwindow(QWidget *parent = 0);
  16 + ~engineermenuwindow();
  17 +
  18 +private:
  19 + Ui::engineermenuwindow *ui;
  20 +};
  21 +
  22 +#endif // ENGINEERMENUWINDOW_H
... ...
app/gui/oven_control/engineermenuwindow.ui
... ... @@ -0,0 +1,1317 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui version="4.0">
  3 + <class>engineermenuwindow</class>
  4 + <widget class="QMainWindow" name="engineermenuwindow">
  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/config_service.png); }
  18 +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }</string>
  19 + </property>
  20 + <widget class="QWidget" name="centralwidget">
  21 + <widget class="QStackedWidget" name="upperStack">
  22 + <property name="geometry">
  23 + <rect>
  24 + <x>0</x>
  25 + <y>0</y>
  26 + <width>900</width>
  27 + <height>426</height>
  28 + </rect>
  29 + </property>
  30 + <widget class="QWidget" name="clockContainer">
  31 + <property name="styleSheet">
  32 + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string>
  33 + </property>
  34 + <widget class="Clock" name="clock" native="true">
  35 + <property name="geometry">
  36 + <rect>
  37 + <x>272</x>
  38 + <y>36</y>
  39 + <width>356</width>
  40 + <height>355</height>
  41 + </rect>
  42 + </property>
  43 + </widget>
  44 + </widget>
  45 + <widget class="QWidget" name="page_2"/>
  46 + </widget>
  47 + <widget class="QLabel" name="label_15">
  48 + <property name="geometry">
  49 + <rect>
  50 + <x>55</x>
  51 + <y>426</y>
  52 + <width>845</width>
  53 + <height>84</height>
  54 + </rect>
  55 + </property>
  56 + <property name="palette">
  57 + <palette>
  58 + <active>
  59 + <colorrole role="WindowText">
  60 + <brush brushstyle="SolidPattern">
  61 + <color alpha="255">
  62 + <red>255</red>
  63 + <green>255</green>
  64 + <blue>255</blue>
  65 + </color>
  66 + </brush>
  67 + </colorrole>
  68 + </active>
  69 + <inactive>
  70 + <colorrole role="WindowText">
  71 + <brush brushstyle="SolidPattern">
  72 + <color alpha="255">
  73 + <red>255</red>
  74 + <green>255</green>
  75 + <blue>255</blue>
  76 + </color>
  77 + </brush>
  78 + </colorrole>
  79 + </inactive>
  80 + <disabled>
  81 + <colorrole role="WindowText">
  82 + <brush brushstyle="SolidPattern">
  83 + <color alpha="255">
  84 + <red>190</red>
  85 + <green>190</green>
  86 + <blue>190</blue>
  87 + </color>
  88 + </brush>
  89 + </colorrole>
  90 + </disabled>
  91 + </palette>
  92 + </property>
  93 + <property name="font">
  94 + <font>
  95 + <family>Malgun Gothic</family>
  96 + <pointsize>11</pointsize>
  97 + </font>
  98 + </property>
  99 + <property name="text">
  100 + <string>서비스단계(엔지니어모드)</string>
  101 + </property>
  102 + </widget>
  103 + <widget class="QWidget" name="bottomBar" native="true">
  104 + <property name="geometry">
  105 + <rect>
  106 + <x>0</x>
  107 + <y>1450</y>
  108 + <width>900</width>
  109 + <height>150</height>
  110 + </rect>
  111 + </property>
  112 + <widget class="QPushButton" name="backButton">
  113 + <property name="geometry">
  114 + <rect>
  115 + <x>401</x>
  116 + <y>26</y>
  117 + <width>97</width>
  118 + <height>97</height>
  119 + </rect>
  120 + </property>
  121 + <property name="sizePolicy">
  122 + <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  123 + <horstretch>0</horstretch>
  124 + <verstretch>0</verstretch>
  125 + </sizepolicy>
  126 + </property>
  127 + <property name="styleSheet">
  128 + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); }
  129 +QPushButton:pressed { border-image: url(:/images/bottom_bar/back_ov.png); }</string>
  130 + </property>
  131 + <property name="text">
  132 + <string/>
  133 + </property>
  134 + </widget>
  135 + </widget>
  136 + <widget class="QWidget" name="gridLayoutWidget">
  137 + <property name="geometry">
  138 + <rect>
  139 + <x>40</x>
  140 + <y>545</y>
  141 + <width>821</width>
  142 + <height>66</height>
  143 + </rect>
  144 + </property>
  145 + <layout class="QGridLayout" name="gridLayout" columnstretch="67,33">
  146 + <property name="spacing">
  147 + <number>0</number>
  148 + </property>
  149 + <item row="0" column="0" colspan="2">
  150 + <widget class="QPushButton" name="engadjustbutton">
  151 + <property name="sizePolicy">
  152 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  153 + <horstretch>0</horstretch>
  154 + <verstretch>0</verstretch>
  155 + </sizepolicy>
  156 + </property>
  157 + <property name="palette">
  158 + <palette>
  159 + <active>
  160 + <colorrole role="WindowText">
  161 + <brush brushstyle="SolidPattern">
  162 + <color alpha="255">
  163 + <red>0</red>
  164 + <green>0</green>
  165 + <blue>0</blue>
  166 + </color>
  167 + </brush>
  168 + </colorrole>
  169 + <colorrole role="ButtonText">
  170 + <brush brushstyle="SolidPattern">
  171 + <color alpha="255">
  172 + <red>255</red>
  173 + <green>255</green>
  174 + <blue>255</blue>
  175 + </color>
  176 + </brush>
  177 + </colorrole>
  178 + </active>
  179 + <inactive>
  180 + <colorrole role="WindowText">
  181 + <brush brushstyle="SolidPattern">
  182 + <color alpha="255">
  183 + <red>0</red>
  184 + <green>0</green>
  185 + <blue>0</blue>
  186 + </color>
  187 + </brush>
  188 + </colorrole>
  189 + <colorrole role="ButtonText">
  190 + <brush brushstyle="SolidPattern">
  191 + <color alpha="255">
  192 + <red>255</red>
  193 + <green>255</green>
  194 + <blue>255</blue>
  195 + </color>
  196 + </brush>
  197 + </colorrole>
  198 + </inactive>
  199 + <disabled>
  200 + <colorrole role="WindowText">
  201 + <brush brushstyle="SolidPattern">
  202 + <color alpha="255">
  203 + <red>190</red>
  204 + <green>190</green>
  205 + <blue>190</blue>
  206 + </color>
  207 + </brush>
  208 + </colorrole>
  209 + <colorrole role="ButtonText">
  210 + <brush brushstyle="SolidPattern">
  211 + <color alpha="255">
  212 + <red>190</red>
  213 + <green>190</green>
  214 + <blue>190</blue>
  215 + </color>
  216 + </brush>
  217 + </colorrole>
  218 + </disabled>
  219 + </palette>
  220 + </property>
  221 + <property name="font">
  222 + <font>
  223 + <family>Roboto</family>
  224 + <pointsize>10</pointsize>
  225 + <weight>75</weight>
  226 + <bold>true</bold>
  227 + <underline>false</underline>
  228 + </font>
  229 + </property>
  230 + <property name="styleSheet">
  231 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  232 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  233 +QPushButton { text-align: left;}</string>
  234 + </property>
  235 + <property name="text">
  236 + <string> 교정</string>
  237 + </property>
  238 + </widget>
  239 + </item>
  240 + <item row="0" column="1">
  241 + <widget class="QLabel" name="label_17">
  242 + <property name="enabled">
  243 + <bool>true</bool>
  244 + </property>
  245 + <property name="palette">
  246 + <palette>
  247 + <active>
  248 + <colorrole role="WindowText">
  249 + <brush brushstyle="SolidPattern">
  250 + <color alpha="255">
  251 + <red>255</red>
  252 + <green>255</green>
  253 + <blue>255</blue>
  254 + </color>
  255 + </brush>
  256 + </colorrole>
  257 + </active>
  258 + <inactive>
  259 + <colorrole role="WindowText">
  260 + <brush brushstyle="SolidPattern">
  261 + <color alpha="255">
  262 + <red>255</red>
  263 + <green>255</green>
  264 + <blue>255</blue>
  265 + </color>
  266 + </brush>
  267 + </colorrole>
  268 + </inactive>
  269 + <disabled>
  270 + <colorrole role="WindowText">
  271 + <brush brushstyle="SolidPattern">
  272 + <color alpha="255">
  273 + <red>190</red>
  274 + <green>190</green>
  275 + <blue>190</blue>
  276 + </color>
  277 + </brush>
  278 + </colorrole>
  279 + </disabled>
  280 + </palette>
  281 + </property>
  282 + <property name="font">
  283 + <font>
  284 + <family>Malgun Gothic</family>
  285 + <pointsize>11</pointsize>
  286 + <weight>75</weight>
  287 + <bold>true</bold>
  288 + </font>
  289 + </property>
  290 + <property name="text">
  291 + <string>EM-1</string>
  292 + </property>
  293 + <property name="alignment">
  294 + <set>Qt::AlignCenter</set>
  295 + </property>
  296 + <property name="margin">
  297 + <number>0</number>
  298 + </property>
  299 + </widget>
  300 + </item>
  301 + </layout>
  302 + </widget>
  303 + <widget class="QWidget" name="gridLayoutWidget_2">
  304 + <property name="geometry">
  305 + <rect>
  306 + <x>40</x>
  307 + <y>629</y>
  308 + <width>821</width>
  309 + <height>66</height>
  310 + </rect>
  311 + </property>
  312 + <layout class="QGridLayout" name="gridLayout_2" columnstretch="67,33">
  313 + <property name="spacing">
  314 + <number>0</number>
  315 + </property>
  316 + <item row="0" column="0" colspan="2">
  317 + <widget class="QPushButton" name="stdconfigbutton">
  318 + <property name="sizePolicy">
  319 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  320 + <horstretch>0</horstretch>
  321 + <verstretch>0</verstretch>
  322 + </sizepolicy>
  323 + </property>
  324 + <property name="palette">
  325 + <palette>
  326 + <active>
  327 + <colorrole role="WindowText">
  328 + <brush brushstyle="SolidPattern">
  329 + <color alpha="255">
  330 + <red>0</red>
  331 + <green>0</green>
  332 + <blue>0</blue>
  333 + </color>
  334 + </brush>
  335 + </colorrole>
  336 + <colorrole role="ButtonText">
  337 + <brush brushstyle="SolidPattern">
  338 + <color alpha="255">
  339 + <red>255</red>
  340 + <green>255</green>
  341 + <blue>255</blue>
  342 + </color>
  343 + </brush>
  344 + </colorrole>
  345 + </active>
  346 + <inactive>
  347 + <colorrole role="WindowText">
  348 + <brush brushstyle="SolidPattern">
  349 + <color alpha="255">
  350 + <red>0</red>
  351 + <green>0</green>
  352 + <blue>0</blue>
  353 + </color>
  354 + </brush>
  355 + </colorrole>
  356 + <colorrole role="ButtonText">
  357 + <brush brushstyle="SolidPattern">
  358 + <color alpha="255">
  359 + <red>255</red>
  360 + <green>255</green>
  361 + <blue>255</blue>
  362 + </color>
  363 + </brush>
  364 + </colorrole>
  365 + </inactive>
  366 + <disabled>
  367 + <colorrole role="WindowText">
  368 + <brush brushstyle="SolidPattern">
  369 + <color alpha="255">
  370 + <red>190</red>
  371 + <green>190</green>
  372 + <blue>190</blue>
  373 + </color>
  374 + </brush>
  375 + </colorrole>
  376 + <colorrole role="ButtonText">
  377 + <brush brushstyle="SolidPattern">
  378 + <color alpha="255">
  379 + <red>190</red>
  380 + <green>190</green>
  381 + <blue>190</blue>
  382 + </color>
  383 + </brush>
  384 + </colorrole>
  385 + </disabled>
  386 + </palette>
  387 + </property>
  388 + <property name="font">
  389 + <font>
  390 + <family>Roboto</family>
  391 + <pointsize>10</pointsize>
  392 + <weight>75</weight>
  393 + <bold>true</bold>
  394 + <underline>false</underline>
  395 + </font>
  396 + </property>
  397 + <property name="styleSheet">
  398 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  399 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  400 +QPushButton { text-align: left;}</string>
  401 + </property>
  402 + <property name="text">
  403 + <string> 기본설정</string>
  404 + </property>
  405 + </widget>
  406 + </item>
  407 + <item row="0" column="1">
  408 + <widget class="QLabel" name="label_18">
  409 + <property name="enabled">
  410 + <bool>true</bool>
  411 + </property>
  412 + <property name="palette">
  413 + <palette>
  414 + <active>
  415 + <colorrole role="WindowText">
  416 + <brush brushstyle="SolidPattern">
  417 + <color alpha="255">
  418 + <red>255</red>
  419 + <green>255</green>
  420 + <blue>255</blue>
  421 + </color>
  422 + </brush>
  423 + </colorrole>
  424 + </active>
  425 + <inactive>
  426 + <colorrole role="WindowText">
  427 + <brush brushstyle="SolidPattern">
  428 + <color alpha="255">
  429 + <red>255</red>
  430 + <green>255</green>
  431 + <blue>255</blue>
  432 + </color>
  433 + </brush>
  434 + </colorrole>
  435 + </inactive>
  436 + <disabled>
  437 + <colorrole role="WindowText">
  438 + <brush brushstyle="SolidPattern">
  439 + <color alpha="255">
  440 + <red>190</red>
  441 + <green>190</green>
  442 + <blue>190</blue>
  443 + </color>
  444 + </brush>
  445 + </colorrole>
  446 + </disabled>
  447 + </palette>
  448 + </property>
  449 + <property name="font">
  450 + <font>
  451 + <family>Malgun Gothic</family>
  452 + <pointsize>11</pointsize>
  453 + <weight>75</weight>
  454 + <bold>true</bold>
  455 + </font>
  456 + </property>
  457 + <property name="text">
  458 + <string>EM-2</string>
  459 + </property>
  460 + <property name="alignment">
  461 + <set>Qt::AlignCenter</set>
  462 + </property>
  463 + <property name="margin">
  464 + <number>0</number>
  465 + </property>
  466 + </widget>
  467 + </item>
  468 + </layout>
  469 + </widget>
  470 + <widget class="QWidget" name="gridLayoutWidget_3">
  471 + <property name="geometry">
  472 + <rect>
  473 + <x>40</x>
  474 + <y>719</y>
  475 + <width>821</width>
  476 + <height>66</height>
  477 + </rect>
  478 + </property>
  479 + <layout class="QGridLayout" name="gridLayout_3" columnstretch="67,33">
  480 + <property name="spacing">
  481 + <number>0</number>
  482 + </property>
  483 + <item row="0" column="0" colspan="2">
  484 + <widget class="QPushButton" name="functiontestbutton">
  485 + <property name="sizePolicy">
  486 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  487 + <horstretch>0</horstretch>
  488 + <verstretch>0</verstretch>
  489 + </sizepolicy>
  490 + </property>
  491 + <property name="palette">
  492 + <palette>
  493 + <active>
  494 + <colorrole role="WindowText">
  495 + <brush brushstyle="SolidPattern">
  496 + <color alpha="255">
  497 + <red>0</red>
  498 + <green>0</green>
  499 + <blue>0</blue>
  500 + </color>
  501 + </brush>
  502 + </colorrole>
  503 + <colorrole role="ButtonText">
  504 + <brush brushstyle="SolidPattern">
  505 + <color alpha="255">
  506 + <red>255</red>
  507 + <green>255</green>
  508 + <blue>255</blue>
  509 + </color>
  510 + </brush>
  511 + </colorrole>
  512 + </active>
  513 + <inactive>
  514 + <colorrole role="WindowText">
  515 + <brush brushstyle="SolidPattern">
  516 + <color alpha="255">
  517 + <red>0</red>
  518 + <green>0</green>
  519 + <blue>0</blue>
  520 + </color>
  521 + </brush>
  522 + </colorrole>
  523 + <colorrole role="ButtonText">
  524 + <brush brushstyle="SolidPattern">
  525 + <color alpha="255">
  526 + <red>255</red>
  527 + <green>255</green>
  528 + <blue>255</blue>
  529 + </color>
  530 + </brush>
  531 + </colorrole>
  532 + </inactive>
  533 + <disabled>
  534 + <colorrole role="WindowText">
  535 + <brush brushstyle="SolidPattern">
  536 + <color alpha="255">
  537 + <red>190</red>
  538 + <green>190</green>
  539 + <blue>190</blue>
  540 + </color>
  541 + </brush>
  542 + </colorrole>
  543 + <colorrole role="ButtonText">
  544 + <brush brushstyle="SolidPattern">
  545 + <color alpha="255">
  546 + <red>190</red>
  547 + <green>190</green>
  548 + <blue>190</blue>
  549 + </color>
  550 + </brush>
  551 + </colorrole>
  552 + </disabled>
  553 + </palette>
  554 + </property>
  555 + <property name="font">
  556 + <font>
  557 + <family>Roboto</family>
  558 + <pointsize>10</pointsize>
  559 + <weight>75</weight>
  560 + <bold>true</bold>
  561 + <underline>false</underline>
  562 + </font>
  563 + </property>
  564 + <property name="styleSheet">
  565 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  566 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  567 +QPushButton { text-align: left;}</string>
  568 + </property>
  569 + <property name="text">
  570 + <string> 기능테스트</string>
  571 + </property>
  572 + </widget>
  573 + </item>
  574 + <item row="0" column="1">
  575 + <widget class="QLabel" name="label_19">
  576 + <property name="enabled">
  577 + <bool>true</bool>
  578 + </property>
  579 + <property name="palette">
  580 + <palette>
  581 + <active>
  582 + <colorrole role="WindowText">
  583 + <brush brushstyle="SolidPattern">
  584 + <color alpha="255">
  585 + <red>255</red>
  586 + <green>255</green>
  587 + <blue>255</blue>
  588 + </color>
  589 + </brush>
  590 + </colorrole>
  591 + </active>
  592 + <inactive>
  593 + <colorrole role="WindowText">
  594 + <brush brushstyle="SolidPattern">
  595 + <color alpha="255">
  596 + <red>255</red>
  597 + <green>255</green>
  598 + <blue>255</blue>
  599 + </color>
  600 + </brush>
  601 + </colorrole>
  602 + </inactive>
  603 + <disabled>
  604 + <colorrole role="WindowText">
  605 + <brush brushstyle="SolidPattern">
  606 + <color alpha="255">
  607 + <red>190</red>
  608 + <green>190</green>
  609 + <blue>190</blue>
  610 + </color>
  611 + </brush>
  612 + </colorrole>
  613 + </disabled>
  614 + </palette>
  615 + </property>
  616 + <property name="font">
  617 + <font>
  618 + <family>Malgun Gothic</family>
  619 + <pointsize>11</pointsize>
  620 + <weight>75</weight>
  621 + <bold>true</bold>
  622 + </font>
  623 + </property>
  624 + <property name="text">
  625 + <string>EM-3</string>
  626 + </property>
  627 + <property name="alignment">
  628 + <set>Qt::AlignCenter</set>
  629 + </property>
  630 + <property name="margin">
  631 + <number>0</number>
  632 + </property>
  633 + </widget>
  634 + </item>
  635 + </layout>
  636 + </widget>
  637 + <widget class="QWidget" name="gridLayoutWidget_4">
  638 + <property name="geometry">
  639 + <rect>
  640 + <x>40</x>
  641 + <y>797</y>
  642 + <width>821</width>
  643 + <height>66</height>
  644 + </rect>
  645 + </property>
  646 + <layout class="QGridLayout" name="gridLayout_4" columnstretch="67,33">
  647 + <property name="spacing">
  648 + <number>0</number>
  649 + </property>
  650 + <item row="0" column="0" colspan="2">
  651 + <widget class="QPushButton" name="servicehistorybutton">
  652 + <property name="sizePolicy">
  653 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  654 + <horstretch>0</horstretch>
  655 + <verstretch>0</verstretch>
  656 + </sizepolicy>
  657 + </property>
  658 + <property name="palette">
  659 + <palette>
  660 + <active>
  661 + <colorrole role="WindowText">
  662 + <brush brushstyle="SolidPattern">
  663 + <color alpha="255">
  664 + <red>0</red>
  665 + <green>0</green>
  666 + <blue>0</blue>
  667 + </color>
  668 + </brush>
  669 + </colorrole>
  670 + <colorrole role="ButtonText">
  671 + <brush brushstyle="SolidPattern">
  672 + <color alpha="255">
  673 + <red>255</red>
  674 + <green>255</green>
  675 + <blue>255</blue>
  676 + </color>
  677 + </brush>
  678 + </colorrole>
  679 + </active>
  680 + <inactive>
  681 + <colorrole role="WindowText">
  682 + <brush brushstyle="SolidPattern">
  683 + <color alpha="255">
  684 + <red>0</red>
  685 + <green>0</green>
  686 + <blue>0</blue>
  687 + </color>
  688 + </brush>
  689 + </colorrole>
  690 + <colorrole role="ButtonText">
  691 + <brush brushstyle="SolidPattern">
  692 + <color alpha="255">
  693 + <red>255</red>
  694 + <green>255</green>
  695 + <blue>255</blue>
  696 + </color>
  697 + </brush>
  698 + </colorrole>
  699 + </inactive>
  700 + <disabled>
  701 + <colorrole role="WindowText">
  702 + <brush brushstyle="SolidPattern">
  703 + <color alpha="255">
  704 + <red>190</red>
  705 + <green>190</green>
  706 + <blue>190</blue>
  707 + </color>
  708 + </brush>
  709 + </colorrole>
  710 + <colorrole role="ButtonText">
  711 + <brush brushstyle="SolidPattern">
  712 + <color alpha="255">
  713 + <red>190</red>
  714 + <green>190</green>
  715 + <blue>190</blue>
  716 + </color>
  717 + </brush>
  718 + </colorrole>
  719 + </disabled>
  720 + </palette>
  721 + </property>
  722 + <property name="font">
  723 + <font>
  724 + <family>Roboto</family>
  725 + <pointsize>10</pointsize>
  726 + <weight>75</weight>
  727 + <bold>true</bold>
  728 + <underline>false</underline>
  729 + </font>
  730 + </property>
  731 + <property name="styleSheet">
  732 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  733 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  734 +QPushButton { text-align: left;}</string>
  735 + </property>
  736 + <property name="text">
  737 + <string> 서비스기록</string>
  738 + </property>
  739 + </widget>
  740 + </item>
  741 + <item row="0" column="1">
  742 + <widget class="QLabel" name="label_20">
  743 + <property name="enabled">
  744 + <bool>true</bool>
  745 + </property>
  746 + <property name="palette">
  747 + <palette>
  748 + <active>
  749 + <colorrole role="WindowText">
  750 + <brush brushstyle="SolidPattern">
  751 + <color alpha="255">
  752 + <red>255</red>
  753 + <green>255</green>
  754 + <blue>255</blue>
  755 + </color>
  756 + </brush>
  757 + </colorrole>
  758 + </active>
  759 + <inactive>
  760 + <colorrole role="WindowText">
  761 + <brush brushstyle="SolidPattern">
  762 + <color alpha="255">
  763 + <red>255</red>
  764 + <green>255</green>
  765 + <blue>255</blue>
  766 + </color>
  767 + </brush>
  768 + </colorrole>
  769 + </inactive>
  770 + <disabled>
  771 + <colorrole role="WindowText">
  772 + <brush brushstyle="SolidPattern">
  773 + <color alpha="255">
  774 + <red>190</red>
  775 + <green>190</green>
  776 + <blue>190</blue>
  777 + </color>
  778 + </brush>
  779 + </colorrole>
  780 + </disabled>
  781 + </palette>
  782 + </property>
  783 + <property name="font">
  784 + <font>
  785 + <family>Malgun Gothic</family>
  786 + <pointsize>11</pointsize>
  787 + <weight>75</weight>
  788 + <bold>true</bold>
  789 + </font>
  790 + </property>
  791 + <property name="text">
  792 + <string>EM-4</string>
  793 + </property>
  794 + <property name="alignment">
  795 + <set>Qt::AlignCenter</set>
  796 + </property>
  797 + <property name="margin">
  798 + <number>0</number>
  799 + </property>
  800 + </widget>
  801 + </item>
  802 + </layout>
  803 + </widget>
  804 + <widget class="QWidget" name="gridLayoutWidget_5">
  805 + <property name="geometry">
  806 + <rect>
  807 + <x>40</x>
  808 + <y>881</y>
  809 + <width>821</width>
  810 + <height>66</height>
  811 + </rect>
  812 + </property>
  813 + <layout class="QGridLayout" name="gridLayout_5" columnstretch="67,33">
  814 + <property name="spacing">
  815 + <number>0</number>
  816 + </property>
  817 + <item row="0" column="0" colspan="2">
  818 + <widget class="QPushButton" name="realdatabutton">
  819 + <property name="sizePolicy">
  820 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  821 + <horstretch>0</horstretch>
  822 + <verstretch>0</verstretch>
  823 + </sizepolicy>
  824 + </property>
  825 + <property name="palette">
  826 + <palette>
  827 + <active>
  828 + <colorrole role="WindowText">
  829 + <brush brushstyle="SolidPattern">
  830 + <color alpha="255">
  831 + <red>0</red>
  832 + <green>0</green>
  833 + <blue>0</blue>
  834 + </color>
  835 + </brush>
  836 + </colorrole>
  837 + <colorrole role="ButtonText">
  838 + <brush brushstyle="SolidPattern">
  839 + <color alpha="255">
  840 + <red>255</red>
  841 + <green>255</green>
  842 + <blue>255</blue>
  843 + </color>
  844 + </brush>
  845 + </colorrole>
  846 + </active>
  847 + <inactive>
  848 + <colorrole role="WindowText">
  849 + <brush brushstyle="SolidPattern">
  850 + <color alpha="255">
  851 + <red>0</red>
  852 + <green>0</green>
  853 + <blue>0</blue>
  854 + </color>
  855 + </brush>
  856 + </colorrole>
  857 + <colorrole role="ButtonText">
  858 + <brush brushstyle="SolidPattern">
  859 + <color alpha="255">
  860 + <red>255</red>
  861 + <green>255</green>
  862 + <blue>255</blue>
  863 + </color>
  864 + </brush>
  865 + </colorrole>
  866 + </inactive>
  867 + <disabled>
  868 + <colorrole role="WindowText">
  869 + <brush brushstyle="SolidPattern">
  870 + <color alpha="255">
  871 + <red>190</red>
  872 + <green>190</green>
  873 + <blue>190</blue>
  874 + </color>
  875 + </brush>
  876 + </colorrole>
  877 + <colorrole role="ButtonText">
  878 + <brush brushstyle="SolidPattern">
  879 + <color alpha="255">
  880 + <red>190</red>
  881 + <green>190</green>
  882 + <blue>190</blue>
  883 + </color>
  884 + </brush>
  885 + </colorrole>
  886 + </disabled>
  887 + </palette>
  888 + </property>
  889 + <property name="font">
  890 + <font>
  891 + <family>Roboto</family>
  892 + <pointsize>10</pointsize>
  893 + <weight>75</weight>
  894 + <bold>true</bold>
  895 + <underline>false</underline>
  896 + </font>
  897 + </property>
  898 + <property name="styleSheet">
  899 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  900 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  901 +QPushButton { text-align: left;}</string>
  902 + </property>
  903 + <property name="text">
  904 + <string> 실시간데이터</string>
  905 + </property>
  906 + </widget>
  907 + </item>
  908 + <item row="0" column="1">
  909 + <widget class="QLabel" name="label_21">
  910 + <property name="enabled">
  911 + <bool>true</bool>
  912 + </property>
  913 + <property name="palette">
  914 + <palette>
  915 + <active>
  916 + <colorrole role="WindowText">
  917 + <brush brushstyle="SolidPattern">
  918 + <color alpha="255">
  919 + <red>255</red>
  920 + <green>255</green>
  921 + <blue>255</blue>
  922 + </color>
  923 + </brush>
  924 + </colorrole>
  925 + </active>
  926 + <inactive>
  927 + <colorrole role="WindowText">
  928 + <brush brushstyle="SolidPattern">
  929 + <color alpha="255">
  930 + <red>255</red>
  931 + <green>255</green>
  932 + <blue>255</blue>
  933 + </color>
  934 + </brush>
  935 + </colorrole>
  936 + </inactive>
  937 + <disabled>
  938 + <colorrole role="WindowText">
  939 + <brush brushstyle="SolidPattern">
  940 + <color alpha="255">
  941 + <red>190</red>
  942 + <green>190</green>
  943 + <blue>190</blue>
  944 + </color>
  945 + </brush>
  946 + </colorrole>
  947 + </disabled>
  948 + </palette>
  949 + </property>
  950 + <property name="font">
  951 + <font>
  952 + <family>Malgun Gothic</family>
  953 + <pointsize>11</pointsize>
  954 + <weight>75</weight>
  955 + <bold>true</bold>
  956 + </font>
  957 + </property>
  958 + <property name="text">
  959 + <string>EM-5</string>
  960 + </property>
  961 + <property name="alignment">
  962 + <set>Qt::AlignCenter</set>
  963 + </property>
  964 + <property name="margin">
  965 + <number>0</number>
  966 + </property>
  967 + </widget>
  968 + </item>
  969 + </layout>
  970 + </widget>
  971 + <widget class="QWidget" name="gridLayoutWidget_6">
  972 + <property name="geometry">
  973 + <rect>
  974 + <x>40</x>
  975 + <y>965</y>
  976 + <width>821</width>
  977 + <height>66</height>
  978 + </rect>
  979 + </property>
  980 + <layout class="QGridLayout" name="gridLayout_6" columnstretch="67,33">
  981 + <property name="spacing">
  982 + <number>0</number>
  983 + </property>
  984 + <item row="0" column="0" colspan="2">
  985 + <widget class="QPushButton" name="operationtimebutton">
  986 + <property name="sizePolicy">
  987 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  988 + <horstretch>0</horstretch>
  989 + <verstretch>0</verstretch>
  990 + </sizepolicy>
  991 + </property>
  992 + <property name="palette">
  993 + <palette>
  994 + <active>
  995 + <colorrole role="WindowText">
  996 + <brush brushstyle="SolidPattern">
  997 + <color alpha="255">
  998 + <red>0</red>
  999 + <green>0</green>
  1000 + <blue>0</blue>
  1001 + </color>
  1002 + </brush>
  1003 + </colorrole>
  1004 + <colorrole role="ButtonText">
  1005 + <brush brushstyle="SolidPattern">
  1006 + <color alpha="255">
  1007 + <red>255</red>
  1008 + <green>255</green>
  1009 + <blue>255</blue>
  1010 + </color>
  1011 + </brush>
  1012 + </colorrole>
  1013 + </active>
  1014 + <inactive>
  1015 + <colorrole role="WindowText">
  1016 + <brush brushstyle="SolidPattern">
  1017 + <color alpha="255">
  1018 + <red>0</red>
  1019 + <green>0</green>
  1020 + <blue>0</blue>
  1021 + </color>
  1022 + </brush>
  1023 + </colorrole>
  1024 + <colorrole role="ButtonText">
  1025 + <brush brushstyle="SolidPattern">
  1026 + <color alpha="255">
  1027 + <red>255</red>
  1028 + <green>255</green>
  1029 + <blue>255</blue>
  1030 + </color>
  1031 + </brush>
  1032 + </colorrole>
  1033 + </inactive>
  1034 + <disabled>
  1035 + <colorrole role="WindowText">
  1036 + <brush brushstyle="SolidPattern">
  1037 + <color alpha="255">
  1038 + <red>190</red>
  1039 + <green>190</green>
  1040 + <blue>190</blue>
  1041 + </color>
  1042 + </brush>
  1043 + </colorrole>
  1044 + <colorrole role="ButtonText">
  1045 + <brush brushstyle="SolidPattern">
  1046 + <color alpha="255">
  1047 + <red>190</red>
  1048 + <green>190</green>
  1049 + <blue>190</blue>
  1050 + </color>
  1051 + </brush>
  1052 + </colorrole>
  1053 + </disabled>
  1054 + </palette>
  1055 + </property>
  1056 + <property name="font">
  1057 + <font>
  1058 + <family>Roboto</family>
  1059 + <pointsize>10</pointsize>
  1060 + <weight>75</weight>
  1061 + <bold>true</bold>
  1062 + <underline>false</underline>
  1063 + </font>
  1064 + </property>
  1065 + <property name="styleSheet">
  1066 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  1067 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  1068 +QPushButton { text-align: left;}</string>
  1069 + </property>
  1070 + <property name="text">
  1071 + <string> 작동시간</string>
  1072 + </property>
  1073 + </widget>
  1074 + </item>
  1075 + <item row="0" column="1">
  1076 + <widget class="QLabel" name="label_22">
  1077 + <property name="enabled">
  1078 + <bool>true</bool>
  1079 + </property>
  1080 + <property name="palette">
  1081 + <palette>
  1082 + <active>
  1083 + <colorrole role="WindowText">
  1084 + <brush brushstyle="SolidPattern">
  1085 + <color alpha="255">
  1086 + <red>255</red>
  1087 + <green>255</green>
  1088 + <blue>255</blue>
  1089 + </color>
  1090 + </brush>
  1091 + </colorrole>
  1092 + </active>
  1093 + <inactive>
  1094 + <colorrole role="WindowText">
  1095 + <brush brushstyle="SolidPattern">
  1096 + <color alpha="255">
  1097 + <red>255</red>
  1098 + <green>255</green>
  1099 + <blue>255</blue>
  1100 + </color>
  1101 + </brush>
  1102 + </colorrole>
  1103 + </inactive>
  1104 + <disabled>
  1105 + <colorrole role="WindowText">
  1106 + <brush brushstyle="SolidPattern">
  1107 + <color alpha="255">
  1108 + <red>190</red>
  1109 + <green>190</green>
  1110 + <blue>190</blue>
  1111 + </color>
  1112 + </brush>
  1113 + </colorrole>
  1114 + </disabled>
  1115 + </palette>
  1116 + </property>
  1117 + <property name="font">
  1118 + <font>
  1119 + <family>Malgun Gothic</family>
  1120 + <pointsize>11</pointsize>
  1121 + <weight>75</weight>
  1122 + <bold>true</bold>
  1123 + </font>
  1124 + </property>
  1125 + <property name="text">
  1126 + <string>EM-6</string>
  1127 + </property>
  1128 + <property name="alignment">
  1129 + <set>Qt::AlignCenter</set>
  1130 + </property>
  1131 + <property name="margin">
  1132 + <number>0</number>
  1133 + </property>
  1134 + </widget>
  1135 + </item>
  1136 + </layout>
  1137 + </widget>
  1138 + <widget class="QWidget" name="gridLayoutWidget_7">
  1139 + <property name="geometry">
  1140 + <rect>
  1141 + <x>40</x>
  1142 + <y>1049</y>
  1143 + <width>821</width>
  1144 + <height>66</height>
  1145 + </rect>
  1146 + </property>
  1147 + <layout class="QGridLayout" name="gridLayout_7" columnstretch="67,33">
  1148 + <property name="spacing">
  1149 + <number>0</number>
  1150 + </property>
  1151 + <item row="0" column="0" colspan="2">
  1152 + <widget class="QPushButton" name="modeltypeconfigbutton">
  1153 + <property name="sizePolicy">
  1154 + <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  1155 + <horstretch>0</horstretch>
  1156 + <verstretch>0</verstretch>
  1157 + </sizepolicy>
  1158 + </property>
  1159 + <property name="palette">
  1160 + <palette>
  1161 + <active>
  1162 + <colorrole role="WindowText">
  1163 + <brush brushstyle="SolidPattern">
  1164 + <color alpha="255">
  1165 + <red>0</red>
  1166 + <green>0</green>
  1167 + <blue>0</blue>
  1168 + </color>
  1169 + </brush>
  1170 + </colorrole>
  1171 + <colorrole role="ButtonText">
  1172 + <brush brushstyle="SolidPattern">
  1173 + <color alpha="255">
  1174 + <red>255</red>
  1175 + <green>255</green>
  1176 + <blue>255</blue>
  1177 + </color>
  1178 + </brush>
  1179 + </colorrole>
  1180 + </active>
  1181 + <inactive>
  1182 + <colorrole role="WindowText">
  1183 + <brush brushstyle="SolidPattern">
  1184 + <color alpha="255">
  1185 + <red>0</red>
  1186 + <green>0</green>
  1187 + <blue>0</blue>
  1188 + </color>
  1189 + </brush>
  1190 + </colorrole>
  1191 + <colorrole role="ButtonText">
  1192 + <brush brushstyle="SolidPattern">
  1193 + <color alpha="255">
  1194 + <red>255</red>
  1195 + <green>255</green>
  1196 + <blue>255</blue>
  1197 + </color>
  1198 + </brush>
  1199 + </colorrole>
  1200 + </inactive>
  1201 + <disabled>
  1202 + <colorrole role="WindowText">
  1203 + <brush brushstyle="SolidPattern">
  1204 + <color alpha="255">
  1205 + <red>190</red>
  1206 + <green>190</green>
  1207 + <blue>190</blue>
  1208 + </color>
  1209 + </brush>
  1210 + </colorrole>
  1211 + <colorrole role="ButtonText">
  1212 + <brush brushstyle="SolidPattern">
  1213 + <color alpha="255">
  1214 + <red>190</red>
  1215 + <green>190</green>
  1216 + <blue>190</blue>
  1217 + </color>
  1218 + </brush>
  1219 + </colorrole>
  1220 + </disabled>
  1221 + </palette>
  1222 + </property>
  1223 + <property name="font">
  1224 + <font>
  1225 + <family>Roboto</family>
  1226 + <pointsize>10</pointsize>
  1227 + <weight>75</weight>
  1228 + <bold>true</bold>
  1229 + <underline>false</underline>
  1230 + </font>
  1231 + </property>
  1232 + <property name="styleSheet">
  1233 + <string notr="true">QPushButton { border-image: url(:/images/config/service/100_fav_pannel.png); }
  1234 +QPushButton:pressed { border-image: url(:/images/config/service/100_fav_pannel_ov.png); }
  1235 +QPushButton { text-align: left;}</string>
  1236 + </property>
  1237 + <property name="text">
  1238 + <string> 제품모델설정</string>
  1239 + </property>
  1240 + </widget>
  1241 + </item>
  1242 + <item row="0" column="1">
  1243 + <widget class="QLabel" name="label_23">
  1244 + <property name="enabled">
  1245 + <bool>true</bool>
  1246 + </property>
  1247 + <property name="palette">
  1248 + <palette>
  1249 + <active>
  1250 + <colorrole role="WindowText">
  1251 + <brush brushstyle="SolidPattern">
  1252 + <color alpha="255">
  1253 + <red>255</red>
  1254 + <green>255</green>
  1255 + <blue>255</blue>
  1256 + </color>
  1257 + </brush>
  1258 + </colorrole>
  1259 + </active>
  1260 + <inactive>
  1261 + <colorrole role="WindowText">
  1262 + <brush brushstyle="SolidPattern">
  1263 + <color alpha="255">
  1264 + <red>255</red>
  1265 + <green>255</green>
  1266 + <blue>255</blue>
  1267 + </color>
  1268 + </brush>
  1269 + </colorrole>
  1270 + </inactive>
  1271 + <disabled>
  1272 + <colorrole role="WindowText">
  1273 + <brush brushstyle="SolidPattern">
  1274 + <color alpha="255">
  1275 + <red>190</red>
  1276 + <green>190</green>
  1277 + <blue>190</blue>
  1278 + </color>
  1279 + </brush>
  1280 + </colorrole>
  1281 + </disabled>
  1282 + </palette>
  1283 + </property>
  1284 + <property name="font">
  1285 + <font>
  1286 + <family>Malgun Gothic</family>
  1287 + <pointsize>11</pointsize>
  1288 + <weight>75</weight>
  1289 + <bold>true</bold>
  1290 + </font>
  1291 + </property>
  1292 + <property name="text">
  1293 + <string>EM-7</string>
  1294 + </property>
  1295 + <property name="alignment">
  1296 + <set>Qt::AlignCenter</set>
  1297 + </property>
  1298 + <property name="margin">
  1299 + <number>0</number>
  1300 + </property>
  1301 + </widget>
  1302 + </item>
  1303 + </layout>
  1304 + </widget>
  1305 + </widget>
  1306 + </widget>
  1307 + <customwidgets>
  1308 + <customwidget>
  1309 + <class>Clock</class>
  1310 + <extends>QWidget</extends>
  1311 + <header>clock.h</header>
  1312 + <container>1</container>
  1313 + </customwidget>
  1314 + </customwidgets>
  1315 + <resources/>
  1316 + <connections/>
  1317 +</ui>
... ...
app/gui/oven_control/images/config/service/100_fav_pannel.png

9.74 KB

app/gui/oven_control/images/config/service/100_fav_pannel_ov.png

9.96 KB

app/gui/oven_control/mainwindow.cpp
... ... @@ -18,15 +18,21 @@ MainWindow::MainWindow(QWidget *parent) :
18 18 {
19 19 ui->setupUi(this);
20 20  
  21 + //for singletone event debug
  22 + pcombiButton = ui->helpButton;
  23 +
21 24 oven = new Oven(this);
22 25  
23 26 OvenController *interface = new OvenController(this, oven);
24 27 oven->setInterface(interface);
25 28  
26 29 udp = new UdpHandler(this);
  30 +
27 31 qDebug() << udp->init();
28 32 interface->setUdpHandler(udp);
29 33  
  34 + ovenStatics = OvenStatics::getInstance(this,udp,oven);
  35 +
30 36 QSignalMapper *sm = new QSignalMapper(this);
31 37 sm->setMapping(ui->steamButton, (int) Oven::SteamMode);
32 38 sm->setMapping(ui->combiButton, (int) Oven::CombinationMode);
... ...
app/gui/oven_control/mainwindow.h
... ... @@ -2,9 +2,11 @@
2 2 #define MAINWINDOW_H
3 3  
4 4 #include <QMainWindow>
  5 +#include <QtWidgets/QPushButton>
5 6  
6 7 #include "oven.h"
7 8 #include "udphandler.h"
  9 +#include "ovenstatics.h"
8 10  
9 11 namespace Ui {
10 12 class MainWindow;
... ... @@ -15,6 +17,8 @@ class MainWindow : public QMainWindow
15 17 Q_OBJECT
16 18  
17 19 public:
  20 + //for singtone event debug
  21 + QPushButton *pcombiButton;
18 22 explicit MainWindow(QWidget *parent = 0);
19 23 ~MainWindow();
20 24  
... ... @@ -39,6 +43,7 @@ private:
39 43  
40 44 Oven *oven;
41 45 UdpHandler *udp;
  46 + OvenStatics* ovenStatics;
42 47 };
43 48  
44 49 #endif // MAINWINDOW_H
... ...
app/gui/oven_control/oven_control.pro
... ... @@ -43,6 +43,10 @@ SOURCES += main.cpp\
43 43 preheatpopup.cpp \
44 44 longpreheattempgauge.cpp \
45 45 cooldownpopup.cpp
  46 + engineermenuwindow.cpp \
  47 + ovenstatics.cpp \
  48 + servicedatas.cpp \
  49 + popupwindow.cpp
46 50  
47 51 HEADERS += mainwindow.h \
48 52 cook.h \
... ... @@ -74,6 +78,10 @@ HEADERS += mainwindow.h \
74 78 preheatpopup.h \
75 79 longpreheattempgauge.h \
76 80 cooldownpopup.h
  81 + engineermenuwindow.h \
  82 + ovenstatics.h \
  83 + servicedatas.h \
  84 + popupwindow.h
77 85  
78 86 FORMS += mainwindow.ui \
79 87 manualcookwindow.ui \
... ... @@ -91,6 +99,8 @@ FORMS += mainwindow.ui \
91 99 washwindow.ui \
92 100 preheatpopup.ui \
93 101 cooldownpopup.ui
  102 + engineermenuwindow.ui \
  103 + popupwindow.ui
94 104  
95 105 RESOURCES += \
96 106 resources.qrc
... ...
app/gui/oven_control/ovenstatics.cpp
... ... @@ -0,0 +1,126 @@
  1 +#include "ovenstatics.h"
  2 +#include <QtDebug>
  3 +#include "mainwindow.h"
  4 +#include "ovencontroller.h"
  5 +#include "popupwindow.h"
  6 +
  7 +OvenStatics* OvenStatics::p_singtonInstance=NULL;
  8 +
  9 +OvenStatics* OvenStatics::getInstance(QObject *parent, UdpHandler* udp, Oven* oven){
  10 + if(!p_singtonInstance){
  11 + if(udp==NULL) return NULL;
  12 + p_singtonInstance = new OvenStatics(parent);
  13 + p_singtonInstance->udp = udp;
  14 + p_singtonInstance->oven = oven;
  15 + //for singletone event debug
  16 + MainWindow* mw = (MainWindow*)parent;
  17 + connect(mw->pcombiButton, SIGNAL(clicked()),p_singtonInstance, SLOT(onDataChanged()));
  18 + connect(p_singtonInstance->udp , SIGNAL(changed()), p_singtonInstance, SLOT(onDataChanged()));
  19 + }
  20 + return p_singtonInstance;
  21 +}
  22 +
  23 +void OvenStatics::destroy(){
  24 + if(!p_singtonInstance)
  25 + delete p_singtonInstance;
  26 +}
  27 +
  28 +
  29 +OvenStatics::OvenStatics(QObject* parent) :QObject(parent)
  30 +{
  31 + curdoorstate = false;
  32 + curSysErrorState = 0;
  33 + srvdatas = new servicedatas();
  34 + srvdatas->loadServiceDatas();
  35 +}
  36 +
  37 +OvenStatics::~OvenStatics(){
  38 + delete srvdatas;
  39 +}
  40 +
  41 +
  42 +void OvenStatics::onDataChanged()
  43 +{
  44 + error_item *item;
  45 + time_t ltime=0;
  46 + qDebug() << "statics event fired";
  47 + popupWindow *w = new popupWindow((QWidget*) parent());
  48 + w->setWindowModality(Qt::WindowModal);
  49 + w->showFullScreen();
  50 + return;
  51 + udp->fillControl(control);
  52 + udp->fillData(state);
  53 + time(&ltime);
  54 +
  55 + if(oven->cooking() && control.system){
  56 + if(state.door_state ==1 && curdoorstate==0){
  57 + //door error
  58 + item = &(srvdatas->err_log.items.door);
  59 + item->fired_cnt+=1;
  60 + if(item->first_fired==0)item->first_fired = ltime;
  61 + item->last_fried = ltime;
  62 + }
  63 + curdoorstate = state.door_state;
  64 + if(state.system_error!=0 && state.system_error != curSysErrorState){
  65 + processSystemError(state.system_error,ltime);
  66 + }
  67 + curSysErrorState = state.system_error;
  68 + }
  69 +
  70 +}
  71 +
  72 +void OvenStatics::processSystemError(uint16_t errflag,time_t ltime){
  73 + error_item *item;
  74 + if( errflag & SYS_ERR_FIRE_TRIGGER1){
  75 + //버너 컨트롤러 1 착화 이상
  76 + item = &(srvdatas->err_log.items.upper_fire_fail);
  77 + item->fired_cnt+=1;
  78 + if(item->first_fired == 0) item->first_fired = ltime;
  79 + item->last_fried = ltime;
  80 + }
  81 + if(errflag & SYS_ERR_FIRE_TRIGGER2){
  82 + //버너 컨트롤러 2 착화 이상
  83 + item = &(srvdatas->err_log.items.lower_fire_fail);
  84 + item->fired_cnt+=1;
  85 + if(item->first_fired == 0) item->first_fired = ltime;
  86 + item->last_fried = ltime;
  87 + }
  88 + if(errflag & SYS_ERR_FIRE_TRIGGER3){
  89 + item = &(srvdatas->err_log.items.steam_fire_fail);
  90 + item->fired_cnt+=1;
  91 + if(item->first_fired == 0) item->first_fired = ltime;
  92 + item->last_fried = ltime;
  93 + }
  94 + if(errflag & SYS_ERR_OVNE_TEMP_ALARM){
  95 + item = &(srvdatas->err_log.items.inner_temp_high_alarm);
  96 + item->fired_cnt+=1;
  97 + if(item->first_fired == 0) item->first_fired = ltime;
  98 + item->last_fried = ltime;
  99 + }
  100 + if(errflag & SYS_ERR_QUN_TEMP_ALARM){
  101 + //퀀칭 온도 센서 과열 -> 에러 항목 없으며 통신이상과 동일 처리
  102 + item = &(srvdatas->err_log.items.qunching_temp_fail);
  103 + item->fired_cnt+=1;
  104 + if(item->first_fired == 0) item->first_fired = ltime;
  105 + item->last_fried = ltime;
  106 + }
  107 + if(errflag & SYS_ERR_CENTER_TEMP_ALARM){
  108 + item = &(srvdatas->err_log.items.meat_prove_temp1_fail);
  109 + item->fired_cnt+=1;
  110 + if(item->first_fired == 0) item->first_fired = ltime;
  111 + item->last_fried = ltime;
  112 + }
  113 + if(errflag & SYS_ERR_WALL_TEMP_ALARM){
  114 + item = &(srvdatas->err_log.items.wall_temp1_fail);
  115 + item->fired_cnt+=1;
  116 + if(item->first_fired == 0) item->first_fired = ltime;
  117 + item->last_fried = ltime;
  118 + }
  119 + if(errflag & SYS_ERR_WATER_SPLY_FAIL){
  120 + //급수 이상 -> 수위 센서 이상으로 통일
  121 + item = &(srvdatas->err_log.items.water_level_sensor_fail);
  122 + item->fired_cnt+=1;
  123 + if(item->first_fired == 0) item->first_fired = ltime;
  124 + item->last_fried = ltime;
  125 + }
  126 +}
... ...
app/gui/oven_control/ovenstatics.h
... ... @@ -0,0 +1,49 @@
  1 +#ifndef OVENSTATICS_H
  2 +#define OVENSTATICS_H
  3 +
  4 +#include <QObject>
  5 +#include <time.h>
  6 +#include "all_share.h"
  7 +#include "udphandler.h"
  8 +#include "oven.h"
  9 +#include "servicedatas.h"
  10 +
  11 +
  12 +#define SYS_ERR_FIRE_TRIGGER1 0x0001
  13 +#define SYS_ERR_FIRE_TRIGGER2 0x0002
  14 +#define SYS_ERR_FIRE_TRIGGER3 0x0004
  15 +#define SYS_ERR_OVNE_TEMP_ALARM 0x0008
  16 +#define SYS_ERR_QUN_TEMP_ALARM 0x0010
  17 +#define SYS_ERR_CENTER_TEMP_ALARM 0x0020
  18 +#define SYS_ERR_WALL_TEMP_ALARM 0x0040
  19 +#define SYS_ERR_WATER_SPLY_FAIL 0x0080
  20 +
  21 +
  22 +
  23 +class OvenStatics : public QObject
  24 +{
  25 + Q_OBJECT
  26 +public:
  27 + static OvenStatics* getInstance(QObject* parent = 0,UdpHandler * udp=0, Oven* oven=0);
  28 + static void destroy();
  29 +
  30 +
  31 +private:
  32 + static OvenStatics* p_singtonInstance;
  33 + UdpHandler *udp;
  34 + Oven* oven;
  35 + oven_control_t control;
  36 + oven_state_t state;
  37 + servicedatas* srvdatas;
  38 +
  39 +
  40 + bool curdoorstate;
  41 + uint16_t curSysErrorState;
  42 + explicit OvenStatics(QObject* parent);
  43 + ~OvenStatics();
  44 + void processSystemError(uint16_t errflag,time_t ltime);
  45 +public slots:
  46 + void onDataChanged();
  47 +};
  48 +
  49 +#endif // OVENSTATICS_H
... ...
app/gui/oven_control/popupwindow.cpp
... ... @@ -0,0 +1,19 @@
  1 +#include "popupwindow.h"
  2 +#include "ui_popupwindow.h"
  3 +
  4 +popupWindow::popupWindow(QWidget *parent) :
  5 + QMainWindow(parent),
  6 + ui(new Ui::popupWindow)
  7 +{
  8 + ui->setupUi(this);
  9 + this->setAttribute(Qt::WA_TranslucentBackground);
  10 + this->setWindowFlags(Qt::FramelessWindowHint);
  11 +
  12 + ui->centralwidget->setAttribute(Qt::WA_TranslucentBackground);
  13 + ui->centralwidget->setWindowFlags(Qt::FramelessWindowHint);
  14 +}
  15 +
  16 +popupWindow::~popupWindow()
  17 +{
  18 + delete ui;
  19 +}
... ...
app/gui/oven_control/popupwindow.h
... ... @@ -0,0 +1,22 @@
  1 +#ifndef POPUPWINDOW_H
  2 +#define POPUPWINDOW_H
  3 +
  4 +#include <QMainWindow>
  5 +
  6 +namespace Ui {
  7 +class popupWindow;
  8 +}
  9 +
  10 +class popupWindow : public QMainWindow
  11 +{
  12 + Q_OBJECT
  13 +
  14 +public:
  15 + explicit popupWindow(QWidget *parent = 0);
  16 + ~popupWindow();
  17 +
  18 +private:
  19 + Ui::popupWindow *ui;
  20 +};
  21 +
  22 +#endif // POPUPWINDOW_H
... ...
app/gui/oven_control/popupwindow.ui
... ... @@ -0,0 +1,105 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui version="4.0">
  3 + <class>popupWindow</class>
  4 + <widget class="QMainWindow" name="popupWindow">
  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:transparent;}</string>
  18 + </property>
  19 + <widget class="QWidget" name="centralwidget">
  20 + <widget class="QLabel" name="label_2">
  21 + <property name="geometry">
  22 + <rect>
  23 + <x>50</x>
  24 + <y>500</y>
  25 + <width>800</width>
  26 + <height>400</height>
  27 + </rect>
  28 + </property>
  29 + <property name="styleSheet">
  30 + <string notr="true">background-color: rgb(79, 79, 79);</string>
  31 + </property>
  32 + <property name="text">
  33 + <string/>
  34 + </property>
  35 + </widget>
  36 + <widget class="QLabel" name="label">
  37 + <property name="geometry">
  38 + <rect>
  39 + <x>50</x>
  40 + <y>510</y>
  41 + <width>801</width>
  42 + <height>41</height>
  43 + </rect>
  44 + </property>
  45 + <property name="font">
  46 + <font>
  47 + <pointsize>16</pointsize>
  48 + <weight>75</weight>
  49 + <bold>true</bold>
  50 + </font>
  51 + </property>
  52 + <property name="styleSheet">
  53 + <string notr="true">color: rgb(255, 255, 255);</string>
  54 + </property>
  55 + <property name="text">
  56 + <string>경 고</string>
  57 + </property>
  58 + <property name="alignment">
  59 + <set>Qt::AlignCenter</set>
  60 + </property>
  61 + </widget>
  62 + <widget class="QLabel" name="ctrlWarnDescription">
  63 + <property name="geometry">
  64 + <rect>
  65 + <x>50</x>
  66 + <y>580</y>
  67 + <width>801</width>
  68 + <height>201</height>
  69 + </rect>
  70 + </property>
  71 + <property name="font">
  72 + <font>
  73 + <pointsize>10</pointsize>
  74 + <weight>75</weight>
  75 + <bold>true</bold>
  76 + </font>
  77 + </property>
  78 + <property name="styleSheet">
  79 + <string notr="true">color: rgb(255, 255, 255);</string>
  80 + </property>
  81 + <property name="text">
  82 + <string>TextLabel</string>
  83 + </property>
  84 + <property name="alignment">
  85 + <set>Qt::AlignCenter</set>
  86 + </property>
  87 + </widget>
  88 + <widget class="QPushButton" name="pushButton">
  89 + <property name="geometry">
  90 + <rect>
  91 + <x>360</x>
  92 + <y>780</y>
  93 + <width>171</width>
  94 + <height>61</height>
  95 + </rect>
  96 + </property>
  97 + <property name="text">
  98 + <string>PushButton</string>
  99 + </property>
  100 + </widget>
  101 + </widget>
  102 + </widget>
  103 + <resources/>
  104 + <connections/>
  105 +</ui>
... ...
app/gui/oven_control/servicedatas.cpp
... ... @@ -0,0 +1,15 @@
  1 +#include "string.h"
  2 +#include "servicedatas.h"
  3 +
  4 +servicedatas::servicedatas()
  5 +{
  6 + memset((void*)err_log.datas,0x00,sizeof(error_log));
  7 +}
  8 +
  9 +bool servicedatas::loadServiceDatas(void){
  10 + return true;
  11 +}
  12 +
  13 +bool servicedatas::saveServiceDatas(void){
  14 + return true;
  15 +}
... ...
app/gui/oven_control/servicedatas.h
... ... @@ -0,0 +1,68 @@
  1 +#ifndef SERVICEDATAS_H
  2 +#define SERVICEDATAS_H
  3 +
  4 +#include <stdint.h>
  5 +#include <time.h>
  6 +
  7 +#define STRUCT_PACK __attribute__ ((packed))
  8 +
  9 +#define MAX_ERROR_TYPE_CNT 34
  10 +
  11 +typedef struct _error_item{
  12 + uint16_t fired_cnt;
  13 + time_t first_fired;
  14 + time_t last_fried;
  15 +}STRUCT_PACK error_item;
  16 +
  17 +
  18 +typedef union _error_log{
  19 + uint8_t datas[MAX_ERROR_TYPE_CNT*sizeof(error_item)];
  20 + error_item values[MAX_ERROR_TYPE_CNT];
  21 + struct{
  22 + error_item door;
  23 + error_item upper_fire_fail;
  24 + error_item upper_fire_alarm;
  25 + error_item upper_pan_fail;
  26 + error_item lower_fire_fail;
  27 + error_item lower_fire_alarm;
  28 + error_item lower_pan_fail;
  29 + error_item steam_fire_fail;
  30 + error_item steam_fire_alarm;
  31 + error_item steam_pan_fail;
  32 + error_item water_level_sensor_fail;
  33 + error_item water_flow_sensor_fail;
  34 + error_item inner_temp_fail;
  35 + error_item inner_temp_high_alarm;
  36 + error_item qunching_temp_fail;
  37 + error_item meat_prove_temp1_fail;
  38 + error_item meatprove_temp2_fail;
  39 + error_item meatprove_temp3_fail;
  40 + error_item meatprove_temp4_fail;
  41 + error_item wall_temp1_fail;
  42 + error_item wall_temp2_fail;
  43 + error_item steam_gen_temp_fail;
  44 + error_item pcb_temp_fail;
  45 + error_item upper_motor_noncook_fail;
  46 + error_item upper_motor_cook_fail;
  47 + error_item lower_motor_noncook_fail;
  48 + error_item lower_motor_cook_fail;
  49 + error_item small_motor_fail;
  50 + error_item midd_motor_fail;
  51 + error_item supply_motor_fail; // Steam Generator Tank Supply Pump
  52 + error_item humidity_tamper_fail;
  53 + }items;
  54 +}STRUCT_PACK error_log;
  55 +
  56 +
  57 +
  58 +
  59 +class servicedatas
  60 +{
  61 +public:
  62 + servicedatas();
  63 + error_log err_log;
  64 + bool saveServiceDatas(void);
  65 + bool loadServiceDatas(void);
  66 +};
  67 +
  68 +#endif // SERVICEDATAS_H
... ...
release/imx6s-prime-oven.dtb
No preview for this file type
release/ramdisk-prime_oven-128M.gz
No preview for this file type
release/rootfs.tar
No preview for this file type
release/u-boot.imx
No preview for this file type
release/uImage
No preview for this file type