src/ProdOnTree.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 232
6d3ba9c44f95
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 _PRODONTREE_H
#define _PRODONTREE_H

#include <QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QListView>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QSpinBox>

namespace Ui {
class ProdOnTree;
}

class ProdOnTree : public QDialog
{
    Q_OBJECT

public:
    explicit ProdOnTree(QWidget *parent = nullptr);
    ~ProdOnTree();

signals:
    void setStatus(QString);

private slots:
    void on_openButton_clicked();
    void on_item_clicked(QTreeWidgetItem *, int);
    void on_item_doubleclicked(QTreeWidgetItem *, int);
    void refreshTable(void);

private:
    QGridLayout *gridLayout;
    QTreeWidget *treeWidget;
    QGroupBox *groupBox, *recipeBox;
    QHBoxLayout *horizontalLayout;
    QPushButton *quitButton, *openButton;
    QLabel *volumeLabel, *efficiencyLabel, *boilvolumeLabel;
    QLabel *boiltimeLabel, *ogLabel, *fgLabel;
    QLabel *abvLabel, *co2Label, *colorLabel;
    QLabel *colormethodLabel, *ibuLabel, *ibumethodLabel;
    QLabel *remarksLabel;
    QDoubleSpinBox *volumeEdit, *boilvolumeEdit;
    QDoubleSpinBox *efficiencyEdit, *ogEdit, *fgEdit;
    QDoubleSpinBox *abvEdit, *co2Edit;
    QSpinBox *boiltimeEdit, *colorEdit, *ibuEdit;
    QPlainTextEdit *remarksEdit;
    QLineEdit *colormethodEdit, *ibumethodEdit;
    int	record;

    void edit(int recno);
    void showRecipe();
};

#endif

mercurial