diff --git a/app/gui/oven_control/autocookselectionwindow.cpp b/app/gui/oven_control/autocookselectionwindow.cpp index a8c4386..132ab94 100644 --- a/app/gui/oven_control/autocookselectionwindow.cpp +++ b/app/gui/oven_control/autocookselectionwindow.cpp @@ -26,6 +26,7 @@ AutoCookSelectionWindow::AutoCookSelectionWindow(QWidget *parent, Define::CookTy setAttribute(Qt::WA_DeleteOnClose); ui->cookTypeIcon->setPixmap(Define::icon(type)); + ui->cookTypeLabel->setText(Define::label(type)); book = CookBook(type); diff --git a/app/gui/oven_control/autocookselectionwindow.ui b/app/gui/oven_control/autocookselectionwindow.ui index e6b4a63..561d086 100644 --- a/app/gui/oven_control/autocookselectionwindow.ui +++ b/app/gui/oven_control/autocookselectionwindow.ui @@ -138,7 +138,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/h 0 516 - 1080 + 240 180 @@ -190,12 +190,30 @@ QPushButton:pressed, QPushButton:focus { background-image: url(:/images/auto_pop QPushButton:pressed, QPushButton:focus { background-image: url(:/images/auto_popup/next_ov.png); } + + + + 0 + 516 + 1080 + 180 + + + + color: white; +font-size: 48px; + + + Qt::AlignCenter + + upperStack bottomBar cookTypeIcon bullets next prev + cookTypeLabel diff --git a/app/gui/oven_control/define.cpp b/app/gui/oven_control/define.cpp index 4aef35d..89350e9 100644 --- a/app/gui/oven_control/define.cpp +++ b/app/gui/oven_control/define.cpp @@ -599,3 +599,26 @@ QString Define::name(Define::CookConfigType type) return "unknownconfig"; } } + +QString Define::label(Define::CookType type) +{ + switch (type) + { + case Poultry: + return QObject::tr("구이류"); + case Meat: + return QObject::tr("볶음류"); + case Fish: + return QObject::tr("스팀류"); + case Desert: + return QObject::tr("조림류"); + case Vegetable: + return QObject::tr("초벌"); + case Bread: + return QObject::tr("보온"); + case Etc: + return QObject::tr("기타요리"); + default: + return ""; + } +} diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index a2441b5..3663278 100644 --- a/app/gui/oven_control/define.h +++ b/app/gui/oven_control/define.h @@ -31,6 +31,7 @@ namespace Define QString icon(CookType type); QString name(CookType type); + QString label(CookType type); enum CookConfigType {