src/global.cpp

Fri, 29 Apr 2022 17:07:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 29 Apr 2022 17:07:35 +0200
changeset 176
69a033e099a2
parent 175
f1ed3a2a94e9
child 300
2a97905cb637
permissions
-rw-r--r--

Tab 2 equipent, all editfields placed.

131
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 #include "global.h"
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5 QList<Acid> my_acids;
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 QString my_brewery_name = "No-name";
133
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
8 QByteArray my_logoByteArray = 0;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
9 int my_factor_mashhop = -30;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
10 int my_factor_fwh = 10;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
11 int my_factor_pellet = 10;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
12 int my_factor_plug = 2;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
13 int my_factor_wethop = -82;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
14 int my_factor_cryohop = 100;
131
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 int my_ibu_method = 0;
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 int my_color_method = 0;
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 double my_brix_correction = 1.04;
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 double my_grain_absorbtion = 1.01;
133
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
19 int my_default_water = -1;
08635b028dcf Load waters during recipe startup. Started calcWater() function. Load profile_setup record global. The print function uses the globals now too instead of loading from the database.
Michiel Broek <mbroek@mbse.eu>
parents: 131
diff changeset
20 QString my_yeastlab = "";
131
0115b97e8c39 Added global variables, C++ lovers will hate that. Added global acid data. Fixed several load and save errors in the json arrays in the recipe record. Added first part of the miscs table. The first part of the water tab has values.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21
158
24bc2de721d9 Activated print recipe button. The recipe record structure is now global. Added global product record structure.
Michiel Broek <mbroek@mbse.eu>
parents: 154
diff changeset
22 Recipe *recipe;
175
f1ed3a2a94e9 Initial import of EditProduct, the part from EditRecipe is ported.
Michiel Broek <mbroek@mbse.eu>
parents: 173
diff changeset
23 Product *product;
154
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
24
173
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
25 const QStringList prod_stages({
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
26 QObject::tr("Plan"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
27 QObject::tr("Wait"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
28 QObject::tr("Brew"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
29 QObject::tr("Primary"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
30 QObject::tr("Secondary"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
31 QObject::tr("Tertiary"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
32 QObject::tr("Package"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
33 QObject::tr("Carbonation"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
34 QObject::tr("Mature"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
35 QObject::tr("Taste"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
36 QObject::tr("Ready"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
37 QObject::tr("Closed")
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
38 });
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
39
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
40 const QStringList prod_split({
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
41 QObject::tr("Not divided"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
42 QObject::tr("After mash"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
43 QObject::tr("After boil"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
44 QObject::tr("After cooling"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
45 QObject::tr("After primary"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
46 QObject::tr("After secondary"),
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
47 QObject::tr("After tertiary")
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
48 });
8514932b61aa Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents: 159
diff changeset
49
159
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
50 const QStringList recipe_types({
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
51 QObject::tr("Extract"),
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
52 QObject::tr("Partial Mash"),
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
53 QObject::tr("All Grain")
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
54 });
231f5c8002e3 Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents: 158
diff changeset
55
154
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
56 const QStringList style_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
57 QObject::tr("Lager"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
58 QObject::tr("Ale"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
59 QObject::tr("Mead"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
60 QObject::tr("Wheat"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
61 QObject::tr("Mixed"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
62 QObject::tr("Cider")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
63 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
64
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
65 const QStringList fermentable_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
66 QObject::tr("Grain"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
67 QObject::tr("Sugar"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
68 QObject::tr("Extract"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
69 QObject::tr("Dry extract"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
70 QObject::tr("Adjunct")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
71 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
72
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
73 const QStringList fermentable_graintypes({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
74 QObject::tr("Base"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
75 QObject::tr("Roast"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
76 QObject::tr("Crystal"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
77 QObject::tr("Kilned"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
78 QObject::tr("Sour Malt"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
79 QObject::tr("Special"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
80 QObject::tr("No malt")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
81 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
82
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
83 const QStringList fermentable_added({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
84 QObject::tr("Mash"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
85 QObject::tr("Boil"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
86 QObject::tr("Fermentation"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
87 QObject::tr("Lagering"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
88 QObject::tr("Bottle"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
89 QObject::tr("Kegs")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
90 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
91
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
92 const QStringList hop_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
93 QObject::tr("Bittering"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
94 QObject::tr("Aroma"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
95 QObject::tr("Both")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
96 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
97
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
98 const QStringList hop_forms({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
99 QObject::tr("Pellet"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
100 QObject::tr("Plug"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
101 QObject::tr("Leaf"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
102 QObject::tr("Leaf wet"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
103 QObject::tr("Cryo")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
104 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
105
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
106 const QStringList hop_useat({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
107 QObject::tr("Mash"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
108 QObject::tr("First wort"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
109 QObject::tr("Boil"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
110 QObject::tr("Aroma"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
111 QObject::tr("Whirlpool"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
112 QObject::tr("Dry hop")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
113 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
114
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
115 const QStringList misc_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
116 QObject::tr("Spice"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
117 QObject::tr("Herb"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
118 QObject::tr("Flavor"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
119 QObject::tr("Fining"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
120 QObject::tr("Water agent"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
121 QObject::tr("Yeast nutrient"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
122 QObject::tr("Other")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
123 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
124
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
125 const QStringList misc_uses({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
126 QObject::tr("Starter"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
127 QObject::tr("Mash"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
128 QObject::tr("Boil"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
129 QObject::tr("Primary"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
130 QObject::tr("Secondary"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
131 QObject::tr("Bottling")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
132 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
133
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
134 const QStringList yeast_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
135 QObject::tr("Lager"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
136 QObject::tr("Ale"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
137 QObject::tr("Wheat"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
138 QObject::tr("Wine"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
139 QObject::tr("Champagne"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
140 QObject::tr("Brett"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
141 QObject::tr("Kveik"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
142 QObject::tr("Hybrid")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
143 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
144
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
145 const QStringList yeast_forms({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
146 QObject::tr("Liquid"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
147 QObject::tr("Dry"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
148 QObject::tr("Slant"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
149 QObject::tr("Culture"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
150 QObject::tr("Frozen"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
151 QObject::tr("Bottle"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
152 QObject::tr("Dried")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
153 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
154
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
155 const QStringList yeast_use({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
156 QObject::tr("Primary"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
157 QObject::tr("Secondary"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
158 QObject::tr("Tertiary"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
159 QObject::tr("Bottle")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
160 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
161
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
162 const QStringList starters({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
163 QObject::tr("Stirred"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
164 QObject::tr("Shaken"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
165 QObject::tr("Simple")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
166 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
167
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
168 const QStringList step_types({
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
169 QObject::tr("Infusion"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
170 QObject::tr("Temperature"),
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
171 QObject::tr("Decoction")
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
172 });
1af9f7b7f317 Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents: 133
diff changeset
173
176
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
174 const QStringList tun_materials({
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
175 QObject::tr("Stainless Steel"),
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
176 QObject::tr("Aluminium"),
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
177 QObject::tr("Plastics"),
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
178 QObject::tr("Copper")
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
179 });
69a033e099a2 Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents: 175
diff changeset
180

mercurial