src/DetailFermenter.h

Sun, 12 Feb 2023 13:58:36 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 12 Feb 2023 13:58:36 +0100
changeset 494
49ac23d25f61
parent 489
4db768aea3df
permissions
-rw-r--r--

In monitor iSpindel: in the chart calculate the ranges, do't let the toolkit do that. Save the path for chart image download in the user settings. In the tooltip for the battery voltage line, also show the remaining battery capacity. In the monitor window show the battery capacity digit instead of allways 0. Updated the translations.

#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