Thu, 18 Aug 2022 16:11:20 +0200
Edit Product, split CO2 package pressure in bottles and kegs. BU:RE code cleanup. calcPack() sets the CO2 values on the first tab. Show final EBC on tab 1 if the stage is after brew. Show final ABV and energy on tab 1 if fermentation is done. Removed wrong bottle priming calculation from calcFermentables() because calcPack() does this.
#ifndef _DETAILFERMENTER_H #define _DETAILFERMENTER_H #include <QDialog> #include <QDoubleSpinBox> #include <QCheckBox> #include <QComboBox> #include <QRadioButton> #include <QLineEdit> #include <QDialogButtonBox> namespace Ui { class DetailFermenter; } class DetailFermenter : public QDialog { Q_OBJECT signals: void entry_changed(); public: explicit DetailFermenter(int id, QWidget *parent = 0); ~DetailFermenter(); private slots: void on_quitButton_clicked(); void refreshTable(void); void lo_changed(double val); void hi_changed(double val); void heat_switched(); void cool_switched(); void fan_switched(); void button1_pressed(); void button2_pressed(); void mode_changed(int val); void stage_changed(int val); void code_changed(int val); void profile_changed(int val); void on_ChartButton_clicked(); void on_WebcamButton_clicked(); public slots: void refreshFermenter(QString); private: Ui::DetailFermenter *ui; QString _node, _alias, _uuid, _profile, _beercode, _beername, _webcam_url; int recno, _webcam_light; double lo_set = 0, hi_set = 0; bool heat_state = false; bool cool_state = false; bool fan_state = false; void send_switches(); }; #endif