Sun, 20 Feb 2022 20:22:49 +0100
Added hops editor.
3 | 1 | #ifndef _MAINWINDOW_H |
2 | #define _MAINWINDOW_H | |
3 | ||
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
4 | #include "InventorySuppliers.h" |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
5 | #include "InventoryFermentables.h" |
24 | 6 | #include "InventoryHops.h" |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
7 | #include "Setup.h" |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
8 | |
3 | 9 | #include <QMainWindow> |
10 | #include <QStandardItemModel> | |
11 | #include <QMenu> | |
12 | #include <QToolButton> | |
13 | ||
14 | namespace Ui { | |
15 | class MainWindow; | |
16 | } | |
17 | ||
18 | class MainWindow : public QMainWindow | |
19 | { | |
4 | 20 | Q_OBJECT |
3 | 21 | |
22 | public: | |
4 | 23 | explicit MainWindow(QWidget *parent = 0); |
24 | ~MainWindow(); | |
3 | 25 | |
26 | private slots: | |
4 | 27 | void on_actionExit_triggered(); |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
28 | void on_actionSuppliers_triggered(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
29 | void on_actionFermentables_triggered(); |
24 | 30 | void on_actionHops_triggered(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
31 | void on_actionSetup_triggered(); |
4 | 32 | void on_actionAbout_triggered(); |
3 | 33 | |
34 | public slots: | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
35 | void fromInventorySuppliers(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
36 | void fromInventoryFermentables(); |
24 | 37 | void fromInventoryHops(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
38 | void fromSetup(); |
3 | 39 | |
40 | private: | |
41 | Ui::MainWindow *ui; | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
42 | |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
43 | // Keep pointers to new windows. |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
44 | InventorySuppliers *InventorySuppliersWindow; |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
45 | InventoryFermentables *InventoryFermentablesWindow; |
24 | 46 | InventoryHops * InventoryHopsWindow; |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
47 | Setup *SetupWindow; |
3 | 48 | }; |
49 | ||
50 | #endif |