1 #ifndef _INVENTORYFERMENTABLES_H |
1 #ifndef _INVENTORYFERMENTABLES_H |
2 #define _INVENTORYFERMENTABLES_H |
2 #define _INVENTORYFERMENTABLES_H |
3 |
3 |
4 #include <QDialog> |
4 #include <QDialog> |
|
5 #include <QtWidgets/QGridLayout> |
|
6 #include <QtWidgets/QGroupBox> |
|
7 #include <QtWidgets/QHBoxLayout> |
|
8 #include <QtWidgets/QHeaderView> |
|
9 #include <QtWidgets/QPushButton> |
|
10 #include <QtWidgets/QTableWidget> |
5 |
11 |
6 namespace Ui { |
12 namespace Ui { |
7 class InventoryFermentables; |
13 class InventoryFermentables; |
8 } |
14 } |
9 |
15 |
13 |
19 |
14 public: |
20 public: |
15 explicit InventoryFermentables(QWidget *parent = nullptr); |
21 explicit InventoryFermentables(QWidget *parent = nullptr); |
16 ~InventoryFermentables(); |
22 ~InventoryFermentables(); |
17 |
23 |
18 signals: |
|
19 void firstWindow(); |
|
20 |
|
21 private slots: |
24 private slots: |
22 void on_quitButton_clicked(); |
|
23 void on_insertButton_clicked(); |
25 void on_insertButton_clicked(); |
24 void on_editButton_clicked(); |
26 void on_editButton_clicked(); |
25 void on_exportButton_clicked(); |
27 void on_exportButton_clicked(); |
26 void refreshTable(void); |
28 void refreshTable(void); |
27 |
29 |
28 private: |
30 private: |
29 Ui::InventoryFermentables *ui; |
31 QGridLayout *gridLayout; |
|
32 QTableWidget *tableFermentables; |
|
33 QGroupBox *groupBox; |
|
34 QHBoxLayout *horizontalLayout; |
|
35 QPushButton *quitButton; |
|
36 QPushButton *exportButton; |
|
37 QPushButton *importButton; |
|
38 QPushButton *insertButton; |
|
39 |
30 void edit(int recno); |
40 void edit(int recno); |
31 }; |
41 }; |
32 |
42 |
33 #endif |
43 #endif |