src/PrinterDialog.cpp

changeset 535
add1938ada0a
parent 533
288ed828d11a
equal deleted inserted replaced
534:810569bfa16b 535:add1938ada0a
1805 if (checkSplit(&painter, &y, 1)) 1805 if (checkSplit(&painter, &y, 1))
1806 factor = 1; 1806 factor = 1;
1807 /* Boil, how much space do we need */ 1807 /* Boil, how much space do we need */
1808 lines = 0; 1808 lines = 0;
1809 if (product->boil_time == 0) { 1809 if (product->boil_time == 0) {
1810 lines = 3; 1810 lines = 5;
1811 } else { 1811 } else {
1812 lines = 5; 1812 lines = 7;
1813 if (product->brew_cooling_method == CHILLER_TYPE_IMMERSION) 1813 if (product->brew_cooling_method == CHILLER_TYPE_IMMERSION)
1814 lines++; 1814 lines++;
1815 for (int i = 0; i < product->fermentables.size(); i++) { 1815 for (int i = 0; i < product->fermentables.size(); i++) {
1816 if (product->fermentables.at(i).added == FERMENTABLE_ADDED_BOIL) 1816 if (product->fermentables.at(i).added == FERMENTABLE_ADDED_BOIL)
1817 lines++; 1817 lines++;
1834 y += 20; 1834 y += 20;
1835 } 1835 }
1836 checkHeader(&painter, &y, tr("Boil")); 1836 checkHeader(&painter, &y, tr("Boil"));
1837 if (product->boil_time > 0) { 1837 if (product->boil_time > 0) {
1838 checkLine(&painter, &y, QString(tr("Total boiltime: %1 minutes")).arg(product->boil_time, 1, 'f', 0)); 1838 checkLine(&painter, &y, QString(tr("Total boiltime: %1 minutes")).arg(product->boil_time, 1, 'f', 0));
1839 checkInput(&painter, &y, QString(tr("Check pH between 5.0 and 5.5 after the hot break")), QString(tr("pH")));
1840 messageInput(&painter, &y, QString(tr("Extra Lactic Acid in the boil")), QString(tr("ml")));
1839 for (int i = product->boil_time; i >= 0; i--) { 1841 for (int i = product->boil_time; i >= 0; i--) {
1840 if (i == 10) { 1842 if (i == 10) {
1841 for (int j = 0; j < product->fermentables.size(); j++) { 1843 for (int j = 0; j < product->fermentables.size(); j++) {
1842 if (product->fermentables.at(j).added == FERMENTABLE_ADDED_BOIL) 1844 if (product->fermentables.at(j).added == FERMENTABLE_ADDED_BOIL)
1843 checkLine(&painter, &y, QString(tr("%1 kg `%2` at 10 minutes before end of boil")) 1845 checkLine(&painter, &y, QString(tr("%1 kg `%2` at 10 minutes before end of boil"))

mercurial