src/global.h

changeset 190
bb6c06910f0f
parent 182
545d31130844
child 191
7446ee2fb427
--- a/src/global.h	Mon May 02 22:42:19 2022 +0200
+++ b/src/global.h	Tue May 03 20:05:04 2022 +0200
@@ -524,9 +524,14 @@
      */
     int		fermentables_row;	///< Current row, -1 is invalid.
     bool	fermentables_use100;	///< Use percentages instead of amount
+    bool	fermentables_ok;	///< Inventory check
     int		hops_row;
+    bool	hops_ok;
     int		miscs_row;
+    bool	miscs_ok;
     int		yeasts_row;
+    bool	yeasts_ok;
+    bool	waters_ok;
     int		mashs_row;
     double	mashs_kg;		///< Kg fermentables in the mash.
     int		mashs_time;		///< Total mash time.
@@ -572,8 +577,38 @@
 extern const QStringList prod_split;
 extern const QStringList recipe_types;
 extern const QStringList style_types;
+
+enum FermentableTypes {
+	FERMENTABLE_TYPE_GRAIN,
+	FERMENTABLE_TYPE_SUGAR,
+	FERMENTABLE_TYPE_EXTRACT,
+	FERMENTABLE_TYPE_DRY_EXTRACT,
+	FERMENTABLE_TYPE_ADJUCT
+};
+
 extern const QStringList fermentable_types;
+
+enum FermentableGraintypes {
+	FERMENTABLE_GRAINTYPE_BASE,
+	FERMENTABLE_GRAINTYPE_ROAST,
+	FERMENTABLE_GRAINTYPE_CRYSTAL,
+	FERMENTABLE_GRAINTYPE_KILNED,
+	FERMENTABLE_GRAINTYPE_SOUR_MALT,
+	FERMENTABLE_GRAINTYPE_SPECIAL,
+	FERMENTABLE_GRAINTYPE_NO_MALT
+};
+
 extern const QStringList fermentable_graintypes;
+
+enum FermentableAdded {
+	FERMENTABLE_ADDED_MASH,
+	FERMENTABLE_ADDED_BOIL,
+	FERMENTABLE_ADDED_FERMENTATION,
+	FERMENTABLE_ADDED_LAGERING,
+	FERMENTABLE_ADDED_BOTTLE,
+	FERMENTABLE_ADDED_KEGS
+};
+
 extern const QStringList fermentable_added;
 extern const QStringList hop_types;
 extern const QStringList hop_forms;

mercurial