src/DetailFermenter.h

Sat, 08 Jun 2024 15:54:30 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 08 Jun 2024 15:54:30 +0200
changeset 527
84091b9cb800
parent 489
4db768aea3df
permissions
-rw-r--r--

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 _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_logButton_clicked();
    void on_camButton_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

mercurial