src/EditProduct.h

changeset 461
add4dbef0c81
parent 457
5028c1c4c526
child 465
8fc909360552
equal deleted inserted replaced
460:adaf43213d10 461:add4dbef0c81
179 void brew_spargeph_changed(double val); 179 void brew_spargeph_changed(double val);
180 void brew_preboilph_changed(double val); 180 void brew_preboilph_changed(double val);
181 void brew_preboilsg_changed(double val); 181 void brew_preboilsg_changed(double val);
182 void brew_preboilvol_changed(double val); 182 void brew_preboilvol_changed(double val);
183 void brew_preboil_cm_changed(double val); 183 void brew_preboil_cm_changed(double val);
184 void brew_preboil_brix_button();
184 void brew_preboil_button(); 185 void brew_preboil_button();
185 void brew_aboilph_changed(double val); 186 void brew_aboilph_changed(double val);
186 void brew_aboilsg_changed(double val); 187 void brew_aboilsg_changed(double val);
187 void brew_aboilvol_changed(double val); 188 void brew_aboilvol_changed(double val);
188 void brew_aboil_cm_changed(double val); 189 void brew_aboil_cm_changed(double val);
190 void brew_aboil_brix_button();
189 void brew_aboil_button(); 191 void brew_aboil_button();
190 void brew_cooling_to_changed(double val); 192 void brew_cooling_to_changed(double val);
191 void brew_cooling_time_changed(double val); 193 void brew_cooling_time_changed(double val);
192 void brew_whirlpool9_changed(double val); 194 void brew_whirlpool9_changed(double val);
193 void brew_whirlpool7_changed(double val); 195 void brew_whirlpool7_changed(double val);
196 void brew_aerwith_changed(int val); 198 void brew_aerwith_changed(int val);
197 void brew_aerspeed_changed(double val); 199 void brew_aerspeed_changed(double val);
198 void brew_aertime_changed(double val); 200 void brew_aertime_changed(double val);
199 void brew_trubloss_changed(double val); 201 void brew_trubloss_changed(double val);
200 void brew_topupwater_changed(double val); 202 void brew_topupwater_changed(double val);
203 void brew_brix_changed(double val);
201 void brew_log_button(); 204 void brew_log_button();
202 void savePNG(); 205 void savePNG();
203 void brix_changed(double val); 206 void brix_changed(double val);
204 void primary_start_changed(double val); 207 void primary_start_changed(double val);
205 void primary_peak_changed(double val); 208 void primary_peak_changed(double val);
267 QString bar_red = "QProgressBar::chunk {background: #FF0000;}"; 270 QString bar_red = "QProgressBar::chunk {background: #FF0000;}";
268 QString bar_green = "QProgressBar::chunk {background: #008C00;}"; 271 QString bar_green = "QProgressBar::chunk {background: #008C00;}";
269 QString bar_20 = "QProgressBar::chunk {background: #004D00;}"; 272 QString bar_20 = "QProgressBar::chunk {background: #004D00;}";
270 int recno; 273 int recno;
271 bool textIsChanged = false; 274 bool textIsChanged = false;
272 double ret_fg; 275 double ret_fg, sg_return;
273 /* 276 /*
274 * Variables for popup ingredients editing. 277 * Variables for popup ingredients editing.
275 */ 278 */
276 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit, *splitatEdit; 279 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit, *splitatEdit;
277 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit, *ynameEdit, *ylaboratoryEdit, *yproduct_idEdit, *stepnameEdit; 280 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit, *ynameEdit, *ylaboratoryEdit, *yproduct_idEdit, *stepnameEdit;
330 void calcMash(); 333 void calcMash();
331 void adjustWaters(double factor); 334 void adjustWaters(double factor);
332 void updateBrewday(); 335 void updateBrewday();
333 void calcEfficiencyBeforeBoil(); 336 void calcEfficiencyBeforeBoil();
334 void calcEfficiencyAfterBoil(); 337 void calcEfficiencyAfterBoil();
335 void brew_volume_calc(double volume, double kettle_volume, double kettle_height, double est_volume, bool aboil); 338
339 /**
340 * @brief Popup to enter a brix value to get SG before fermentation.
341 * @param sg The SG is known, else 0.
342 * @param sg_default Use this if sg is 0.
343 * @return The sg calculated from the brix value.
344 */
345 double brew_brix_edit(double sg, double sg_default);
346
347 /**
348 * @brief Calculate height in cm and ask for measured cm from the kettle top.
349 * @param volume The known volume, or zero if initial value is to be used.
350 * @param kettle_volume The volume of the kettle.
351 * @param kettle_height The internal height of the kettle.
352 * @param est_volume The default estimated volume.
353 * @param aboil True if after boil volume is asked, else preboil. Selects destination of result.
354 * @param chiller True if an immersion chiller is in the kettle, give a extra remark.
355 */
356 void brew_volume_calc(double volume, double kettle_volume, double kettle_height, double est_volume, bool aboil, bool chiller);
336 double get_fg(double gravity); 357 double get_fg(double gravity);
337 double GetPressure(double CO2, double T); 358 double GetPressure(double CO2, double T);
338 double CarbCO2ToPressure(double CO2, double T); 359 double CarbCO2ToPressure(double CO2, double T);
339 void calcPack(); 360 void calcPack();
340 void exportBeerXML(); 361 void exportBeerXML();

mercurial