src/EditProduct.cpp

changeset 185
405bb68c1ea4
parent 184
da148d6b4c95
child 186
96e239584db5
--- a/src/EditProduct.cpp	Sun May 01 16:27:00 2022 +0200
+++ b/src/EditProduct.cpp	Sun May 01 20:50:01 2022 +0200
@@ -89,6 +89,16 @@
 	ui->beerstyleEdit->addItem(query.value(0).toString()+" "+query.value(1).toString()+" "+query.value(2).toString());
     }
 
+    ui->brew_coolwithEdit->addItem("-");
+    ui->brew_coolwithEdit->addItem(tr("Emersion chiller"));
+    ui->brew_coolwithEdit->addItem(tr("Counterflow chiller"));
+    ui->brew_coolwithEdit->addItem(tr("Au bain marie"));
+    ui->brew_coolwithEdit->addItem(tr("Natural"));
+
+    ui->brew_aerwithEdit->addItem(tr("None"));
+    ui->brew_aerwithEdit->addItem(tr("Air"));
+    ui->brew_aerwithEdit->addItem(tr("Oxygen"));
+
     if (id >= 0) {
 	query.prepare("SELECT * FROM products WHERE record = :recno");
 	query.bindValue(":recno", id);
@@ -912,6 +922,7 @@
     ui->brew_spargevolShow->setValue(product->sparge_volume);
     ui->brew_spargeestShow->setValue(product->brew_sparge_est);
     ui->brew_spargephEdit->setValue(product->brew_sparge_ph);
+    ui->brew_spargephShow->setValue(product->sparge_ph);
 
     ui->brew_boilBox->setTitle(tr("Boiling %1 minutes").arg(product->boil_time));
     ui->brew_preboilphEdit->setValue(product->brew_preboil_ph);
@@ -924,6 +935,25 @@
     ui->brew_aboilvolEdit->setValue(product->brew_aboil_volume);
     ui->brew_aboilvolShow->setValue(product->batch_size * 1.04);
     ui->brew_aboileffShow->setValue(product->brew_aboil_efficiency);
+    ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9);
+    ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7);
+    ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6);
+    ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2);
+    ui->brew_cooltoEdit->setValue(product->brew_cooling_to);
+    ui->brew_coolwithEdit->setCurrentIndex(product->brew_cooling_method);
+    ui->brew_cooltimeEdit->setValue(product->brew_cooling_time);
+
+    ui->brew_trublossEdit->setValue(product->brew_fermenter_tcloss);
+    ui->brew_topupwaterEdit->setValue(product->brew_fermenter_extrawater);
+    ui->brew_tofermentEdit->setValue(product->brew_fermenter_volume);
+    ui->brew_fermentsgShow->setValue(product->brew_fermenter_sg);
+    ui->brew_fermentcolorShow->setValue(product->brew_fermenter_color);
+    ui->brew_fermentcolorShow->setStyleSheet(Utils::ebc_to_style(product->brew_fermenter_color));
+    ui->brew_fermentibuShow->setValue(product->brew_fermenter_ibu);
+
+    ui->brew_aerwithEdit->setCurrentIndex(product->brew_aeration_type);
+    ui->brew_aertimeEdit->setValue(product->brew_aeration_time);
+    ui->brew_aerspeedEdit->setValue(product->brew_aeration_speed);
 
     // Tab fermentation.
 

mercurial