Added brewday sparge and lauter results box.

Sun, 01 May 2022 11:38:53 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 01 May 2022 11:38:53 +0200
changeset 183
bce87b8b604b
parent 182
545d31130844
child 184
da148d6b4c95

Added brewday sparge and lauter results box.

src/EditProduct.cpp file | annotate | diff | comparison | revisions
src/EditProductTab7.cpp file | annotate | diff | comparison | revisions
ui/EditProduct.ui file | annotate | diff | comparison | revisions
--- 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.
--- 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);
 }
 
 
--- 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 @@
        <widget class="QLabel" name="brew_startLabel">
         <property name="geometry">
          <rect>
-          <x>0</x>
+          <x>10</x>
           <y>10</y>
           <width>131</width>
           <height>20</height>
@@ -5972,7 +5972,7 @@
        <widget class="QLineEdit" name="brew_startEdit">
         <property name="geometry">
          <rect>
-          <x>140</x>
+          <x>150</x>
           <y>10</y>
           <width>141</width>
           <height>23</height>
@@ -5998,7 +5998,7 @@
        <widget class="QToolButton" name="brew_startButton">
         <property name="geometry">
          <rect>
-          <x>290</x>
+          <x>300</x>
           <y>10</y>
           <width>28</width>
           <height>22</height>
@@ -6032,7 +6032,7 @@
        <widget class="QGroupBox" name="brew_mashBox">
         <property name="geometry">
          <rect>
-          <x>0</x>
+          <x>10</x>
           <y>40</y>
           <width>321</width>
           <height>121</height>
@@ -6203,6 +6203,180 @@
          </property>
         </widget>
        </widget>
+       <widget class="QGroupBox" name="brew_spargeBox">
+        <property name="geometry">
+         <rect>
+          <x>10</x>
+          <y>170</y>
+          <width>321</width>
+          <height>151</height>
+         </rect>
+        </property>
+        <property name="title">
+         <string>Sparge and Lauter</string>
+        </property>
+        <widget class="QLabel" name="brew_spargetempLabel">
+         <property name="geometry">
+          <rect>
+           <x>10</x>
+           <y>20</y>
+           <width>121</width>
+           <height>20</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Sparge temp °C:</string>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+        </widget>
+        <widget class="QLabel" name="brew_spargevolLabel">
+         <property name="geometry">
+          <rect>
+           <x>10</x>
+           <y>50</y>
+           <width>121</width>
+           <height>20</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Sparge supply L:</string>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+        </widget>
+        <widget class="QLabel" name="brew_spargeestLabel">
+         <property name="geometry">
+          <rect>
+           <x>10</x>
+           <y>80</y>
+           <width>121</width>
+           <height>20</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Sparge estimate L:</string>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+        </widget>
+        <widget class="QLabel" name="brew_spargephLabel">
+         <property name="geometry">
+          <rect>
+           <x>10</x>
+           <y>110</y>
+           <width>121</width>
+           <height>20</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Sparge water pH:</string>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+        </widget>
+        <widget class="QDoubleSpinBox" name="brew_spargetempShow">
+         <property name="geometry">
+          <rect>
+           <x>140</x>
+           <y>20</y>
+           <width>81</width>
+           <height>24</height>
+          </rect>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+         <property name="readOnly">
+          <bool>true</bool>
+         </property>
+         <property name="buttonSymbols">
+          <enum>QAbstractSpinBox::NoButtons</enum>
+         </property>
+         <property name="decimals">
+          <number>1</number>
+         </property>
+         <property name="maximum">
+          <double>200.000000000000000</double>
+         </property>
+        </widget>
+        <widget class="QDoubleSpinBox" name="brew_spargevolShow">
+         <property name="geometry">
+          <rect>
+           <x>140</x>
+           <y>50</y>
+           <width>81</width>
+           <height>24</height>
+          </rect>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+         <property name="readOnly">
+          <bool>true</bool>
+         </property>
+         <property name="buttonSymbols">
+          <enum>QAbstractSpinBox::NoButtons</enum>
+         </property>
+         <property name="decimals">
+          <number>1</number>
+         </property>
+         <property name="maximum">
+          <double>200000.000000000000000</double>
+         </property>
+        </widget>
+        <widget class="QDoubleSpinBox" name="brew_spargeestShow">
+         <property name="geometry">
+          <rect>
+           <x>140</x>
+           <y>80</y>
+           <width>81</width>
+           <height>24</height>
+          </rect>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+         <property name="readOnly">
+          <bool>true</bool>
+         </property>
+         <property name="buttonSymbols">
+          <enum>QAbstractSpinBox::NoButtons</enum>
+         </property>
+         <property name="decimals">
+          <number>1</number>
+         </property>
+         <property name="maximum">
+          <double>200000.000000000000000</double>
+         </property>
+        </widget>
+        <widget class="QDoubleSpinBox" name="brew_spargephEdit">
+         <property name="geometry">
+          <rect>
+           <x>140</x>
+           <y>110</y>
+           <width>81</width>
+           <height>24</height>
+          </rect>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+         </property>
+         <property name="accelerated">
+          <bool>true</bool>
+         </property>
+         <property name="maximum">
+          <double>14.000000000000000</double>
+         </property>
+         <property name="singleStep">
+          <double>0.100000000000000</double>
+         </property>
+        </widget>
+       </widget>
       </widget>
       <widget class="QWidget" name="ferment">
        <attribute name="icon">

mercurial