src/EditYeast.h

Wed, 18 Jan 2023 16:17:31 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 18 Jan 2023 16:17:31 +0100
changeset 465
8fc909360552
parent 385
09af9f46518f
permissions
-rw-r--r--

In EditProduct added tab number 13. When entered, a signal is generated to init this tab so that we can defer loading. Added a AddImage button, we can select an image, give it a type and comment and store it is a separate table. The global settings file now has storage for paths (images, download and beerxml).

#ifndef _EDITYEAST_H
#define _EDITYEAST_H

#include <QDialog>


namespace Ui {
class EditYeast;
}

class EditYeast : public QDialog
{
    Q_OBJECT

signals:
    void entry_changed();

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

private slots:
    void on_saveButton_clicked();
    void on_cloneButton_clicked();
    void on_quitButton_clicked();
    void on_deleteButton_clicked();
    void is_changed();
    void temp_lo_changed();
    void temp_hi_changed();
    void grhllo_changed();
    void sglo_changed();
    void grhlhi_changed();
    void sghi_changed();
    void prod_date_clear();
    void prod_date_today();
    void tht_date_clear();
    void tht_date_today();

private:
    Ui::EditYeast *ui;
    int recno;
    bool textIsChanged = false;

    void WindowTitle();
    void SetForm(int form);
};

#endif

mercurial