src/InventoryYeastPacks.h

Mon, 30 Jan 2023 17:05:13 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 30 Jan 2023 17:05:13 +0100
changeset 480
94b3def5d778
permissions
-rw-r--r--

Added yeastpack editor. Expanded the database upgrade. On startup, recount the yeastpack used fields.

#ifndef _INVENTORYYEASTPACKS_H
#define _INVENTORYYEASTPACKS_H

#include <QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableWidget>

namespace Ui {
class InventoryYeastPacks;
}

class InventoryYeastPacks : public QDialog
{
    Q_OBJECT

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

signals:
    void setStatus(QString);

private slots:
    void on_insertButton_clicked();
    void on_editButton_clicked();
    void on_exportButton_clicked();
    void refreshTable(void);

private:
    QGridLayout *gridLayout;
    QTableWidget *tableYeastPacks;
    QGroupBox *groupBox;
    QHBoxLayout *horizontalLayout;
    QPushButton *quitButton;
    QPushButton *exportButton;
    QPushButton *insertButton;

    void edit(int recno);
};

#endif

mercurial