Sat, 26 Mar 2022 21:53:00 +0100
Removed unneeded functions.
3 | 1 | #ifndef _MAINWINDOW_H |
2 | #define _MAINWINDOW_H | |
3 | ||
81
562ed7d1b74d
Added start of the Recipes Tree to select a recipe
Michiel Broek <mbroek@mbse.eu>
parents:
78
diff
changeset
|
4 | #include "RecipesTree.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
|
5 | #include "InventorySuppliers.h" |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
6 | #include "InventoryFermentables.h" |
24 | 7 | #include "InventoryHops.h" |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
8 | #include "InventoryYeasts.h" |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
9 | #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
|
10 | #include "InventoryWaters.h" |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
11 | #include "InventoryEquipments.h" |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
12 | #include "ProfileWaters.h" |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
13 | #include "ProfileMashs.h" |
56
eb6c564192f4
Added styles tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
52
diff
changeset
|
14 | #include "ProfileStyles.h" |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
15 | #include "ProfileFerments.h" |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
16 | #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
|
17 | |
3 | 18 | #include <QMainWindow> |
19 | #include <QStandardItemModel> | |
20 | #include <QMenu> | |
21 | #include <QToolButton> | |
22 | ||
23 | namespace Ui { | |
24 | class MainWindow; | |
25 | } | |
26 | ||
27 | class MainWindow : public QMainWindow | |
28 | { | |
4 | 29 | Q_OBJECT |
3 | 30 | |
31 | public: | |
4 | 32 | explicit MainWindow(QWidget *parent = 0); |
33 | ~MainWindow(); | |
3 | 34 | |
68
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
35 | // Keep pointers to new windows. |
81
562ed7d1b74d
Added start of the Recipes Tree to select a recipe
Michiel Broek <mbroek@mbse.eu>
parents:
78
diff
changeset
|
36 | RecipesTree *RecipesTreeWindow; |
65
2ef981980daa
Finally found out how to make these databases work on a single main window. And it's dynamic too.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
37 | InventorySuppliers *InventorySuppliersWindow; |
68
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
38 | InventoryFermentables *InventoryFermentablesWindow; |
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
39 | InventoryHops *InventoryHopsWindow; |
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
40 | InventoryYeasts *InventoryYeastsWindow; |
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
41 | InventoryMiscs *InventoryMiscsWindow; |
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
42 | InventoryWaters *InventoryWatersWindow; |
abac28effb21
Inventory Fermentables now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
65
diff
changeset
|
43 | InventoryEquipments *InventoryEquipmentsWindow; |
74
4ac38457a709
Profile Waters now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
44 | ProfileWaters *ProfileWatersWindow; |
4ac38457a709
Profile Waters now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
45 | ProfileMashs *ProfileMashsWindow; |
4ac38457a709
Profile Waters now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
46 | ProfileStyles *ProfileStylesWindow; |
4ac38457a709
Profile Waters now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
47 | ProfileFerments *ProfileFermentsWindow; |
4ac38457a709
Profile Waters now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
48 | Setup *SetupWindow; |
65
2ef981980daa
Finally found out how to make these databases work on a single main window. And it's dynamic too.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
49 | |
3 | 50 | private slots: |
4 | 51 | void on_actionExit_triggered(); |
81
562ed7d1b74d
Added start of the Recipes Tree to select a recipe
Michiel Broek <mbroek@mbse.eu>
parents:
78
diff
changeset
|
52 | void on_actionRecipes_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
|
53 | void on_actionSuppliers_triggered(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
54 | void on_actionFermentables_triggered(); |
24 | 55 | void on_actionHops_triggered(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
56 | void on_actionYeasts_triggered(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
57 | 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
|
58 | void on_actionWaters_triggered(); |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
59 | void on_actionEquipments_triggered(); |
52
ff7b3a41c9b5
After several days experimenting, trials and a lot of errors, a working and nice looking printer support has been added to the application.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
60 | void on_actionSupplies_list_triggered(); |
ff7b3a41c9b5
After several days experimenting, trials and a lot of errors, a working and nice looking printer support has been added to the application.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
61 | void on_actionYeast_bank_triggered(); |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
62 | void on_actionWater_profiles_triggered(); |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
63 | void on_actionMash_profiles_triggered(); |
56
eb6c564192f4
Added styles tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
52
diff
changeset
|
64 | void on_actionStyles_profiles_triggered(); |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
65 | void on_actionFerments_profiles_triggered(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
66 | void on_actionSetup_triggered(); |
4 | 67 | void on_actionAbout_triggered(); |
3 | 68 | |
69 | public slots: | |
81
562ed7d1b74d
Added start of the Recipes Tree to select a recipe
Michiel Broek <mbroek@mbse.eu>
parents:
78
diff
changeset
|
70 | void fromRecipesTree(); |
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
|
71 | void fromInventorySuppliers(); |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
15
diff
changeset
|
72 | void fromInventoryFermentables(); |
24 | 73 | void fromInventoryHops(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
74 | void fromInventoryYeasts(); |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
75 | 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
|
76 | void fromInventoryWaters(); |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
77 | void fromInventoryEquipments(); |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
78 | void fromProfileWaters(); |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
79 | void fromProfileMashs(); |
56
eb6c564192f4
Added styles tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
52
diff
changeset
|
80 | void fromProfileStyles(); |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
81 | void fromProfileFerments(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
82 | void fromSetup(); |
78
3a6cba2dd05d
Status and Windowtitle messages via signals and slots. Global setup now on the mainwindow.
Michiel Broek <mbroek@mbse.eu>
parents:
74
diff
changeset
|
83 | void windowTitle(QString); |
3a6cba2dd05d
Status and Windowtitle messages via signals and slots. Global setup now on the mainwindow.
Michiel Broek <mbroek@mbse.eu>
parents:
74
diff
changeset
|
84 | void statusMsg(QString); |
3 | 85 | |
86 | private: | |
87 | Ui::MainWindow *ui; | |
88 | }; | |
89 | ||
90 | #endif |