src/AboutDialog.cpp

Fri, 29 Jul 2022 13:12:26 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 29 Jul 2022 13:12:26 +0200
changeset 373
b02aca4e926c
parent 16
a5d8e783a7b0
permissions
-rw-r--r--

First load of changes for hops. In EditHop load the dropdown buttons from the global table. Use named query fields. Added database utilisation and bu_factor fields for hop extracts. Added edit fields for these new fields. Added post boil SG, utilisation and bu_factor parameters to the toIBU function. Added hops form parameter to the hopFlavourContribution and hopAromaContribution display bars. In the hops inventory list dispay volumes instead of weight for hop extracts. Modified the TinsethIBU function to use utilisation and bu_factor parameters. Add calculations for co2 and iso hop extracts, this is work in progress. The toIBU function makes use of the preSG and postSG values to use the correct SG to caall the TinsethIBU function. This results in a bit lower IBU values mostly affecting the late additions. Added use hop at bottling for iso hop extracts like Tetra hops using the formula from BarthHaas.

4
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 /**
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 * AboutDialog.cpp is part of bmsapp.
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 *
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 * bmsapp is free software: you can redistribute it and/or modify
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 * the Free Software Foundation, either version 3 of the License, or
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 * (at your option) any later version.
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 *
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 * bmsapp is distributed in the hope that it will be useful,
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 * GNU General Public License for more details.
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13 *
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 */
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 #include "AboutDialog.h"
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 #include "../ui/ui_AboutDialog.h"
6
f8474f2c5db9 We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
19 #include <QDebug>
4
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog)
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22 {
16
a5d8e783a7b0 Completed the global setup editor.
Michiel Broek <mbroek@mbse.eu>
parents: 6
diff changeset
23 qDebug() << "About start";
4
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 ui->setupUi(this);
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25 }
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27 AboutDialog::~AboutDialog()
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 {
16
a5d8e783a7b0 Completed the global setup editor.
Michiel Broek <mbroek@mbse.eu>
parents: 6
diff changeset
29 qDebug() << "About done";
4
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 delete ui;
fe106c497b75 Added About dialog
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31 }

mercurial