Tue, 01 Mar 2022 13:19:25 +0100
Finisch miscs dutch translation.
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" |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
9 | #include "InventoryWaters.h" |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
10 | #include "InventoryEquipments.h" |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
11 | #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
|
12 | |
3 | 13 | #include <QMainWindow> |
14 | #include <QStandardItemModel> | |
15 | #include <QMenu> | |
16 | #include <QToolButton> | |
17 | ||
18 | namespace Ui { | |
19 | class MainWindow; | |
20 | } | |
21 | ||
22 | class MainWindow : public QMainWindow | |
23 | { | |
4 | 24 | Q_OBJECT |
3 | 25 | |
26 | public: | |
4 | 27 | explicit MainWindow(QWidget *parent = 0); |
28 | ~MainWindow(); | |
3 | 29 | |
30 | private slots: | |
4 | 31 | 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
|
32 | void on_actionSuppliers_triggered(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
33 | void on_actionFermentables_triggered(); |
24 | 34 | void on_actionHops_triggered(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
35 | void on_actionYeasts_triggered(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
36 | void on_actionMiscs_triggered(); |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
37 | void on_actionWaters_triggered(); |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
38 | void on_actionEquipments_triggered(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
39 | void on_actionSetup_triggered(); |
4 | 40 | void on_actionAbout_triggered(); |
3 | 41 | |
42 | 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
|
43 | void fromInventorySuppliers(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
44 | void fromInventoryFermentables(); |
24 | 45 | void fromInventoryHops(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
46 | void fromInventoryYeasts(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
47 | void fromInventoryMiscs(); |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
48 | void fromInventoryWaters(); |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
49 | void fromInventoryEquipments(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
50 | void fromSetup(); |
3 | 51 | |
52 | private: | |
53 | 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
|
54 | |
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
|
55 | // 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
|
56 | InventorySuppliers *InventorySuppliersWindow; |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
57 | InventoryFermentables *InventoryFermentablesWindow; |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
58 | InventoryHops *InventoryHopsWindow; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
59 | InventoryYeasts *InventoryYeastsWindow; |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
60 | InventoryMiscs *InventoryMiscsWindow; |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
61 | InventoryWaters *InventoryWatersWindow; |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
62 | InventoryEquipments *InventoryEquipmentsWindow; |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
63 | Setup *SetupWindow; |
3 | 64 | }; |
65 | ||
66 | #endif |