src/EditRecipe.h

changeset 109
1ce50e72a6b1
parent 108
ecfcbee4a9b2
child 110
224be4d9f8eb
equal deleted inserted replaced
108:ecfcbee4a9b2 109:1ce50e72a6b1
116 double step_infuse_amount; // May not be present 116 double step_infuse_amount; // May not be present
117 double step_infuse_temp; // May not be present 117 double step_infuse_temp; // May not be present
118 double step_temp; 118 double step_temp;
119 double step_time; 119 double step_time;
120 double ramp_time; 120 double ramp_time;
121 double end_time; 121 double end_temp;
122 double step_wg_ratio; // May not be present 122 double step_wg_ratio; // May not be present
123 }; 123 };
124 124
125 125
126 /* 126 /*
172 int sparge_source; 172 int sparge_source;
173 int sparge_acid_type; 173 int sparge_acid_type;
174 double sparge_acid_perc; 174 double sparge_acid_perc;
175 double sparge_acid_amount; 175 double sparge_acid_amount;
176 double mash_ph; 176 double mash_ph;
177 double mash_name; 177 QString mash_name;
178 bool calc_acid; 178 bool calc_acid;
179 179
180 QString w1_name; ///< Water source 1 180 QString w1_name; ///< Water source 1
181 double w1_amount; 181 double w1_amount;
182 double w1_calcium; 182 double w1_calcium;
219 QList<Fermentables> fermentables; 219 QList<Fermentables> fermentables;
220 QList<Hops> hops; 220 QList<Hops> hops;
221 QList<Miscs> miscs; 221 QList<Miscs> miscs;
222 QList<Yeasts> yeasts; 222 QList<Yeasts> yeasts;
223 QList<Mashs> mashs; 223 QList<Mashs> mashs;
224
225 /*
226 * These are not in the MySL database, but are global variables
227 * that belong with the loaded recipe data and are present to
228 * make things easier.
229 */
230 int fermentables_records; ///< Total records
231 int fermentables_current; ///< Current record, -1 is invalid.
232 bool fermentables_use100; ///< Use percentages instead of amount
233 int hops_records;
234 int hops_current;
235 int misc_records;
236 int misc_current;
237 int yeasts_records;
238 int yeasts_current;
239 int mashs_records;
240 int mashs_current;
224 }; 241 };
225 242
226 243
227 namespace Ui { 244 namespace Ui {
228 class EditRecipe; 245 class EditRecipe;
278 bool use_to100 = false; 295 bool use_to100 = false;
279 Recipe *recipe; 296 Recipe *recipe;
280 /* 297 /*
281 * Variables for popup ingredients editing. 298 * Variables for popup ingredients editing.
282 */ 299 */
283 QJsonDocument fermentables, hops, miscs, yeasts, mashs; 300 QJsonDocument fermentables, hops, miscs, yeasts;
284 QJsonObject work, backup; 301 QJsonObject work, backup;
285 QComboBox *selectEdit, *addedEdit; 302 QComboBox *selectEdit, *addedEdit;
286 QLineEdit *nameEdit, *supplierEdit; 303 QLineEdit *nameEdit, *supplierEdit;
287 QDoubleSpinBox *amountEdit, *pctEdit, *maxEdit; 304 QDoubleSpinBox *amountEdit, *pctEdit, *maxEdit;
288 QCheckBox *to100Edit, *instockEdit; 305 QCheckBox *to100Edit, *instockEdit;

mercurial