16 * You should have received a copy of the GNU General Public License |
16 * You should have received a copy of the GNU General Public License |
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 */ |
18 */ |
19 |
19 |
20 |
20 |
|
21 void EditRecipe::refreshWaters() |
|
22 { |
|
23 // recipe->w1_name |
|
24 ui->w1_volEdit->setValue(recipe->w1_amount); |
|
25 ui->w1_caEdit->setValue(recipe->w1_calcium); |
|
26 ui->w1_mgEdit->setValue(recipe->w1_magnesium); |
|
27 ui->w1_hco3Edit->setValue(recipe->w1_total_alkalinity * 1.22); |
|
28 ui->w1_caco3Edit->setValue(recipe->w1_total_alkalinity); |
|
29 ui->w1_naEdit->setValue(recipe->w1_sodium); |
|
30 ui->w1_clEdit->setValue(recipe->w1_chloride); |
|
31 ui->w1_so4Edit->setValue(recipe->w1_sulfate); |
|
32 ui->w1_phEdit->setValue(recipe->w1_ph); |
21 |
33 |
|
34 // recipe->w2_name |
|
35 ui->w2_volEdit->setValue(recipe->w2_amount); |
|
36 ui->w2_caEdit->setValue(recipe->w2_calcium); |
|
37 ui->w2_mgEdit->setValue(recipe->w2_magnesium); |
|
38 ui->w2_hco3Edit->setValue(recipe->w2_total_alkalinity * 1.22); |
|
39 ui->w2_caco3Edit->setValue(recipe->w2_total_alkalinity); |
|
40 ui->w2_naEdit->setValue(recipe->w2_sodium); |
|
41 ui->w2_clEdit->setValue(recipe->w2_chloride); |
|
42 ui->w2_so4Edit->setValue(recipe->w2_sulfate); |
|
43 ui->w2_phEdit->setValue(recipe->w2_ph); |
|
44 |
|
45 ui->wg_volEdit->setValue(recipe->wg_amount); |
|
46 ui->wg_caEdit->setValue(recipe->wg_calcium); |
|
47 ui->wg_mgEdit->setValue(recipe->wg_magnesium); |
|
48 ui->wg_hco3Edit->setValue(recipe->wg_total_alkalinity * 1.22); |
|
49 ui->wg_caco3Edit->setValue(recipe->wg_total_alkalinity); |
|
50 ui->wg_naEdit->setValue(recipe->wg_sodium); |
|
51 ui->wg_clEdit->setValue(recipe->wg_chloride); |
|
52 ui->wg_so4Edit->setValue(recipe->wg_sulfate); |
|
53 ui->wg_phEdit->setValue(recipe->wg_ph); |
|
54 |
|
55 ui->wb_caEdit->setValue(recipe->wb_calcium); |
|
56 ui->wb_mgEdit->setValue(recipe->wb_magnesium); |
|
57 ui->wb_hco3Edit->setValue(recipe->wb_total_alkalinity * 1.22); |
|
58 ui->wb_caco3Edit->setValue(recipe->wb_total_alkalinity); |
|
59 ui->wb_naEdit->setValue(recipe->wb_sodium); |
|
60 ui->wb_clEdit->setValue(recipe->wb_chloride); |
|
61 ui->wb_so4Edit->setValue(recipe->wb_sulfate); |
|
62 ui->wb_phEdit->setValue(recipe->wb_ph); |
|
63 |
|
64 ui->sp_volEdit->setValue(recipe->sparge_volume); |
|
65 ui->sp_tempEdit->setValue(recipe->sparge_temp); |
|
66 ui->sp_phEdit->setValue(recipe->sparge_ph); |
|
67 // sparge_source |
|
68 // sparge_acid_type |
|
69 ui->sp_acidpercEdit->setValue(recipe->sparge_acid_perc); |
|
70 ui->sp_acidvolEdit->setValue(recipe->sparge_acid_amount); |
|
71 |
|
72 // calc_acid |
|
73 ui->mw_phEdit->setValue(recipe->mash_ph); |
|
74 // mash_name |
|
75 //ui->mw_acidpercEdit->setValue(recipe-> |
|
76 |
|
77 } |
|
78 |