Commit bd94cf5e00f858ebd7133cd1ea5b15fc17362015
1 parent
390e12852f
Exists in
fhd
자동 요리 선택 화면에 요리 종류 설명 추가
Showing
4 changed files
with
44 additions
and
1 deletions
Show diff stats
app/gui/oven_control/autocookselectionwindow.cpp
| ... | ... | @@ -26,6 +26,7 @@ AutoCookSelectionWindow::AutoCookSelectionWindow(QWidget *parent, Define::CookTy |
| 26 | 26 | setAttribute(Qt::WA_DeleteOnClose); |
| 27 | 27 | |
| 28 | 28 | ui->cookTypeIcon->setPixmap(Define::icon(type)); |
| 29 | + ui->cookTypeLabel->setText(Define::label(type)); | |
| 29 | 30 | |
| 30 | 31 | book = CookBook(type); |
| 31 | 32 | ... | ... |
app/gui/oven_control/autocookselectionwindow.ui
| ... | ... | @@ -138,7 +138,7 @@ QPushButton:pressed, QPushButton:focus { border-image: url(:/images/bottom_bar/h |
| 138 | 138 | <rect> |
| 139 | 139 | <x>0</x> |
| 140 | 140 | <y>516</y> |
| 141 | - <width>1080</width> | |
| 141 | + <width>240</width> | |
| 142 | 142 | <height>180</height> |
| 143 | 143 | </rect> |
| 144 | 144 | </property> |
| ... | ... | @@ -190,12 +190,30 @@ QPushButton:pressed, QPushButton:focus { background-image: url(:/images/auto_pop |
| 190 | 190 | QPushButton:pressed, QPushButton:focus { background-image: url(:/images/auto_popup/next_ov.png); }</string> |
| 191 | 191 | </property> |
| 192 | 192 | </widget> |
| 193 | + <widget class="QLabel" name="cookTypeLabel"> | |
| 194 | + <property name="geometry"> | |
| 195 | + <rect> | |
| 196 | + <x>0</x> | |
| 197 | + <y>516</y> | |
| 198 | + <width>1080</width> | |
| 199 | + <height>180</height> | |
| 200 | + </rect> | |
| 201 | + </property> | |
| 202 | + <property name="styleSheet"> | |
| 203 | + <string notr="true">color: white; | |
| 204 | +font-size: 48px;</string> | |
| 205 | + </property> | |
| 206 | + <property name="alignment"> | |
| 207 | + <set>Qt::AlignCenter</set> | |
| 208 | + </property> | |
| 209 | + </widget> | |
| 193 | 210 | <zorder>upperStack</zorder> |
| 194 | 211 | <zorder>bottomBar</zorder> |
| 195 | 212 | <zorder>cookTypeIcon</zorder> |
| 196 | 213 | <zorder>bullets</zorder> |
| 197 | 214 | <zorder>next</zorder> |
| 198 | 215 | <zorder>prev</zorder> |
| 216 | + <zorder>cookTypeLabel</zorder> | |
| 199 | 217 | </widget> |
| 200 | 218 | </widget> |
| 201 | 219 | <customwidgets> | ... | ... |
app/gui/oven_control/define.cpp
| ... | ... | @@ -599,3 +599,26 @@ QString Define::name(Define::CookConfigType type) |
| 599 | 599 | return "unknownconfig"; |
| 600 | 600 | } |
| 601 | 601 | } |
| 602 | + | |
| 603 | +QString Define::label(Define::CookType type) | |
| 604 | +{ | |
| 605 | + switch (type) | |
| 606 | + { | |
| 607 | + case Poultry: | |
| 608 | + return QObject::tr("구이류"); | |
| 609 | + case Meat: | |
| 610 | + return QObject::tr("볶음류"); | |
| 611 | + case Fish: | |
| 612 | + return QObject::tr("스팀류"); | |
| 613 | + case Desert: | |
| 614 | + return QObject::tr("조림류"); | |
| 615 | + case Vegetable: | |
| 616 | + return QObject::tr("초벌"); | |
| 617 | + case Bread: | |
| 618 | + return QObject::tr("보온"); | |
| 619 | + case Etc: | |
| 620 | + return QObject::tr("기타요리"); | |
| 621 | + default: | |
| 622 | + return ""; | |
| 623 | + } | |
| 624 | +} | ... | ... |