src/EditProfileWater.h

Fri, 29 Jul 2022 13:12:26 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 29 Jul 2022 13:12:26 +0200
changeset 373
b02aca4e926c
parent 353
324a7268796b
child 385
09af9f46518f
permissions
-rw-r--r--

First load of changes for hops. In EditHop load the dropdown buttons from the global table. Use named query fields. Added database utilisation and bu_factor fields for hop extracts. Added edit fields for these new fields. Added post boil SG, utilisation and bu_factor parameters to the toIBU function. Added hops form parameter to the hopFlavourContribution and hopAromaContribution display bars. In the hops inventory list dispay volumes instead of weight for hop extracts. Modified the TinsethIBU function to use utilisation and bu_factor parameters. Add calculations for co2 and iso hop extracts, this is work in progress. The toIBU function makes use of the preSG and postSG values to use the correct SG to caall the TinsethIBU function. This results in a bit lower IBU values mostly affecting the late additions. Added use hop at bottling for iso hop extracts like Tetra hops using the formula from BarthHaas.

#ifndef _EDITPROFILEWATER_H
#define _EDITPROFILEWATER_H

#include <QDialog>


namespace Ui {
class EditProfileWater;
}

class EditProfileWater : public QDialog
{
    Q_OBJECT

signals:
    void entry_changed();

public:
    explicit EditProfileWater(int id, QWidget *parent = 0);
    ~EditProfileWater();

private slots:
    void on_saveButton_clicked();
    void on_quitButton_clicked();
    void on_deleteButton_clicked();
    void is_changed();
    void water_changed();
    void calcium_changed(double val);
    void total_alkalinity_changed(double val);
    void sulfate_changed(double val);
    void chloride_changed(double val);
    void sodium_changed(double val);
    void magnesium_changed(double val);
    void ph_changed(double val);

private:
    Ui::EditProfileWater *ui;
    int recno;
    bool textIsChanged = false;
    double calcium, bicarbonate, sulfate, chloride, sodium, magnesium, ph, total_alkalinity;

    void WindowTitle();
    void WaterSet();
};

#endif

mercurial