Sat, 08 Jun 2024 15:54:30 +0200
Version 0.4.6a1. Added HLT equipment volume and deadspace settings. In EditProduct the target water selection is now sticky. Changed the water treatment tab. Added a row wich displays the salt adjustments. This can be selected between actual and target values. The treated water show can select between mash or sparge water. The total line will become the final water in the boil kettle. Database update function is expanded with the new settings. Added a popup message warning that the database is upgraded and user action is required for the equipment profiles.
#ifndef _CALIBRATEISPINDEL_H #define _CALIBRATEISPINDEL_H #include "MainWindow.h" struct Calibrate { double sg; double plato; double angle; }; namespace Ui { class CalibrateiSpindel; } class CalibrateiSpindel : public QDialog { Q_OBJECT signals: void entry_changed(); public: explicit CalibrateiSpindel(int id, QWidget *parent = 0); ~CalibrateiSpindel(); private slots: void on_quitButton_clicked(); void refreshTable(void); void on_addButton_clicked(); void on_deleteRow_clicked(); void cell_Changed(int nRow, int nCol); private: Ui::CalibrateiSpindel *ui; QString _node, _alias, _data_old, _data_new; QChartView *chartView; QChart *chart; QLineSeries *new_plot, *old_plot; int recno, oldtotal, newtotal; QJsonDocument data; bool ignoreChanges = false; bool textIsChanged = false; bool dataHasErrors = false; double Old[4], New[4]; QList<Calibrate> oCal; QList<Calibrate> nCal; void WindowTitle(); void SaveData(); }; #endif