26 const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" }); |
26 const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" }); |
27 const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" }); |
27 const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" }); |
28 /* "Leaf Wet", "Cryo", "Extract" */ |
28 /* "Leaf Wet", "Cryo", "Extract" */ |
29 /* We use more hop forms then beerxml knows about, so we send known names */ |
29 /* We use more hop forms then beerxml knows about, so we send known names */ |
30 /* instead of what we internally use. */ |
30 /* instead of what we internally use. */ |
31 const QStringList hop_use({ "Mash", "First wort", "Boil", "Aroma", "Whirlpool", "Dry hop", "Dry hop" }); // tetra == dry-hop :( |
31 |
|
32 /* Note: Whirlpool hop is Aroma + time. Hop at flame-off is Aroma with time = 0. BeerXML is really stupid designed. */ |
|
33 /* flame-off vv vv whirlpool hop */ |
|
34 const QStringList hop_use({ "Mash", "First wort", "Boil", "Aroma", "Aroma", "Dry hop", "Dry hop" }); // tetra == dry-hop :( |
32 const QStringList yeast_type({ "Lager", "Ale", "Wheat", "Wine", "Champagne", "Other", "Other", "Other", "Other", "Other" }); |
35 const QStringList yeast_type({ "Lager", "Ale", "Wheat", "Wine", "Champagne", "Other", "Other", "Other", "Other", "Other" }); |
33 const QStringList yeast_form({ "Liquid", "Dry", "Slant", "Culture", "Frozen", "Bottle", "Dry" }); |
36 const QStringList yeast_form({ "Liquid", "Dry", "Slant", "Culture", "Frozen", "Bottle", "Dry" }); |
34 |
37 |
35 QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), |
38 QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), |
36 QDir::homePath() + "/" + product->code + " " + product->name + ".xml", tr("Files (*.xml)")); |
39 QDir::homePath() + "/" + product->code + " " + product->name + ".xml", tr("Files (*.xml)")); |