src/EditProductExport.cpp

changeset 373
b02aca4e926c
parent 340
b9af88bfe972
child 384
d68826df8b63
equal deleted inserted replaced
372:d9c78eb19728 373:b02aca4e926c
452 452
453 memo.append("[u][b]Hop[/b][/u]\n"); 453 memo.append("[u][b]Hop[/b][/u]\n");
454 memo.append("[tabular]\n"); 454 memo.append("[tabular]\n");
455 memo.append("[head]Hop[/head][head]Vorm[/head][head]Alpha[/head][head]IBU[/head][head]Gram[/head][head]Toevoegen moment[/head]\n"); 455 memo.append("[head]Hop[/head][head]Vorm[/head][head]Alpha[/head][head]IBU[/head][head]Gram[/head][head]Toevoegen moment[/head]\n");
456 for (int i = 0; i < product->hops.size(); i++) { 456 for (int i = 0; i < product->hops.size(); i++) {
457 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->batch_size, 457 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->est_og3, product->batch_size,
458 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, product->ibu_method, 458 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, product->ibu_method,
459 product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, product->boil_time, 459 product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, product->boil_time,
460 product->brew_cooling_method, 0, 0); 460 product->brew_cooling_method, 0, 0, product->hops.at(i).utilisation, product->hops.at(i).bu_factor);
461 memo.append("[row][data]" + product->hops.at(i).name + " (" + product->hops.at(i).origin + ")[/data]"); 461 memo.append("[row][data]" + product->hops.at(i).name + " (" + product->hops.at(i).origin + ")[/data]");
462 memo.append("[data]" + QCoreApplication::translate("HopForm", g_hop_forms[product->hops.at(i).form]) + "[/data]"); 462 memo.append("[data]" + QCoreApplication::translate("HopForm", g_hop_forms[product->hops.at(i).form]) + "[/data]");
463 memo.append("[data]" + QString::number(product->hops.at(i).alpha, 'f', 1) + "[/data]"); 463 memo.append("[data]" + QString::number(product->hops.at(i).alpha, 'f', 1) + "[/data]");
464 memo.append("[data]" + QString::number(ibu, 'f', 1) + "[/data]"); 464 memo.append("[data]" + QString::number(ibu, 'f', 1) + "[/data]");
465 memo.append("[data]" + QString::number(product->hops.at(i).amount * 1000, 'f', 2) + "[/data]"); 465 memo.append("[data]" + QString::number(product->hops.at(i).amount * 1000, 'f', 2) + "[/data]");

mercurial