From 22f83e90f6ded256b43ef80c22d89b3ed06ea1ff Mon Sep 17 00:00:00 2001 From: victor <taehoon@falinux.com> Date: Thu, 18 May 2017 16:38:54 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=8D=B8=20=EC=84=A4=EC=A0=95=20UI=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oven_control/electricmodelsettingwindow.cpp | 42 ++ app/gui/oven_control/electricmodelsettingwindow.h | 33 ++ app/gui/oven_control/electricmodelsettingwindow.ui | 469 +++++++++++++++ app/gui/oven_control/engineermenuwindow.cpp | 9 + app/gui/oven_control/engineermenuwindow.h | 2 + app/gui/oven_control/functiontestwindow.cpp | 2 +- app/gui/oven_control/gasmodelsettingwindow.cpp | 62 ++ app/gui/oven_control/gasmodelsettingwindow.h | 41 ++ app/gui/oven_control/gasmodelsettingwindow.ui | 645 +++++++++++++++++++++ app/gui/oven_control/modelsettingwindow.cpp | 37 ++ app/gui/oven_control/modelsettingwindow.h | 30 + app/gui/oven_control/modelsettingwindow.ui | 381 ++++++++++++ app/gui/oven_control/oven_control.pro | 17 +- 13 files changed, 1766 insertions(+), 4 deletions(-) create mode 100644 app/gui/oven_control/electricmodelsettingwindow.cpp create mode 100644 app/gui/oven_control/electricmodelsettingwindow.h create mode 100644 app/gui/oven_control/electricmodelsettingwindow.ui create mode 100644 app/gui/oven_control/gasmodelsettingwindow.cpp create mode 100644 app/gui/oven_control/gasmodelsettingwindow.h create mode 100644 app/gui/oven_control/gasmodelsettingwindow.ui create mode 100644 app/gui/oven_control/modelsettingwindow.cpp create mode 100644 app/gui/oven_control/modelsettingwindow.h create mode 100644 app/gui/oven_control/modelsettingwindow.ui diff --git a/app/gui/oven_control/electricmodelsettingwindow.cpp b/app/gui/oven_control/electricmodelsettingwindow.cpp new file mode 100644 index 0000000..077b6f7 --- /dev/null +++ b/app/gui/oven_control/electricmodelsettingwindow.cpp @@ -0,0 +1,42 @@ +#include "electricmodelsettingwindow.h" +#include "ui_electricmodelsettingwindow.h" + +ElectricModelSettingWindow::ElectricModelSettingWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::ElectricModelSettingWindow) +{ + ui->setupUi(this); + + ui->clockContainer->setParent(ui->upperStack); + setAttribute(Qt::WA_DeleteOnClose); +} + +ElectricModelSettingWindow::~ElectricModelSettingWindow() +{ + delete ui; +} + +void ElectricModelSettingWindow::on_e10Button_clicked() +{ + +} + +void ElectricModelSettingWindow::on_e20Button_clicked() +{ + +} + +void ElectricModelSettingWindow::on_e24Button_clicked() +{ + +} + +void ElectricModelSettingWindow::on_e40Button_clicked() +{ + +} + +void ElectricModelSettingWindow::on_backButton_clicked() +{ + close(); +} diff --git a/app/gui/oven_control/electricmodelsettingwindow.h b/app/gui/oven_control/electricmodelsettingwindow.h new file mode 100644 index 0000000..ad0b95b --- /dev/null +++ b/app/gui/oven_control/electricmodelsettingwindow.h @@ -0,0 +1,33 @@ +#ifndef ELECTRICMODELSETTINGWINDOW_H +#define ELECTRICMODELSETTINGWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class ElectricModelSettingWindow; +} + +class ElectricModelSettingWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit ElectricModelSettingWindow(QWidget *parent = 0); + ~ElectricModelSettingWindow(); + +private slots: + void on_e10Button_clicked(); + + void on_e20Button_clicked(); + + void on_e24Button_clicked(); + + void on_e40Button_clicked(); + + void on_backButton_clicked(); + +private: + Ui::ElectricModelSettingWindow *ui; +}; + +#endif // ELECTRICMODELSETTINGWINDOW_H diff --git a/app/gui/oven_control/electricmodelsettingwindow.ui b/app/gui/oven_control/electricmodelsettingwindow.ui new file mode 100644 index 0000000..35ae986 --- /dev/null +++ b/app/gui/oven_control/electricmodelsettingwindow.ui @@ -0,0 +1,469 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ElectricModelSettingWindow</class> + <widget class="QMainWindow" name="ElectricModelSettingWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>1600</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <property name="styleSheet"> + <string notr="true">#centralwidget { background-image: url(:/images/background/config_service.png); } +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }</string> + </property> + <widget class="QWidget" name="centralwidget"> + <widget class="QPushButton" name="e24Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>804</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>24단</string> + </property> + </widget> + <widget class="QWidget" name="widget" native="true"> + <property name="geometry"> + <rect> + <x>39</x> + <y>525</y> + <width>821</width> + <height>65</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-image: url(:/images/config/pannel.png);</string> + </property> + </widget> + <widget class="Line" name="line_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>580</y> + <width>1</width> + <height>354</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + <widget class="Line" name="line_5"> + <property name="geometry"> + <rect> + <x>100</x> + <y>933</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QLabel" name="label_16"> + <property name="geometry"> + <rect> + <x>80</x> + <y>525</y> + <width>500</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>제품모델설정</string> + </property> + </widget> + <widget class="QPushButton" name="e40Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>898</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>40단</string> + </property> + </widget> + <widget class="QLabel" name="label_15"> + <property name="geometry"> + <rect> + <x>55</x> + <y>426</y> + <width>845</width> + <height>84</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>서비스단계(엔지니어모드) > 제품모델설정</string> + </property> + </widget> + <widget class="Line" name="line"> + <property name="geometry"> + <rect> + <x>100</x> + <y>651</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="Line" name="line_4"> + <property name="geometry"> + <rect> + <x>100</x> + <y>839</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QLabel" name="label_17"> + <property name="geometry"> + <rect> + <x>600</x> + <y>525</y> + <width>251</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Roboto</family> + <pointsize>11</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>EM-7</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QWidget" name="bottomBar" native="true"> + <property name="geometry"> + <rect> + <x>0</x> + <y>1450</y> + <width>900</width> + <height>150</height> + </rect> + </property> + <widget class="QPushButton" name="backButton"> + <property name="geometry"> + <rect> + <x>401</x> + <y>26</y> + <width>97</width> + <height>97</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); } +QPushButton:pressed { border-image: url(:/images/bottom_bar/back_ov.png); }</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </widget> + <widget class="QPushButton" name="e10Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>616</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>10단</string> + </property> + </widget> + <widget class="QPushButton" name="e20Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>710</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>20단</string> + </property> + </widget> + <widget class="Line" name="line_3"> + <property name="geometry"> + <rect> + <x>100</x> + <y>745</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QStackedWidget" name="upperStack"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>426</height> + </rect> + </property> + <widget class="QWidget" name="clockContainer"> + <property name="styleSheet"> + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string> + </property> + <widget class="Clock" name="clock" native="true"> + <property name="geometry"> + <rect> + <x>272</x> + <y>36</y> + <width>356</width> + <height>355</height> + </rect> + </property> + </widget> + </widget> + <widget class="QWidget" name="page_2"/> + </widget> + </widget> + </widget> + <customwidgets> + <customwidget> + <class>Clock</class> + <extends>QWidget</extends> + <header>clock.h</header> + <container>1</container> + </customwidget> + </customwidgets> + <resources/> + <connections/> +</ui> diff --git a/app/gui/oven_control/engineermenuwindow.cpp b/app/gui/oven_control/engineermenuwindow.cpp index 07eda01..9e098f7 100644 --- a/app/gui/oven_control/engineermenuwindow.cpp +++ b/app/gui/oven_control/engineermenuwindow.cpp @@ -6,6 +6,7 @@ #include "functiontestwindow.h" #include "ovenstatics.h" #include "adjustmentwindow.h" +#include "modelsettingwindow.h" EngineerMenuWindow::EngineerMenuWindow(QWidget *parent) : QMainWindow(parent), @@ -67,3 +68,11 @@ void EngineerMenuWindow::on_stdConfigButton_clicked() { } + +void EngineerMenuWindow::on_modelTypeConfigButton_clicked() +{ + ModelSettingWindow *w = new ModelSettingWindow(this); + w->setWindowModality(Qt::WindowModal); + w->showFullScreen(); + w->raise(); +} diff --git a/app/gui/oven_control/engineermenuwindow.h b/app/gui/oven_control/engineermenuwindow.h index c60c730..b3ee6f1 100644 --- a/app/gui/oven_control/engineermenuwindow.h +++ b/app/gui/oven_control/engineermenuwindow.h @@ -28,6 +28,8 @@ private slots: void on_stdConfigButton_clicked(); + void on_modelTypeConfigButton_clicked(); + private: Ui::EngineerMenuWindow *ui; }; diff --git a/app/gui/oven_control/functiontestwindow.cpp b/app/gui/oven_control/functiontestwindow.cpp index 3dae585..fe782aa 100644 --- a/app/gui/oven_control/functiontestwindow.cpp +++ b/app/gui/oven_control/functiontestwindow.cpp @@ -17,7 +17,7 @@ FunctionTestWindow::FunctionTestWindow(QWidget *parent) : ui->clockContainer->setParent(ui->upperStack); setAttribute(Qt::WA_DeleteOnClose); - connect(ui->backButton, SIGNAL(clicked(bool)), this, SLOT(deleteLater())); + connect(ui->backButton, SIGNAL(clicked(bool)), SLOT(close())); } FunctionTestWindow::~FunctionTestWindow() diff --git a/app/gui/oven_control/gasmodelsettingwindow.cpp b/app/gui/oven_control/gasmodelsettingwindow.cpp new file mode 100644 index 0000000..36db203 --- /dev/null +++ b/app/gui/oven_control/gasmodelsettingwindow.cpp @@ -0,0 +1,62 @@ +#include "gasmodelsettingwindow.h" +#include "ui_gasmodelsettingwindow.h" + +GasModelSettingWindow::GasModelSettingWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::GasModelSettingWindow) +{ + ui->setupUi(this); + + ui->clockContainer->setParent(ui->upperStack); + setAttribute(Qt::WA_DeleteOnClose); +} + +GasModelSettingWindow::~GasModelSettingWindow() +{ + delete ui; +} + +void GasModelSettingWindow::on_lpg10Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lng10Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lpg20Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lng20Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lpg24Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lng24Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lpg40Button_clicked() +{ + +} + +void GasModelSettingWindow::on_lng40Button_clicked() +{ + +} + +void GasModelSettingWindow::on_backButton_clicked() +{ + close(); +} diff --git a/app/gui/oven_control/gasmodelsettingwindow.h b/app/gui/oven_control/gasmodelsettingwindow.h new file mode 100644 index 0000000..1db122d --- /dev/null +++ b/app/gui/oven_control/gasmodelsettingwindow.h @@ -0,0 +1,41 @@ +#ifndef GASMODELSETTINGWINDOW_H +#define GASMODELSETTINGWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class GasModelSettingWindow; +} + +class GasModelSettingWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit GasModelSettingWindow(QWidget *parent = 0); + ~GasModelSettingWindow(); + +private slots: + void on_lpg10Button_clicked(); + + void on_lng10Button_clicked(); + + void on_lpg20Button_clicked(); + + void on_lng20Button_clicked(); + + void on_lpg24Button_clicked(); + + void on_lng24Button_clicked(); + + void on_lpg40Button_clicked(); + + void on_lng40Button_clicked(); + + void on_backButton_clicked(); + +private: + Ui::GasModelSettingWindow *ui; +}; + +#endif // GASMODELSETTINGWINDOW_H diff --git a/app/gui/oven_control/gasmodelsettingwindow.ui b/app/gui/oven_control/gasmodelsettingwindow.ui new file mode 100644 index 0000000..83acf1a --- /dev/null +++ b/app/gui/oven_control/gasmodelsettingwindow.ui @@ -0,0 +1,645 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>GasModelSettingWindow</class> + <widget class="QMainWindow" name="GasModelSettingWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>1600</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <property name="styleSheet"> + <string notr="true">#centralwidget { background-image: url(:/images/background/config_service.png); } +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }</string> + </property> + <widget class="QWidget" name="centralwidget"> + <widget class="QPushButton" name="lpg20Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>804</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>20단 LPG</string> + </property> + </widget> + <widget class="QWidget" name="widget" native="true"> + <property name="geometry"> + <rect> + <x>39</x> + <y>525</y> + <width>821</width> + <height>65</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-image: url(:/images/config/pannel.png);</string> + </property> + </widget> + <widget class="Line" name="line_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>580</y> + <width>1</width> + <height>731</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + <widget class="Line" name="line_5"> + <property name="geometry"> + <rect> + <x>100</x> + <y>933</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="Line" name="line_6"> + <property name="geometry"> + <rect> + <x>100</x> + <y>1027</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QLabel" name="label_16"> + <property name="geometry"> + <rect> + <x>80</x> + <y>525</y> + <width>500</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>제품모델설정</string> + </property> + </widget> + <widget class="QPushButton" name="lng24Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>1086</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>24단 LNG</string> + </property> + </widget> + <widget class="QPushButton" name="lng20Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>898</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>20단 LNG</string> + </property> + </widget> + <widget class="QPushButton" name="lpg24Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>992</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>24단 LPG</string> + </property> + </widget> + <widget class="QLabel" name="label_15"> + <property name="geometry"> + <rect> + <x>55</x> + <y>426</y> + <width>845</width> + <height>84</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>서비스단계(엔지니어모드) > 제품모델설정</string> + </property> + </widget> + <widget class="Line" name="line"> + <property name="geometry"> + <rect> + <x>100</x> + <y>651</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="Line" name="line_7"> + <property name="geometry"> + <rect> + <x>100</x> + <y>1121</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="Line" name="line_4"> + <property name="geometry"> + <rect> + <x>100</x> + <y>839</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QLabel" name="label_17"> + <property name="geometry"> + <rect> + <x>600</x> + <y>525</y> + <width>251</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Roboto</family> + <pointsize>11</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>EM-7</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QWidget" name="bottomBar" native="true"> + <property name="geometry"> + <rect> + <x>0</x> + <y>1450</y> + <width>900</width> + <height>150</height> + </rect> + </property> + <widget class="QPushButton" name="backButton"> + <property name="geometry"> + <rect> + <x>401</x> + <y>26</y> + <width>97</width> + <height>97</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); } +QPushButton:pressed { border-image: url(:/images/bottom_bar/back_ov.png); }</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </widget> + <widget class="QPushButton" name="lpg10Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>616</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>10단 LPG</string> + </property> + </widget> + <widget class="QPushButton" name="lng10Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>710</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>10단 LNG</string> + </property> + </widget> + <widget class="Line" name="line_3"> + <property name="geometry"> + <rect> + <x>100</x> + <y>745</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QStackedWidget" name="upperStack"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>426</height> + </rect> + </property> + <widget class="QWidget" name="clockContainer"> + <property name="styleSheet"> + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string> + </property> + <widget class="Clock" name="clock" native="true"> + <property name="geometry"> + <rect> + <x>272</x> + <y>36</y> + <width>356</width> + <height>355</height> + </rect> + </property> + </widget> + </widget> + <widget class="QWidget" name="page_2"/> + </widget> + <widget class="QPushButton" name="lpg40Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>1180</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>40단 LPG</string> + </property> + </widget> + <widget class="Line" name="line_8"> + <property name="geometry"> + <rect> + <x>100</x> + <y>1215</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="Line" name="line_9"> + <property name="geometry"> + <rect> + <x>100</x> + <y>1309</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QPushButton" name="lng40Button"> + <property name="geometry"> + <rect> + <x>127</x> + <y>1274</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>40단 LNG</string> + </property> + </widget> + </widget> + </widget> + <customwidgets> + <customwidget> + <class>Clock</class> + <extends>QWidget</extends> + <header>clock.h</header> + <container>1</container> + </customwidget> + </customwidgets> + <resources/> + <connections/> +</ui> diff --git a/app/gui/oven_control/modelsettingwindow.cpp b/app/gui/oven_control/modelsettingwindow.cpp new file mode 100644 index 0000000..30bc1ec --- /dev/null +++ b/app/gui/oven_control/modelsettingwindow.cpp @@ -0,0 +1,37 @@ +#include "modelsettingwindow.h" +#include "ui_modelsettingwindow.h" + +#include "electricmodelsettingwindow.h" +#include "gasmodelsettingwindow.h" + +ModelSettingWindow::ModelSettingWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::ModelSettingWindow) +{ + ui->setupUi(this); + + ui->clockContainer->setParent(ui->upperStack); + setAttribute(Qt::WA_DeleteOnClose); +} + +ModelSettingWindow::~ModelSettingWindow() +{ + delete ui; +} + +void ModelSettingWindow::on_electricButton_clicked() +{ + ElectricModelSettingWindow *w = new ElectricModelSettingWindow(this); + w->showFullScreen(); +} + +void ModelSettingWindow::on_gasButton_clicked() +{ + GasModelSettingWindow *w = new GasModelSettingWindow(this); + w->showFullScreen(); +} + +void ModelSettingWindow::on_backButton_clicked() +{ + close(); +} diff --git a/app/gui/oven_control/modelsettingwindow.h b/app/gui/oven_control/modelsettingwindow.h new file mode 100644 index 0000000..bfe5a7d --- /dev/null +++ b/app/gui/oven_control/modelsettingwindow.h @@ -0,0 +1,30 @@ +#ifndef MODELSETTINGWINDOW_H +#define MODELSETTINGWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class ModelSettingWindow; +} + +class ModelSettingWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit ModelSettingWindow(QWidget *parent = 0); + ~ModelSettingWindow(); + +private slots: + + void on_electricButton_clicked(); + + void on_gasButton_clicked(); + + void on_backButton_clicked(); + +private: + Ui::ModelSettingWindow *ui; +}; + +#endif // MODELSETTINGWINDOW_H diff --git a/app/gui/oven_control/modelsettingwindow.ui b/app/gui/oven_control/modelsettingwindow.ui new file mode 100644 index 0000000..3981085 --- /dev/null +++ b/app/gui/oven_control/modelsettingwindow.ui @@ -0,0 +1,381 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ModelSettingWindow</class> + <widget class="QMainWindow" name="ModelSettingWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>1600</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <property name="styleSheet"> + <string notr="true">#centralwidget { background-image: url(:/images/background/config_service.png); } +#bottomBar { background-image: url(:/images/bottom_bar/background.png); }</string> + </property> + <widget class="QWidget" name="centralwidget"> + <widget class="QWidget" name="widget" native="true"> + <property name="geometry"> + <rect> + <x>39</x> + <y>525</y> + <width>821</width> + <height>65</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-image: url(:/images/config/pannel.png);</string> + </property> + </widget> + <widget class="Line" name="line_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>580</y> + <width>1</width> + <height>166</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + <widget class="QLabel" name="label_16"> + <property name="geometry"> + <rect> + <x>80</x> + <y>525</y> + <width>500</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>제품모델설정</string> + </property> + </widget> + <widget class="QLabel" name="label_15"> + <property name="geometry"> + <rect> + <x>55</x> + <y>426</y> + <width>845</width> + <height>84</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Malgun Gothic</family> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>서비스단계(엔지니어모드) > 제품모델설정</string> + </property> + </widget> + <widget class="Line" name="line"> + <property name="geometry"> + <rect> + <x>100</x> + <y>651</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QLabel" name="label_17"> + <property name="geometry"> + <rect> + <x>600</x> + <y>525</y> + <width>251</width> + <height>65</height> + </rect> + </property> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>123</red> + <green>123</green> + <blue>123</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <family>Roboto</family> + <pointsize>11</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>EM-7</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QWidget" name="bottomBar" native="true"> + <property name="geometry"> + <rect> + <x>0</x> + <y>1450</y> + <width>900</width> + <height>150</height> + </rect> + </property> + <widget class="QPushButton" name="backButton"> + <property name="geometry"> + <rect> + <x>401</x> + <y>26</y> + <width>97</width> + <height>97</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/bottom_bar/back.png); } +QPushButton:pressed { border-image: url(:/images/bottom_bar/back_ov.png); }</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </widget> + <widget class="QPushButton" name="electricButton"> + <property name="geometry"> + <rect> + <x>127</x> + <y>616</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>전기식</string> + </property> + </widget> + <widget class="QPushButton" name="gasButton"> + <property name="geometry"> + <rect> + <x>127</x> + <y>710</y> + <width>379</width> + <height>70</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>NanumGothic</family> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton { border-image: url(:/images/button/379.png); } +QPushButton:pressed { border-image: url(:/images/button/379_ov.png); }</string> + </property> + <property name="text"> + <string>가스식</string> + </property> + </widget> + <widget class="Line" name="line_3"> + <property name="geometry"> + <rect> + <x>100</x> + <y>745</y> + <width>30</width> + <height>1</height> + </rect> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + <widget class="QStackedWidget" name="upperStack"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>900</width> + <height>426</height> + </rect> + </property> + <widget class="QWidget" name="clockContainer"> + <property name="styleSheet"> + <string notr="true">#clockContainer { background-image: url(:/images/clock/background.png); }</string> + </property> + <widget class="Clock" name="clock" native="true"> + <property name="geometry"> + <rect> + <x>272</x> + <y>36</y> + <width>356</width> + <height>355</height> + </rect> + </property> + </widget> + </widget> + <widget class="QWidget" name="page_2"/> + </widget> + </widget> + </widget> + <customwidgets> + <customwidget> + <class>Clock</class> + <extends>QWidget</extends> + <header>clock.h</header> + <container>1</container> + </customwidget> + </customwidgets> + <resources/> + <connections/> +</ui> diff --git a/app/gui/oven_control/oven_control.pro b/app/gui/oven_control/oven_control.pro index c1b9ec5..306670e 100644 --- a/app/gui/oven_control/oven_control.pro +++ b/app/gui/oven_control/oven_control.pro @@ -93,7 +93,11 @@ SOURCES += main.cpp\ confighalfenergydlg.cpp \ configinfodlg.cpp \ configipdlg.cpp \ - configfavoritebutton.cpp + configfavoritebutton.cpp \ + inputoverwatcher.cpp \ + modelsettingwindow.cpp \ + gasmodelsettingwindow.cpp \ + electricmodelsettingwindow.cpp HEADERS += mainwindow.h \ cook.h \ @@ -176,7 +180,11 @@ HEADERS += mainwindow.h \ confighalfenergydlg.h \ configinfodlg.h \ configipdlg.h \ - configfavoritebutton.h + configfavoritebutton.h \ + inputoverwatcher.h \ + modelsettingwindow.h \ + gasmodelsettingwindow.h \ + electricmodelsettingwindow.h FORMS += mainwindow.ui \ manualcookwindow.ui \ @@ -234,7 +242,10 @@ FORMS += mainwindow.ui \ confighalfenergydlg.ui \ configinfodlg.ui \ configipdlg.ui \ - configfavoritebutton.ui + configfavoritebutton.ui \ + modelsettingwindow.ui \ + gasmodelsettingwindow.ui \ + electricmodelsettingwindow.ui RESOURCES += \ resources.qrc -- 2.1.4