# HG changeset patch # User Michiel Broek # Date 1651397933 -7200 # Node ID bce87b8b604b0692726367c964a1260e6dc39089 # Parent 545d311308446f174ce92116c60ad180889d0d5a Added brewday sparge and lauter results box. diff -r 545d31130844 -r bce87b8b604b src/EditProduct.cpp --- a/src/EditProduct.cpp Sun May 01 10:31:31 2022 +0200 +++ b/src/EditProduct.cpp Sun May 01 11:38:53 2022 +0200 @@ -910,6 +910,11 @@ ui->brew_mashsgShow->setValue(0); ui->brew_masheffShow->setValue(product->brew_mash_efficiency); + ui->brew_spargetempShow->setValue(product->sparge_temp); + ui->brew_spargevolShow->setValue(product->sparge_volume); + ui->brew_spargeestShow->setValue(product->brew_sparge_est); + ui->brew_spargephEdit->setValue(product->brew_sparge_ph); + // Tab fermentation. // Tab packaging. diff -r 545d31130844 -r bce87b8b604b src/EditProductTab7.cpp --- a/src/EditProductTab7.cpp Sun May 01 10:31:31 2022 +0200 +++ b/src/EditProductTab7.cpp Sun May 01 11:38:53 2022 +0200 @@ -241,6 +241,11 @@ ui->mash_volEdit->setValue(product->mashs_kg * MaltVolume + infused); /* Show the calculated total mash time. */ ui->mash_timeEdit->setText(QString("%1:%2").arg(product->mashs_time / 60).arg(product->mashs_time % 60, 2, 'f', 0, '0')); + + /* Estimated needed sparge water corrected for the temperature. */ + product->brew_sparge_est = + round((product->boil_size - infused + (product->mashs_kg * my_grain_absorbtion) + product->eq_lauter_deadspace) * 1.03 * 1000) / 1000; + ui->brew_spargeestShow->setValue(product->brew_sparge_est); } diff -r 545d31130844 -r bce87b8b604b ui/EditProduct.ui --- a/ui/EditProduct.ui Sun May 01 10:31:31 2022 +0200 +++ b/ui/EditProduct.ui Sun May 01 11:38:53 2022 +0200 @@ -5940,7 +5940,7 @@ - 0 + 10 10 131 20 @@ -5972,7 +5972,7 @@ - 140 + 150 10 141 23 @@ -5998,7 +5998,7 @@ - 290 + 300 10 28 22 @@ -6032,7 +6032,7 @@ - 0 + 10 40 321 121 @@ -6203,6 +6203,180 @@ + + + + 10 + 170 + 321 + 151 + + + + Sparge and Lauter + + + + + 10 + 20 + 121 + 20 + + + + Sparge temp °C: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 10 + 50 + 121 + 20 + + + + Sparge supply L: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 10 + 80 + 121 + 20 + + + + Sparge estimate L: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 10 + 110 + 121 + 20 + + + + Sparge water pH: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 140 + 20 + 81 + 24 + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + true + + + QAbstractSpinBox::NoButtons + + + 1 + + + 200.000000000000000 + + + + + + 140 + 50 + 81 + 24 + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + true + + + QAbstractSpinBox::NoButtons + + + 1 + + + 200000.000000000000000 + + + + + + 140 + 80 + 81 + 24 + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + true + + + QAbstractSpinBox::NoButtons + + + 1 + + + 200000.000000000000000 + + + + + + 140 + 110 + 81 + 24 + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + true + + + 14.000000000000000 + + + 0.100000000000000 + + +