Sun, 20 Mar 2022 16:49:50 +0100
Inventory Yeasts now on the mainscreen.
24 | 1 | #ifndef _INVENTORYHOPS_H |
2 | #define _INVENTORYHOPS_H | |
3 | ||
4 | #include <QDialog> | |
69
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
5 | #include <QtWidgets/QGridLayout> |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
6 | #include <QtWidgets/QGroupBox> |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
7 | #include <QtWidgets/QHBoxLayout> |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
8 | #include <QtWidgets/QHeaderView> |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
9 | #include <QtWidgets/QPushButton> |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
10 | #include <QtWidgets/QTableWidget> |
24 | 11 | |
12 | namespace Ui { | |
13 | class InventoryHops; | |
14 | } | |
15 | ||
16 | class InventoryHops : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit InventoryHops(QWidget *parent = nullptr); | |
22 | ~InventoryHops(); | |
23 | ||
24 | private slots: | |
25 | void on_insertButton_clicked(); | |
26 | void on_editButton_clicked(); | |
44
5a9a159c2d34
Added yeasts and hops XML exports.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
27 | void on_exportButton_clicked(); |
24 | 28 | void refreshTable(void); |
29 | ||
30 | private: | |
69
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
31 | QGridLayout *gridLayout; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
32 | QTableWidget *tableHops; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
33 | QGroupBox *groupBox; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
34 | QHBoxLayout *horizontalLayout; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
35 | QPushButton *quitButton; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
36 | QPushButton *exportButton; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
37 | QPushButton *importButton; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
38 | QPushButton *insertButton; |
228cb2a01acf
Inventory Hops now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
39 | |
24 | 40 | void edit(int recno); |
41 | }; | |
42 | ||
43 | #endif |