src/DetailFermenter.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 333
499c95108bbd
child 391
42936c86cbac
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 _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();

public slots:
    void refreshFermenter(QString);

private:
    Ui::DetailFermenter *ui;
    QString _node, _alias, _uuid, _profile, _beercode, _beername;
    int recno;
    double lo_set = 0, hi_set = 0;
    bool heat_state = false;
    bool cool_state = false;
    bool fan_state = false;

    void send_switches();
};

#endif

mercurial