src/EditRecipe.h

changeset 131
0115b97e8c39
parent 126
3c013ef88a00
child 132
9ede9c75cb54
equal deleted inserted replaced
130:8544f1e28208 131:0115b97e8c39
265 void refreshFermentables(); 265 void refreshFermentables();
266 void refreshHops(); 266 void refreshHops();
267 void refreshMiscs(); 267 void refreshMiscs();
268 void refreshYeasts(); 268 void refreshYeasts();
269 void refreshMashs(); 269 void refreshMashs();
270 void refreshWaters();
270 void refreshAll(); 271 void refreshAll();
271 void ferment_amount_changed(double val); 272 void ferment_amount_changed(double val);
272 void ferment_pct_changed(double val); 273 void ferment_pct_changed(double val);
273 void ferment_to100_changed(bool val); 274 void ferment_to100_changed(bool val);
274 void ferment_select_changed(int val); 275 void ferment_select_changed(int val);
300 QStringList f_graintypes = { tr("Base"), tr("Roast"), tr("Crystal"), tr("Kilned"), tr("Sour Malt"), tr("Special"), tr("No malt")}; 301 QStringList f_graintypes = { tr("Base"), tr("Roast"), tr("Crystal"), tr("Kilned"), tr("Sour Malt"), tr("Special"), tr("No malt")};
301 QStringList f_added = { tr("Mash"), tr("Boil"), tr("Fermentation"), tr("Lagering"), tr("Bottle"), tr("Kegs") }; 302 QStringList f_added = { tr("Mash"), tr("Boil"), tr("Fermentation"), tr("Lagering"), tr("Bottle"), tr("Kegs") };
302 QStringList h_types = { tr("Bittering"), tr("Aroma"), tr("Both") }; 303 QStringList h_types = { tr("Bittering"), tr("Aroma"), tr("Both") };
303 QStringList h_forms = { tr("Pellet"), tr("Plug"), tr("Leaf"), tr("Leaf wet"), tr("Cryo") }; 304 QStringList h_forms = { tr("Pellet"), tr("Plug"), tr("Leaf"), tr("Leaf wet"), tr("Cryo") };
304 QStringList h_useat = { tr("Mash"), tr("First wort"), tr("Boil"), tr("Aroma"), tr("Whirlpool"), tr("Dry hop") }; 305 QStringList h_useat = { tr("Mash"), tr("First wort"), tr("Boil"), tr("Aroma"), tr("Whirlpool"), tr("Dry hop") };
306 QStringList m_types = { tr("Spice"), tr("Herb"), tr("Flavor"), tr("Fining"), tr("Water agent"), tr("Yeast nutrient"), tr("Other") };
307 QStringList m_uses = { tr("Starter"), tr("Mash"), tr("Boil"), tr("Primary"), tr("Secondary"), tr("Bottling") };
305 QString bar_red = "QProgressBar::chunk {background: #FF0000;}"; 308 QString bar_red = "QProgressBar::chunk {background: #FF0000;}";
306 QString bar_orange = "QProgressBar::chunk {background: #EB7331;}"; 309 QString bar_orange = "QProgressBar::chunk {background: #EB7331;}";
307 QString bar_green = "QProgressBar::chunk {background: #008C00;}"; 310 QString bar_green = "QProgressBar::chunk {background: #008C00;}";
308 QString bar_20 = "QProgressBar::chunk {background: #004D00;}"; 311 QString bar_20 = "QProgressBar::chunk {background: #004D00;}";
309 QString bar_40 = "QProgressBar::chunk {background: #008C00;}"; 312 QString bar_40 = "QProgressBar::chunk {background: #008C00;}";
325 QLabel *htimeLabel; 328 QLabel *htimeLabel;
326 329
327 void to100Fermentables(int row); 330 void to100Fermentables(int row);
328 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2); 331 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2);
329 static bool hop_sort_test(const Hops &D1, const Hops &D2); 332 static bool hop_sort_test(const Hops &D1, const Hops &D2);
333 static bool misc_sort_test(const Miscs &D1, const Miscs &D2);
330 void WindowTitle(); 334 void WindowTitle();
331 void calcFermentables(); 335 void calcFermentables();
332 void calcIBUs(); 336 void calcIBUs();
333 }; 337 };
334 338

mercurial