Fri, 25 Feb 2022 10:51:36 +0100
Added the inventory miscs table.
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" |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
7 | #include "InventoryYeasts.h" |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
8 | #include "InventoryMiscs.h" |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
9 | #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
|
10 | |
3 | 11 | #include <QMainWindow> |
12 | #include <QStandardItemModel> | |
13 | #include <QMenu> | |
14 | #include <QToolButton> | |
15 | ||
16 | namespace Ui { | |
17 | class MainWindow; | |
18 | } | |
19 | ||
20 | class MainWindow : public QMainWindow | |
21 | { | |
4 | 22 | Q_OBJECT |
3 | 23 | |
24 | public: | |
4 | 25 | explicit MainWindow(QWidget *parent = 0); |
26 | ~MainWindow(); | |
3 | 27 | |
28 | private slots: | |
4 | 29 | 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
|
30 | void on_actionSuppliers_triggered(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
31 | void on_actionFermentables_triggered(); |
24 | 32 | void on_actionHops_triggered(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
33 | void on_actionYeasts_triggered(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
34 | void on_actionMiscs_triggered(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
35 | void on_actionSetup_triggered(); |
4 | 36 | void on_actionAbout_triggered(); |
3 | 37 | |
38 | 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
|
39 | void fromInventorySuppliers(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
40 | void fromInventoryFermentables(); |
24 | 41 | void fromInventoryHops(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
42 | void fromInventoryYeasts(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
43 | void fromInventoryMiscs(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
44 | void fromSetup(); |
3 | 45 | |
46 | private: | |
47 | 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
|
48 | |
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
|
49 | // 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
|
50 | InventorySuppliers *InventorySuppliersWindow; |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
51 | InventoryFermentables *InventoryFermentablesWindow; |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
52 | InventoryHops *InventoryHopsWindow; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
53 | InventoryYeasts *InventoryYeastsWindow; |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
54 | InventoryMiscs *InventoryMiscsWindow; |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
55 | Setup *SetupWindow; |
3 | 56 | }; |
57 | ||
58 | #endif |