225 /* |
225 /* |
226 * These are not in the MySL database, but are global variables |
226 * These are not in the MySL database, but are global variables |
227 * that belong with the loaded recipe data and are present to |
227 * that belong with the loaded recipe data and are present to |
228 * make things easier. |
228 * make things easier. |
229 */ |
229 */ |
230 int fermentables_current; ///< Current record, -1 is invalid. |
230 int fermentables_row; ///< Current row, -1 is invalid. |
231 bool fermentables_use100; ///< Use percentages instead of amount |
231 bool fermentables_use100; ///< Use percentages instead of amount |
232 int hops_current; |
232 int hops_row; |
233 int misc_current; |
233 int misc_row; |
234 int yeasts_current; |
234 int yeasts_row; |
235 int mashs_current; |
235 int mashs_row; |
236 }; |
236 }; |
237 |
237 |
238 |
238 |
239 namespace Ui { |
239 namespace Ui { |
240 class EditRecipe; |
240 class EditRecipe; |
283 QStringList f_graintypes = { tr("Base"), tr("Roast"), tr("Crystal"), tr("Kilned"), tr("Sour Malt"), tr("Special"), tr("No malt")}; |
283 QStringList f_graintypes = { tr("Base"), tr("Roast"), tr("Crystal"), tr("Kilned"), tr("Sour Malt"), tr("Special"), tr("No malt")}; |
284 QStringList f_added = { tr("Mash"), tr("Boil"), tr("Fermentation"), tr("Lagering"), tr("Bottle"), tr("Kegs") }; |
284 QStringList f_added = { tr("Mash"), tr("Boil"), tr("Fermentation"), tr("Lagering"), tr("Bottle"), tr("Kegs") }; |
285 QString bar_red = "QProgressBar::chunk {background: #FF0000;}"; |
285 QString bar_red = "QProgressBar::chunk {background: #FF0000;}"; |
286 QString bar_orange = "QProgressBar::chunk {background: #EB7331;}"; |
286 QString bar_orange = "QProgressBar::chunk {background: #EB7331;}"; |
287 QString bar_green = "QProgressBar::chunk {background: #008C00;}"; |
287 QString bar_green = "QProgressBar::chunk {background: #008C00;}"; |
288 int recno, editrow; |
288 int recno; |
289 bool textIsChanged = false; |
289 bool textIsChanged = false; |
290 bool ignoreChanges = false; |
290 bool ignoreChanges = false; |
291 Recipe *recipe; |
291 Recipe *recipe; |
292 /* |
292 /* |
293 * Variables for popup ingredients editing. |
293 * Variables for popup ingredients editing. |