28 ui->tun_materialEdit->setText(QCoreApplication::translate("TunMaterial", g_tun_materials[product->eq_tun_material])); |
28 ui->tun_materialEdit->setText(QCoreApplication::translate("TunMaterial", g_tun_materials[product->eq_tun_material])); |
29 ui->mash_volumeEdit->setValue(product->eq_mash_volume); |
29 ui->mash_volumeEdit->setValue(product->eq_mash_volume); |
30 ui->mash_maxEdit->setValue(product->eq_mash_max); |
30 ui->mash_maxEdit->setValue(product->eq_mash_max); |
31 |
31 |
32 /* Lautering */ |
32 /* Lautering */ |
33 ui->lauter_volumeEdit->setValue(product->eq_lauter_volume); |
|
34 ui->lauter_deadspaceEdit->setValue(product->eq_lauter_deadspace); |
33 ui->lauter_deadspaceEdit->setValue(product->eq_lauter_deadspace); |
|
34 ui->eq_efficiencyEdit->setValue(product->eq_efficiency); |
35 |
35 |
36 /* Boiling */ |
36 /* Boiling */ |
37 ui->kettle_volumeEdit->setValue(product->eq_kettle_volume); |
37 ui->kettle_volumeEdit->setValue(product->eq_kettle_volume); |
|
38 ui->kettle_lossEdit->setValue(product->eq_trub_chiller_loss); |
38 ui->eqboil_sizeEdit->setValue(product->eq_boil_size); |
39 ui->eqboil_sizeEdit->setValue(product->eq_boil_size); |
39 ui->evap_rateEdit->setValue(product->eq_evap_rate); |
40 ui->evap_rateEdit->setValue(product->eq_evap_rate); |
40 ui->eqboil_timeEdit->setValue(product->eq_boil_time); |
41 ui->eqboil_timeEdit->setValue(product->eq_boil_time); |
41 ui->topup_kettleEdit->setValue(product->eq_top_up_kettle); |
42 ui->topup_kettleEdit->setValue(product->eq_top_up_kettle); |
42 ui->hop_utilizationEdit->setValue(product->eq_hop_utilization); |
|
43 ui->eqbatch_sizeEdit->setValue(product->eq_batch_size); |
43 ui->eqbatch_sizeEdit->setValue(product->eq_batch_size); |
44 ui->eq_efficiencyEdit->setValue(product->eq_efficiency); |
|
45 |
44 |
46 /* Chilling */ |
45 /* Chilling */ |
47 ui->trub_chillerlossEdit->setValue(product->eq_trub_chiller_loss); |
46 ui->chiller_typeEdit->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type])); |
|
47 ui->chiller_to79Edit->setValue(product->eq_chiller_to79); |
|
48 ui->chiller_volumeEdit->setValue(product->eq_chiller_volume); |
|
49 ui->chiller_lpmEdit->setValue(product->eq_chiller_lpm); |
|
50 ui->chiller_lossEdit->setValue(product->eq_chiller_loss); |
|
51 |
|
52 /* Transfer */ |
48 ui->topup_waterEdit->setValue(product->eq_top_up_water); |
53 ui->topup_waterEdit->setValue(product->eq_top_up_water); |
49 } |
54 } |
50 |
55 |
51 |
56 |
52 void EditProduct::initEquipment() |
57 void EditProduct::initEquipment() |
93 product->eq_tun_height = query.value("tun_height").toDouble(); |
98 product->eq_tun_height = query.value("tun_height").toDouble(); |
94 product->eq_top_up_water = query.value("top_up_water").toDouble(); |
99 product->eq_top_up_water = query.value("top_up_water").toDouble(); |
95 product->eq_trub_chiller_loss = query.value("trub_chiller_loss").toDouble(); |
100 product->eq_trub_chiller_loss = query.value("trub_chiller_loss").toDouble(); |
96 product->eq_evap_rate = query.value("evap_rate").toDouble(); |
101 product->eq_evap_rate = query.value("evap_rate").toDouble(); |
97 product->eq_boil_time = query.value("boil_time").toDouble(); |
102 product->eq_boil_time = query.value("boil_time").toDouble(); |
98 product->eq_calc_boil_volume = query.value("calc_boil_volume").toInt() ? true:false; |
103 //product->eq_calc_boil_volume = query.value("calc_boil_volume").toInt() ? true:false; |
99 product->eq_top_up_kettle = query.value("top_up_kettle").toDouble(); |
104 product->eq_top_up_kettle = query.value("top_up_kettle").toDouble(); |
100 product->eq_hop_utilization = query.value("hop_utilization").toDouble(); |
105 //product->eq_hop_utilization = query.value("hop_utilization").toDouble(); |
101 product->eq_lauter_volume = query.value("lauter_volume").toDouble(); |
106 //product->eq_lauter_volume = query.value("lauter_volume").toDouble(); |
102 product->eq_lauter_height = query.value("lauter_height").toDouble(); |
107 //product->eq_lauter_height = query.value("lauter_height").toDouble(); |
103 product->eq_lauter_deadspace = query.value("lauter_deadspace").toDouble(); |
108 product->eq_lauter_deadspace = query.value("lauter_deadspace").toDouble(); |
104 product->eq_kettle_volume = query.value("kettle_volume").toDouble(); |
109 product->eq_kettle_volume = query.value("kettle_volume").toDouble(); |
105 product->eq_kettle_height = query.value("kettle_height").toDouble(); |
110 product->eq_kettle_height = query.value("kettle_height").toDouble(); |
106 product->eq_mash_volume = query.value("mash_volume").toDouble(); |
111 product->eq_mash_volume = query.value("mash_volume").toDouble(); |
107 product->eq_mash_max = query.value("mash_max").toDouble(); |
112 product->eq_mash_max = query.value("mash_max").toDouble(); |
108 product->eq_efficiency = query.value("efficiency").toDouble(); |
113 product->eq_efficiency = query.value("efficiency").toDouble(); |
|
114 product->eq_chiller_type = query.value("chiller_type").toInt(); |
|
115 product->eq_chiller_to79 = query.value("chiller_to79").toDouble(); |
|
116 product->eq_chiller_volume = query.value("chiller_volume").toDouble(); |
|
117 product->eq_chiller_lpm = query.value("chiller_lpm").toDouble(); |
|
118 product->eq_chiller_loss = query.value("chiller_loss").toDouble(); |
109 showEquipment(); |
119 showEquipment(); |
110 |
120 |
111 /* |
121 /* |
112 * Now change some important settings and recalculate the recipe parts. |
122 * Now change some important settings and recalculate the recipe parts. |
113 */ |
123 */ |