# HG changeset patch # User Michiel Broek # Date 1646670802 -3600 # Node ID 29cf6e35006350b2fc6faa2a8bc33f6537e49985 # Parent ddd1171ecda58e6278c9bf0505e712fe9799e8d1 Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written. diff -r ddd1171ecda5 -r 29cf6e350063 CMakeLists.txt --- a/CMakeLists.txt Sun Mar 06 15:31:40 2022 +0100 +++ b/CMakeLists.txt Mon Mar 07 17:33:22 2022 +0100 @@ -117,6 +117,8 @@ ${SRCDIR}/EditEquipment.cpp ${SRCDIR}/ProfileWaters.cpp ${SRCDIR}/EditProfileWater.cpp + ${SRCDIR}/ProfileMashs.cpp + ${SRCDIR}/EditProfileMash.cpp ${SRCDIR}/Setup.cpp ${SRCDIR}/Utils.cpp ${SRCDIR}/MainWindow.cpp @@ -143,6 +145,8 @@ ${SRCDIR}/EditEquipment.h ${SRCDIR}/ProfileWaters.h ${SRCDIR}/EditProfileWater.h + ${SRCDIR}/ProfileMashs.h + ${SRCDIR}/EditProfileMash.h ${SRCDIR}/Setup.h ${SRCDIR}/Utils.h ${SRCDIR}/MainWindow.h @@ -168,6 +172,8 @@ ${UIDIR}/EditEquipment.ui ${UIDIR}/ProfileWaters.ui ${UIDIR}/EditProfileWater.ui + ${UIDIR}/ProfileMashs.ui + ${UIDIR}/EditProfileMash.ui ${UIDIR}/Setup.ui ${UIDIR}/MainWindow.ui ) diff -r ddd1171ecda5 -r 29cf6e350063 src/EditProfileMash.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/EditProfileMash.cpp Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,314 @@ +/** + * EditProfileMash.cpp is part of bmsapp. + * + * bmsapp is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * bmsapp is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include "EditProfileMash.h" +#include "../ui/ui_EditProfileMash.h" +#include "bmsapp.h" + + +EditProfileMash::EditProfileMash(int id, QWidget *parent) : QDialog(parent), ui(new Ui::EditProfileMash) +{ + QSqlQuery query; + + qDebug() << "EditProfileMash record:" << id; + ui->setupUi(this); + this->recno = id; + + if (id >= 0) { + query.prepare("SELECT * FROM profile_mash WHERE record = :recno"); + query.bindValue(":recno", id); + query.exec(); + query.next(); + + ui->nameEdit->setText(query.value(1).toString()); + ui->notesEdit->setPlainText(query.value(2).toString()); + QJsonParseError parseError; + const auto& json = query.value(3).toString(); + + if (!json.trimmed().isEmpty()) { + const auto& formattedJson = QString("%1").arg(json); + this->steps = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError); + + if (parseError.error != QJsonParseError::NoError) + qDebug() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; + } + + } else { + /* Set some defaults */ + const auto& formattedJson = QString("[]"); + this->steps = QJsonDocument::fromJson(formattedJson.toUtf8()); + } + + connect(ui->nameEdit, &QLineEdit::textChanged, this, &EditProfileMash::is_changed); + connect(ui->notesEdit, SIGNAL(textChanged()), this, SLOT(is_changed())); + connect(ui->stepsTable, SIGNAL(cellPressed(int, int)), this, SLOT(cell_Changed(int, int))); + + ui->saveButton->setEnabled(false); + ui->deleteButton->setEnabled((id >= 0) ? true:false); + + emit refreshTable(); + + WindowTitle(); +} + + +void EditProfileMash::refreshTable() +{ + QString w; + QWidget* pWidget; + QHBoxLayout* pLayout; + double d; + int total; + + qDebug() << "Steps reload"; + + const QStringList labels({tr("Step name"), tr("Type"), tr("Start °C"), tr("End °C"), tr("Rest time"), tr("Ramp time"), tr("Button")}); + ui->stepsTable->setColumnCount(7); + ui->stepsTable->setColumnWidth(0, 250); /* Step name */ + ui->stepsTable->setColumnWidth(1, 150); /* Step type */ + ui->stepsTable->setColumnWidth(2, 75); /* Start temp */ + ui->stepsTable->setColumnWidth(3, 75); /* End temp */ + ui->stepsTable->setColumnWidth(4, 75); /* Step time */ + ui->stepsTable->setColumnWidth(5, 75); /* Ramp time */ + ui->stepsTable->setColumnWidth(6, 80); /* Button */ + ui->stepsTable->setHorizontalHeaderLabels(labels); + ui->stepsTable->verticalHeader()->hide(); + + qDebug() << " ** " << this->steps << this->steps.isArray() << this->steps.array().size() ; + + total = 0; + ui->stepsTable->setRowCount(this->steps.array().size()); + + if (this->steps.isArray()) { + for (int i = 0; i < this->steps.array().size(); i++) { + QJsonObject obj = this->steps.array().at(i).toObject(); + qDebug() << i << obj; + + ui->stepsTable->setItem(i, 0, new QTableWidgetItem(obj["step_name"].toString())); + + QComboBox* myComboBox = new QComboBox(); + myComboBox->addItem(tr("Infusion")); + myComboBox->addItem(tr("Temperature")); + myComboBox->addItem(tr("Decoction")); + ui->stepsTable->setCellWidget(i, 1, myComboBox); + if (obj["step_type"].isString()) + d = QString(obj["step_type"].toString()).toDouble(); + else + d = obj["step_type"].toDouble(); + myComboBox->setCurrentIndex((int)d); + + if (obj["step_temp"].isString()) + d = QString(obj["step_temp"].toString()).toDouble(); + else + d = obj["step_temp"].toDouble(); + w = QString("%1").arg(d, 2, 'f', 1, '0'); + QTableWidgetItem *item = new QTableWidgetItem(w); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + ui->stepsTable->setItem(i, 2, item); + + if (obj["end_temp"].isString()) + d = QString(obj["end_temp"].toString()).toDouble(); + else + d = obj["end_temp"].toDouble(); + w = QString("%1").arg(d, 2, 'f', 1, '0'); + item = new QTableWidgetItem(w); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + ui->stepsTable->setItem(i, 3, item); + + if (obj["step_time"].isString()) + d = QString(obj["step_time"].toString()).toDouble(); + else + d = obj["step_time"].toDouble(); + w = QString("%1").arg(d, 1, 'f', 0, '0'); + item = new QTableWidgetItem(w); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + ui->stepsTable->setItem(i, 4, item); + total += (int)d; + + if (obj["ramp_time"].isString()) + d = QString(obj["ramp_time"].toString()).toDouble(); + else + d = obj["ramp_time"].toDouble(); + w = QString("%1").arg(d, 1, 'f', 0, '0'); + item = new QTableWidgetItem(w); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + ui->stepsTable->setItem(i, 5, item); + if (i > 0) + total += (int)d; + + /* Add the Delete row button */ + pWidget = new QWidget(); + QPushButton* btn_edit = new QPushButton(); + btn_edit->setObjectName(QString("%1").arg(i)); /* Send row with the button */ + btn_edit->setText(tr("Delete")); + connect(btn_edit, SIGNAL(clicked()), this, SLOT(on_deleteRow_clicked())); + pLayout = new QHBoxLayout(pWidget); + pLayout->addWidget(btn_edit); + pLayout->setContentsMargins(5, 0, 5, 0); + pWidget->setLayout(pLayout); + ui->stepsTable->setCellWidget(i, 6, pWidget); + } + } + + /* Show the calculated total mash time. */ + ui->totalEdit->setText(QString("%1:%2").arg(total / 60).arg(total % 60, 2, 'f', 0, '0')); +} + + +EditProfileMash::~EditProfileMash() +{ + qDebug() << "EditProfileMash done"; + delete ui; + emit entry_changed(); +} + + +/* + * Window header, mark any change with '**' + */ +void EditProfileMash::WindowTitle() +{ + QString txt; + + if (this->recno < 0) { + txt = QString(tr("BMSapp - Add new mash profile")); + } else { + txt = QString(tr("BMSapp - Edit mash profile %1").arg(this->recno)); + } + + if (this->textIsChanged) { + txt.append((QString(" **"))); + } + setWindowTitle(txt); +} + + +void EditProfileMash::on_saveButton_clicked() +{ + QSqlQuery query; + + /* If there are errors in the form, show a message and do "return;" */ + if (ui->nameEdit->text().length() < 2) { + QMessageBox::warning(this, tr("Edit Mash"), tr("Name empty or too short.")); + return; + } + + if (this->textIsChanged) { + if (this->recno == -1) { + query.prepare("INSERT INTO profile_mash SET name=:name, notes=:notes, " + "uuid = :uuid"); + } else { + query.prepare("UPDATE profile_mash SET name=:name, notes=:notes " + "WHERE record = :recno"); + } + query.bindValue(":name", ui->nameEdit->text()); + query.bindValue(":notes", ui->notesEdit->toPlainText()); + + if (this->recno == -1) { + query.bindValue(":uuid", QUuid::createUuid().toString().mid(1, 36)); + } else { + query.bindValue(":recno", this->recno); + } + query.exec(); + if (query.lastError().isValid()) { + qDebug() << "EditProfileMash" << query.lastError(); + QMessageBox::warning(this, tr("Database error"), + tr("MySQL error: %1\n%2\n%3") + .arg(query.lastError().nativeErrorCode()) + .arg(query.lastError().driverText()) + .arg(query.lastError().databaseText())); + } else { + qDebug() << "EditProfileMash Saved"; + } + } + + ui->saveButton->setEnabled(false); + this->textIsChanged = false; + WindowTitle(); +} + + +void EditProfileMash::on_deleteButton_clicked() +{ + QSqlQuery query; + + query.prepare("DELETE FROM profile_water WHERE record = :recno"); + query.bindValue(":recno", this->recno); + query.exec(); + if (query.lastError().isValid()) { + qDebug() << "EditProfileMash" << query.lastError(); + QMessageBox::warning(this, tr("Database error"), + tr("MySQL error: %1\n%2\n%3") + .arg(query.lastError().nativeErrorCode()) + .arg(query.lastError().driverText()) + .arg(query.lastError().databaseText())); + } else { + qDebug() << "EditProfileMash Deleted" << this->recno; + } + + this->close(); + this->setResult(1); +} + + +void EditProfileMash::is_changed() +{ + ui->saveButton->setEnabled(true); + ui->deleteButton->setEnabled((this->recno >= 0) ? true:false); + this->textIsChanged = true; + WindowTitle(); +} + + +void EditProfileMash::cell_Changed(int nRow, int nCol) +{ + qDebug() << "Cell at row " + QString::number(nRow) + " column " + QString::number(nCol) + " was double clicked."; + + //ui->stepsTable->sortItems(2, Qt::AscendingOrder); // Sort on temp +} + + +void EditProfileMash::on_addButton_clicked() +{ + qDebug() << "Add cell"; +} + + +void EditProfileMash::on_deleteRow_clicked() +{ + qDebug() << "Delete row"; +} + + +void EditProfileMash::on_quitButton_clicked() +{ + if (this->textIsChanged) { + int rc = QMessageBox::warning(this, tr("Mash changed"), tr("The water has been modified\n Save changes?"), + QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Save); + switch (rc) { + case QMessageBox::Save: + on_saveButton_clicked(); + break; /* Saved and then Quit */ + case QMessageBox::Discard: + break; /* Quit without Save */ + case QMessageBox::Cancel: + return; /* Return to the editor page */ + } + } + + this->close(); + this->setResult(1); +} diff -r ddd1171ecda5 -r 29cf6e350063 src/EditProfileMash.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/EditProfileMash.h Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,41 @@ +#ifndef _EDITPROFILEMASH_H +#define _EDITPROFILEMASH_H + +#include +#include + +namespace Ui { +class EditProfileMash; +} + +class EditProfileMash : public QDialog +{ + Q_OBJECT + +signals: + void entry_changed(); + +public: + explicit EditProfileMash(int id, QWidget *parent = 0); + ~EditProfileMash(); + +private slots: + void on_saveButton_clicked(); + void on_quitButton_clicked(); + void on_deleteButton_clicked(); + void is_changed(); + void refreshTable(void); + void cell_Changed(int nRow, int nCol); + void on_addButton_clicked(); + void on_deleteRow_clicked(); + +private: + Ui::EditProfileMash *ui; + int recno; + bool textIsChanged = false; + QJsonDocument steps; + + void WindowTitle(); +}; + +#endif diff -r ddd1171ecda5 -r 29cf6e350063 src/MainWindow.cpp --- a/src/MainWindow.cpp Sun Mar 06 15:31:40 2022 +0100 +++ b/src/MainWindow.cpp Mon Mar 07 17:33:22 2022 +0100 @@ -24,6 +24,7 @@ #include "InventoryWaters.h" #include "InventoryEquipments.h" #include "ProfileWaters.h" +#include "ProfileMashs.h" #include "Setup.h" #include "../ui/ui_MainWindow.h" #include "config.h" @@ -202,6 +203,24 @@ } +void MainWindow::fromProfileMashs() +{ + qDebug() << Q_FUNC_INFO; + delete ProfileMashsWindow; + this->show(); +} + + +void MainWindow::on_actionMash_profiles_triggered() +{ + qDebug() << Q_FUNC_INFO; + ProfileMashsWindow = new ProfileMashs(this); + QObject::connect(ProfileMashsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileMashs())); + this->hide(); // Close the main window + ProfileMashsWindow->show(); // Show a second window +} + + void MainWindow::fromSetup() { qDebug() << Q_FUNC_INFO; diff -r ddd1171ecda5 -r 29cf6e350063 src/MainWindow.h --- a/src/MainWindow.h Sun Mar 06 15:31:40 2022 +0100 +++ b/src/MainWindow.h Mon Mar 07 17:33:22 2022 +0100 @@ -9,6 +9,7 @@ #include "InventoryWaters.h" #include "InventoryEquipments.h" #include "ProfileWaters.h" +#include "ProfileMashs.h" #include "Setup.h" #include @@ -38,6 +39,7 @@ void on_actionWaters_triggered(); void on_actionEquipments_triggered(); void on_actionWater_profiles_triggered(); + void on_actionMash_profiles_triggered(); void on_actionSetup_triggered(); void on_actionAbout_triggered(); @@ -50,6 +52,7 @@ void fromInventoryWaters(); void fromInventoryEquipments(); void fromProfileWaters(); + void fromProfileMashs(); void fromSetup(); private: @@ -63,7 +66,8 @@ InventoryMiscs *InventoryMiscsWindow; InventoryWaters *InventoryWatersWindow; InventoryEquipments *InventoryEquipmentsWindow; - ProfileWaters * ProfileWatersWindow; + ProfileWaters *ProfileWatersWindow; + ProfileMashs *ProfileMashsWindow; Setup *SetupWindow; }; diff -r ddd1171ecda5 -r 29cf6e350063 src/ProfileMashs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ProfileMashs.cpp Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,140 @@ +/** + * ProfileMashs.cpp is part of bmsapp. + * + * bmsapp is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * bmsapp is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include "ProfileMashs.h" +#include "EditProfileMash.h" +#include "../ui/ui_ProfileMashs.h" +#include "config.h" +#include "bmsapp.h" + + +ProfileMashs::ProfileMashs(QWidget *parent) : QDialog(parent), ui(new Ui::ProfileMashs) +{ + qDebug() << "ProfileMashs start"; + + ui->setupUi(this); + emit refreshTable(); + + setWindowTitle( QString("BMSapp - %1 - Profile Mashs").arg(VERSIONSTRING) ); +} + + +void ProfileMashs::refreshTable() +{ + QString w; + QWidget* pWidget; + QLabel *label; + QHBoxLayout* pLayout; + + qDebug() << "ProfileMashs reload"; + + QSqlQuery query("SELECT * FROM profile_mash ORDER BY name"); + const QStringList labels({tr("Name"), tr("Notes"), tr("Steps"), tr("Edit")}); + + ui->tableMashs->setColumnCount(4); + ui->tableMashs->setColumnWidth(0, 250); /* Name */ + ui->tableMashs->setColumnWidth(1, 675); /* Notes */ + ui->tableMashs->setColumnWidth(2, 75); /* Steps */ + ui->tableMashs->setColumnWidth(3, 80); /* Edit button */ + ui->tableMashs->setRowCount(query.size()); + ui->tableMashs->setHorizontalHeaderLabels(labels); + ui->tableMashs->verticalHeader()->hide(); + ui->tableMashs->setFixedSize(1080 + 24, 640); /* Even if this is too large, it works */ + + QTableWidgetItem *rightitem = new QTableWidgetItem(); + rightitem->setTextAlignment(Qt::AlignRight); + + query.first(); + for (int ridx = 0 ; ridx < query.size() ; ridx++ ) { + ui->tableMashs->setItem(ridx, 0, new QTableWidgetItem(query.value(1).toString())); /* Name */ + ui->tableMashs->setItem(ridx, 1, new QTableWidgetItem(query.value(2).toString())); /* Notes */ + + QJsonParseError parseError; + const auto& json = query.value(3).toString(); + + if (!json.trimmed().isEmpty()) { + const auto& formattedJson = QString("%1").arg(json); + const auto& doc = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError); + + if (parseError.error != QJsonParseError::NoError) + qDebug() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; + +// qDebug() << " ** " << doc << doc.isArray() << doc.array().size() ; + + w = QString("%1").arg(doc.array().size()); + QTableWidgetItem *item = new QTableWidgetItem(w); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + ui->tableMashs->setItem(ridx, 2, item); + } + + /* Add the Edit button */ + pWidget = new QWidget(); + QPushButton* btn_edit = new QPushButton(); + btn_edit->setObjectName(QString("%1").arg(query.value(0).toString())); /* Send record with the button */ + btn_edit->setText(tr("Edit")); + connect(btn_edit, SIGNAL(clicked()), this, SLOT(on_editButton_clicked())); + pLayout = new QHBoxLayout(pWidget); + pLayout->addWidget(btn_edit); + pLayout->setContentsMargins(5, 0, 5, 0); + pWidget->setLayout(pLayout); + ui->tableMashs->setCellWidget(ridx, 3, pWidget); + query.next(); + } + + setWindowTitle( QString("BMSapp - %1 - Profile Mashs").arg(VERSIONSTRING) ); +} + + +ProfileMashs::~ProfileMashs() +{ + qDebug() << "ProfileMashs done"; + delete ui; +} + + +void ProfileMashs::edit(int recno) +{ + qDebug() << "ProfileMashs edit:" << recno; + + EditProfileMash dialog(recno, this); + /* Signal from editor if a refresh is needed */ + connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable())); + dialog.setModal(true); + dialog.exec(); +} + + +void ProfileMashs::on_editButton_clicked() +{ + QPushButton *pb = qobject_cast(QObject::sender()); + int recno = pb->objectName().toInt(); + qDebug() << Q_FUNC_INFO << recno; + edit(recno); +} + + +void ProfileMashs::on_insertButton_clicked() +{ + qDebug() << Q_FUNC_INFO; + edit(-1); +} + + +void ProfileMashs::on_quitButton_clicked() +{ + emit firstWindow(); +} + diff -r ddd1171ecda5 -r 29cf6e350063 src/ProfileMashs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ProfileMashs.h Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,32 @@ +#ifndef _PROFILEMASHS_H +#define _PROFILEMASHS_H + +#include + +namespace Ui { +class ProfileMashs; +} + +class ProfileMashs : public QDialog +{ + Q_OBJECT + +public: + explicit ProfileMashs(QWidget *parent = nullptr); + ~ProfileMashs(); + +signals: + void firstWindow(); + +private slots: + void on_quitButton_clicked(); + void on_insertButton_clicked(); + void on_editButton_clicked(); + void refreshTable(void); + +private: + Ui::ProfileMashs *ui; + void edit(int recno); +}; + +#endif diff -r ddd1171ecda5 -r 29cf6e350063 src/bmsapp.h --- a/src/bmsapp.h Sun Mar 06 15:31:40 2022 +0100 +++ b/src/bmsapp.h Mon Mar 07 17:33:22 2022 +0100 @@ -27,10 +27,13 @@ #include #include #include - #include #include +#include +#include +#include + #include "Utils.h" #include "database/database.h" diff -r ddd1171ecda5 -r 29cf6e350063 ui/EditProfileMash.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/EditProfileMash.ui Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,227 @@ + + + EditProfileMash + + + + 0 + 0 + 1024 + 560 + + + + Dialog + + + + + + + + 10 + 10 + 91 + 20 + + + + Name: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 10 + 40 + 91 + 20 + + + + Notes: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 110 + 10 + 701 + 23 + + + + 128 + + + Name of the mash profile + + + + + + 110 + 40 + 791 + 81 + + + + Notes or this mash profile. + + + + + + 110 + 510 + 80 + 23 + + + + + 0 + 0 + + + + Quit + + + + :icons/silk/door_out.png:icons/silk/door_out.png + + + + + false + + + + 820 + 510 + 80 + 23 + + + + Save + + + + :icons/silk/disk.png:icons/silk/disk.png + + + + + false + + + + 463 + 510 + 80 + 23 + + + + Delete + + + + :icons/silk/delete.png:icons/silk/delete.png + + + + + + 110 + 160 + 791 + 321 + + + + + + + 10 + 160 + 91 + 20 + + + + Steps: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 10 + 130 + 91 + 20 + + + + Total time: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 110 + 130 + 91 + 23 + + + + + + + 820 + 130 + 80 + 23 + + + + Add step + + + + :/icons/silk/add.png:/icons/silk/add.png + + + + + + + + nameEdit + notesEdit + quitButton + deleteButton + saveButton + + + + + + diff -r ddd1171ecda5 -r 29cf6e350063 ui/MainWindow.ui --- a/ui/MainWindow.ui Sun Mar 06 15:31:40 2022 +0100 +++ b/ui/MainWindow.ui Mon Mar 07 17:33:22 2022 +0100 @@ -78,9 +78,9 @@ Settings - + - + @@ -300,9 +300,9 @@ Water profiles - + - false + true @@ -314,7 +314,7 @@ - false + true @@ -324,9 +324,9 @@ Beer styles - + - false + true diff -r ddd1171ecda5 -r 29cf6e350063 ui/ProfileMashs.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/ProfileMashs.ui Mon Mar 07 17:33:22 2022 +0100 @@ -0,0 +1,103 @@ + + + ProfileMashs + + + + 0 + 0 + 1280 + 640 + + + + Dialog + + + + + + true + + + + + + + true + + + false + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 80 + 24 + + + + Quit + + + + :icons/silk/door_out.png:icons/silk/door_out.png + + + + + + + + 0 + 0 + + + + + 80 + 24 + + + + New + + + + :icons/silk/table_row_insert.png:icons/silk/table_row_insert.png + + + + + + + + + + + + +