Fri, 08 Jul 2022 13:24:45 +0200
Removed old experiment to calculate flameout and whirlpool ibu's. Changed Tinseth calculation to use a time window so you can select the ibu contribution during a specified time. Added ibu_method Tinset++. Added calculation extensions for Tinseth++, this calculates the flameout and whirlpool effects on all hops. During cooling is to be done.
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 | |
323
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
301
diff
changeset
|
5 | QWebSocket *webSocket; |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
301
diff
changeset
|
6 | QList<Acid> my_acids; |
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
|
7 | |
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
|
8 | 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
|
9 | 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
|
10 | 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
|
11 | 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
|
12 | 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
|
13 | 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
|
14 | 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
|
15 | 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
|
16 | 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
|
17 | 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
|
18 | 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
|
19 | 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
|
20 | 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
|
21 | QString my_yeastlab = ""; |
337
8133cdb19aa1
Added my_height global variable and edit in profile setup. This sets the height of the brewery above or below sealevel. Added calculations for the air pressure, boilpoint and IBU_reduction that all depend on the height. Currently not yet in use. Split out the real IBU calculation from the generic toIBU function. This has no effect on the results.
Michiel Broek <mbroek@mbse.eu>
parents:
336
diff
changeset
|
22 | int my_height = 0; |
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
|
23 | |
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
|
24 | Recipe *recipe; |
175
f1ed3a2a94e9
Initial import of EditProduct, the part from EditRecipe is ported.
Michiel Broek <mbroek@mbse.eu>
parents:
173
diff
changeset
|
25 | Product *product; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
26 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
27 | const char * const g_prod_stages[12] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
28 | QT_TRANSLATE_NOOP("ProdStages", "Plan"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
29 | QT_TRANSLATE_NOOP("ProdStages", "Wait"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
30 | QT_TRANSLATE_NOOP("ProdStages", "Brew"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
31 | QT_TRANSLATE_NOOP("ProdStages", "Primary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
32 | QT_TRANSLATE_NOOP("ProdStages", "Secondary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
33 | QT_TRANSLATE_NOOP("ProdStages", "Tertiary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
34 | QT_TRANSLATE_NOOP("ProdStages", "Package"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
35 | QT_TRANSLATE_NOOP("ProdStages", "Carbonation"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
36 | QT_TRANSLATE_NOOP("ProdStages", "Mature"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
37 | QT_TRANSLATE_NOOP("ProdStages", "Taste"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
38 | QT_TRANSLATE_NOOP("ProdStages", "Ready"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
39 | QT_TRANSLATE_NOOP("ProdStages", "Closed") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
40 | }; |
173
8514932b61aa
Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents:
159
diff
changeset
|
41 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
42 | const char * const g_prod_split[7] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
43 | QT_TRANSLATE_NOOP("Splitter", "Not divided"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
44 | QT_TRANSLATE_NOOP("Splitter", "After mash"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
45 | QT_TRANSLATE_NOOP("Splitter", "After boil"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
46 | QT_TRANSLATE_NOOP("Splitter", "After cooling"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
47 | QT_TRANSLATE_NOOP("Splitter", "After primary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
48 | QT_TRANSLATE_NOOP("Splitter", "After secondary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
49 | QT_TRANSLATE_NOOP("Splitter", "After tertiary") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
50 | }; |
173
8514932b61aa
Added menu entry products in production
Michiel Broek <mbroek@mbse.eu>
parents:
159
diff
changeset
|
51 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
52 | const char * const g_recipe_types[3] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
53 | QT_TRANSLATE_NOOP("RecipeType", "Extract"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
54 | QT_TRANSLATE_NOOP("RecipeType", "Partial Mash"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
55 | QT_TRANSLATE_NOOP("RecipeType", "All Grain") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
56 | }; |
159
231f5c8002e3
Added the largest part of print recipe.
Michiel Broek <mbroek@mbse.eu>
parents:
158
diff
changeset
|
57 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
58 | const char * const g_style_types[6] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
59 | QT_TRANSLATE_NOOP("BeerType", "Lager"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
60 | QT_TRANSLATE_NOOP("BeerType", "Ale"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
61 | QT_TRANSLATE_NOOP("BeerType", "Mead"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
62 | QT_TRANSLATE_NOOP("BeerType", "Wheat"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
63 | QT_TRANSLATE_NOOP("BeerType", "Mixed"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
64 | QT_TRANSLATE_NOOP("BeerType", "Cider") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
65 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
66 | |
336
e97f9e87d94b
IBU method names are now global.
Michiel Broek <mbroek@mbse.eu>
parents:
323
diff
changeset
|
67 | const char * g_ibu_method[3] = { |
e97f9e87d94b
IBU method names are now global.
Michiel Broek <mbroek@mbse.eu>
parents:
323
diff
changeset
|
68 | "Tinseth", |
339
2f3cfb983fcc
Removed Garetz and Rager IBU calculations, we will only use Tinseth
Michiel Broek <mbroek@mbse.eu>
parents:
337
diff
changeset
|
69 | "Tinseth++", |
2f3cfb983fcc
Removed Garetz and Rager IBU calculations, we will only use Tinseth
Michiel Broek <mbroek@mbse.eu>
parents:
337
diff
changeset
|
70 | "N/A" |
336
e97f9e87d94b
IBU method names are now global.
Michiel Broek <mbroek@mbse.eu>
parents:
323
diff
changeset
|
71 | }; |
e97f9e87d94b
IBU method names are now global.
Michiel Broek <mbroek@mbse.eu>
parents:
323
diff
changeset
|
72 | |
341
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
73 | const char * const g_chiller_types[5] = { |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
74 | QT_TRANSLATE_NOOP("ChillerType", "-"), |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
75 | QT_TRANSLATE_NOOP("ChillerType", "Emersion chiller"), |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
76 | QT_TRANSLATE_NOOP("ChillerType", "Counterflow chiller"), |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
77 | QT_TRANSLATE_NOOP("ChillerType", "Au bain marie"), |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
78 | QT_TRANSLATE_NOOP("ChillerType", "Natural") |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
79 | }; |
1b1e2d4c1a3e
Cooling method dropdown table loads from a global table. Updated the translations.
Michiel Broek <mbroek@mbse.eu>
parents:
339
diff
changeset
|
80 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
81 | const char * const g_fermentable_types[5] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
82 | QT_TRANSLATE_NOOP("FermentableType", "Grain"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
83 | QT_TRANSLATE_NOOP("FermentableType", "Sugar"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
84 | QT_TRANSLATE_NOOP("FermentableType", "Extract"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
85 | QT_TRANSLATE_NOOP("FermentableType", "Dry extract"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
86 | QT_TRANSLATE_NOOP("FermentableType", "Adjunct") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
87 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
88 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
89 | const char * const g_fermentable_graintypes[7] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
90 | QT_TRANSLATE_NOOP("FermentableGraintype", "Base"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
91 | QT_TRANSLATE_NOOP("FermentableGraintype", "Roast"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
92 | QT_TRANSLATE_NOOP("FermentableGraintype", "Crystal"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
93 | QT_TRANSLATE_NOOP("FermentableGraintype", "Kilned"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
94 | QT_TRANSLATE_NOOP("FermentableGraintype", "Sour Malt"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
95 | QT_TRANSLATE_NOOP("FermentableGraintype", "Special"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
96 | QT_TRANSLATE_NOOP("FermentableGraintype", "No malt") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
97 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
98 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
99 | const char * const g_fermentable_added[6] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
100 | QT_TRANSLATE_NOOP("FermentableAdded", "Mash"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
101 | QT_TRANSLATE_NOOP("FermentableAdded", "Boil"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
102 | QT_TRANSLATE_NOOP("FermentableAdded", "Fermentation"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
103 | QT_TRANSLATE_NOOP("FermentableAdded", "Lagering"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
104 | QT_TRANSLATE_NOOP("FermentableAdded", "Bottle"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
105 | QT_TRANSLATE_NOOP("FermentableAdded", "Kegs") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
106 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
107 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
108 | const char * const g_hop_types[3] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
109 | QT_TRANSLATE_NOOP("HopTypes", "Bittering"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
110 | QT_TRANSLATE_NOOP("HopTypes", "Aroma"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
111 | QT_TRANSLATE_NOOP("HopTypes", "Both") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
112 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
113 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
114 | const char * const g_hop_forms[6] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
115 | QT_TRANSLATE_NOOP("HopForm", "Pellet"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
116 | QT_TRANSLATE_NOOP("HopForm", "Plug"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
117 | QT_TRANSLATE_NOOP("HopForm", "Leaf"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
118 | QT_TRANSLATE_NOOP("HopForm", "Leaf wet"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
119 | QT_TRANSLATE_NOOP("HopForm", "Cryo"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
120 | QT_TRANSLATE_NOOP("HopForm", "Extract") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
121 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
122 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
123 | const char * const g_hop_useat[7] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
124 | QT_TRANSLATE_NOOP("HopUse", "Mash"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
125 | QT_TRANSLATE_NOOP("HopUse", "First wort"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
126 | QT_TRANSLATE_NOOP("HopUse", "Boil"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
127 | QT_TRANSLATE_NOOP("HopUse", "Aroma"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
128 | QT_TRANSLATE_NOOP("HopUse", "Whirlpool"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
129 | QT_TRANSLATE_NOOP("HopUse", "Dry hop"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
130 | QT_TRANSLATE_NOOP("HopUse", "Bottling") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
131 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
132 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
133 | const char * const g_misc_types[7] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
134 | QT_TRANSLATE_NOOP("MiscType", "Spice"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
135 | QT_TRANSLATE_NOOP("MiscType", "Herb"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
136 | QT_TRANSLATE_NOOP("MiscType", "Flavor"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
137 | QT_TRANSLATE_NOOP("MiscType", "Fining"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
138 | QT_TRANSLATE_NOOP("MiscType", "Water agent"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
139 | QT_TRANSLATE_NOOP("MiscType", "Yeast nutrient"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
140 | QT_TRANSLATE_NOOP("MiscType", "Other") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
141 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
142 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
143 | const char * const g_misc_uses[6] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
144 | QT_TRANSLATE_NOOP("MiscUse", "Starter"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
145 | QT_TRANSLATE_NOOP("MiscUse", "Mash"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
146 | QT_TRANSLATE_NOOP("MiscUse", "Boil"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
147 | QT_TRANSLATE_NOOP("MiscUse", "Primary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
148 | QT_TRANSLATE_NOOP("MiscUse", "Secondary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
149 | QT_TRANSLATE_NOOP("MiscUse", "Bottling") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
150 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
151 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
152 | const char * const g_yeast_types[8] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
153 | QT_TRANSLATE_NOOP("YeastType", "Lager"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
154 | QT_TRANSLATE_NOOP("YeastType", "Ale"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
155 | QT_TRANSLATE_NOOP("YeastType", "Wheat"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
156 | QT_TRANSLATE_NOOP("YeastType", "Wine"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
157 | QT_TRANSLATE_NOOP("YeastType", "Champagne"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
158 | QT_TRANSLATE_NOOP("YeastType", "Brett"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
159 | QT_TRANSLATE_NOOP("YeastType", "Kveik"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
160 | QT_TRANSLATE_NOOP("YeastType", "Hybrid") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
161 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
162 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
163 | const char * const g_yeast_forms[7] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
164 | QT_TRANSLATE_NOOP("YeastForm", "Liquid"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
165 | QT_TRANSLATE_NOOP("YeastForm", "Dry"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
166 | QT_TRANSLATE_NOOP("YeastForm", "Slant"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
167 | QT_TRANSLATE_NOOP("YeastForm", "Culture"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
168 | QT_TRANSLATE_NOOP("YeastForm", "Frozen"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
169 | QT_TRANSLATE_NOOP("YeastForm", "Bottle"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
170 | QT_TRANSLATE_NOOP("YeastForm", "Dried") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
171 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
172 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
173 | const char * const g_yeast_use[4] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
174 | QT_TRANSLATE_NOOP("YeastUse", "Primary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
175 | QT_TRANSLATE_NOOP("YeastUse", "Secondary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
176 | QT_TRANSLATE_NOOP("YeastUse", "Tertiary"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
177 | QT_TRANSLATE_NOOP("YeastUse", "Bottle") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
178 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
179 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
180 | const char * const g_yeast_starter[3] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
181 | QT_TRANSLATE_NOOP("YeastStarter", "Stirred"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
182 | QT_TRANSLATE_NOOP("YeastStarter", "Shaken"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
183 | QT_TRANSLATE_NOOP("YeastStarter", "Simple") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
184 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
185 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
186 | const char * const g_step_types[3] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
187 | QT_TRANSLATE_NOOP("StepType", "Infusion"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
188 | QT_TRANSLATE_NOOP("StepType", "Temperature"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
189 | QT_TRANSLATE_NOOP("StepType", "Decoction") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
190 | }; |
154
1af9f7b7f317
Moved QStringList arrays to global.
Michiel Broek <mbroek@mbse.eu>
parents:
133
diff
changeset
|
191 | |
301
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
192 | const char * const g_tun_materials[4] = { |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
193 | QT_TRANSLATE_NOOP("TunMaterial", "Stainless Steel"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
194 | QT_TRANSLATE_NOOP("TunMaterial", "Aluminium"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
195 | QT_TRANSLATE_NOOP("TunMaterial", "Plastics"), |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
196 | QT_TRANSLATE_NOOP("TunMaterial", "Copper") |
fe6346211b5b
Finally the translation of string arrays is working.
Michiel Broek <mbroek@mbse.eu>
parents:
300
diff
changeset
|
197 | }; |
176
69a033e099a2
Tab 2 equipent, all editfields placed.
Michiel Broek <mbroek@mbse.eu>
parents:
175
diff
changeset
|
198 |