Sat, 02 Jul 2022 11:23:13 +0200
Added CO2 meter monitor detail screen.
CMakeLists.txt | file | annotate | diff | comparison | revisions | |
src/DetailCO2meter.cpp | file | annotate | diff | comparison | revisions | |
src/DetailCO2meter.h | file | annotate | diff | comparison | revisions | |
src/DetailFermenter.cpp | file | annotate | diff | comparison | revisions | |
src/DetailFermenter.h | file | annotate | diff | comparison | revisions | |
src/MonCO2meters.cpp | file | annotate | diff | comparison | revisions | |
src/MonCO2meters.h | file | annotate | diff | comparison | revisions | |
src/MonFermenters.cpp | file | annotate | diff | comparison | revisions | |
ui/DetailCO2meter.ui | file | annotate | diff | comparison | revisions |
--- a/CMakeLists.txt Fri Jul 01 22:57:31 2022 +0200 +++ b/CMakeLists.txt Sat Jul 02 11:23:13 2022 +0200 @@ -222,6 +222,7 @@ ${SRCDIR}/MonCO2meters.cpp ${SRCDIR}/MoniSpindels.cpp ${SRCDIR}/DetailFermenter.cpp + ${SRCDIR}/DetailCO2meter.cpp ${SRCDIR}/EditProduct.cpp ${SRCDIR}/ImportXML.cpp ${SRCDIR}/Setup.cpp @@ -279,6 +280,7 @@ ${SRCDIR}/MonCO2meters.h ${SRCDIR}/MoniSpindels.h ${SRCDIR}/DetailFermenter.h + ${SRCDIR}/DetailCO2meter.h ${SRCDIR}/EditProduct.h ${SRCDIR}/ImportXML.h ${SRCDIR}/Setup.h @@ -316,6 +318,7 @@ ${UIDIR}/EditRecipe.ui ${UIDIR}/EditProduct.ui ${UIDIR}/DetailFermenter.ui + ${UIDIR}/DetailCO2meter.ui ${UIDIR}/ImportXML.ui ${UIDIR}/MainWindow.ui )
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/DetailCO2meter.cpp Sat Jul 02 11:23:13 2022 +0200 @@ -0,0 +1,172 @@ +/** + * DetailCO2meter.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 <http://www.gnu.org/licenses/>. + */ +#include "DetailCO2meter.h" +#include "../ui/ui_DetailCO2meter.h" +#include "global.h" +#include "MainWindow.h" + + +/* + * Results are available via MySQL and websockets. Because we initialize using + * MySQL we only use that for the results and up to date status. + * Commands are send via websockets only. + */ + +DetailCO2meter::DetailCO2meter(int id, QWidget *parent) : QDialog(parent), ui(new Ui::DetailCO2meter) +{ + QSqlQuery query; + + qDebug() << "DetailCO2meter record:" << id; + ui->setupUi(this); + this->recno = id; + setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); + setWindowTitle(tr("BMSapp - Details Carbonation")); + + ui->thermoMeter->setMaximum(40.0); + ui->thermoMeter->setNominal(20.0); + ui->thermoMeter->setCritical(25.0); + ui->thermoMeter->setSuffix(QString("°C")); + + ui->barMeter->setMaximum(6.0); + ui->barMeter->setNominal(1.0); + ui->barMeter->setCritical(3.0); + ui->barMeter->setSuffix(QString(" bar")); + + ui->codePick->addItem("Free - Dummy"); // Will be replaced later + query.exec("SELECT code,name FROM products WHERE stage='1' OR stage='2' OR stage='3' OR stage='4' OR stage='5' OR stage='6' OR stage='7' ORDER BY code"); + while (query.next()) { + ui->codePick->addItem(query.value("code").toString()+" - "+query.value("name").toString()); + } + + connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailCO2meter::code_changed); + connect(parent, SIGNAL(updateCO2meter(QString)), this, SLOT(refreshCO2meter(QString))); + emit refreshTable(); +} + + +void DetailCO2meter::refreshTable() +{ + QSqlQuery query; + + qDebug() << "refreshTable co2meter rec:" << this->recno; + + query.prepare("SELECT * FROM mon_co2meters WHERE record = :recno"); + query.bindValue(":recno", this->recno); + query.exec(); + if (query.next()) { + + const QSignalBlocker blocker1(ui->codePick); + const QSignalBlocker blocker2(ui->modeEdit); + + _node = query.value("node").toString(); + _alias = query.value("alias").toString(); + _uuid = query.value("uuid").toString(); + _beercode = query.value("beercode").toString(); + _beername = query.value("beername").toString(); + + ui->uuidEdit->setText(_uuid); + ui->systemEdit->setText(_node+"/"+_alias); + ui->codePick->setItemText(0, _alias.toUpper()+" - "+_alias); + + if (query.value("online").toInt()) { + ui->statusEdit->setText(tr("Online")); + ui->codeEdit->setText(_beercode+" - "+_beername); + ui->modeEdit->setText(query.value("mode").toString()); + ui->modeEdit->show(); + if (query.value("mode").toString() == "OFF") { + ui->powerLED->setChecked(false); + ui->codePick->show(); + } else { + ui->powerLED->setChecked(true); + ui->codePick->hide(); + } + ui->alarmLED->setChecked((query.value("alarm").toInt() != 0) ? true:false); + + ui->thermoBox->show(); + if (query.value("temperature_state").toString() == "OK") { + ui->thermoMeter->setValue(query.value("temperature").toDouble()); + } + if (query.value("pressure_state").toString() == "OK") { + ui->barMeter->setValue(query.value("pressure_bar").toDouble()); + } + + } else { + /* Offline */ + ui->statusEdit->setText(tr("Offline")); + ui->powerLED->setChecked(false); + ui->alarmLED->setChecked(true); + ui->codePick->hide(); + ui->modeEdit->hide(); + ui->thermoBox->hide(); + ui->logButton->hide(); + } + } + +} + + +DetailCO2meter::~DetailCO2meter() +{ + qDebug() << "DetailCO2meter done"; + delete ui; + emit entry_changed(); +} + + +/* + * Receive signals destined for all co2meters. + * Check if the signal is for us. + */ +void DetailCO2meter::refreshCO2meter(QString data) +{ + if (_node+"/"+_alias == data) { + emit refreshTable(); + } +} + + +void DetailCO2meter::on_quitButton_clicked() +{ + this->close(); + this->setResult(1); +} + + +void DetailCO2meter::code_changed(int val) +{ + QJsonParseError parseError; + QSqlQuery query; + + QString msg = QString("{\"device\":\"co2meters\",\"node\":\"" + _node + "\",\"unit\":\"" + _alias + "\","); + if (val == 0) { + msg.append(QString("\"beeruuid\":\"") + _uuid + "\","); + msg.append(QString("\"beercode\":\"") + _alias.toUpper() + "\","); + msg.append(QString("\"beername\":\"") + _alias + "\"}"); + } else { + query.exec("SELECT code,name,uuid,stage,json_yeasts FROM products WHERE stage='1' OR stage='2' OR stage='3' OR stage='4' OR stage='5' OR stage='6' OR stage='7' ORDER BY code"); + for (int i = 0; i < val; i++) { + query.next(); + } + msg.append(QString("\"beeruuid\":\"") + query.value("uuid").toString() + "\","); + msg.append(QString("\"beercode\":\"") + query.value("code").toString() + "\","); + msg.append(QString("\"beername\":\"") + query.value("name").toString() + "\"}"); + } + + qDebug() << "code_changed" << val << msg; + webSocket->sendTextMessage(msg); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/DetailCO2meter.h Sat Jul 02 11:23:13 2022 +0200 @@ -0,0 +1,42 @@ +#ifndef _DETAILCO2METER_H +#define _DETAILCO2METER_H + +#include <QDialog> +#include <QDoubleSpinBox> +#include <QCheckBox> +#include <QComboBox> +#include <QRadioButton> +#include <QLineEdit> +#include <QDialogButtonBox> + + +namespace Ui { +class DetailCO2meter; +} + +class DetailCO2meter : public QDialog +{ + Q_OBJECT + +signals: + void entry_changed(); + +public: + explicit DetailCO2meter(int id, QWidget *parent = 0); + ~DetailCO2meter(); + +private slots: + void on_quitButton_clicked(); + void refreshTable(void); + void code_changed(int val); + +public slots: + void refreshCO2meter(QString); + +private: + Ui::DetailCO2meter *ui; + QString _node, _alias, _uuid, _beercode, _beername; + int recno; +}; + +#endif
--- a/src/DetailFermenter.cpp Fri Jul 01 22:57:31 2022 +0200 +++ b/src/DetailFermenter.cpp Sat Jul 02 11:23:13 2022 +0200 @@ -117,10 +117,11 @@ _node = query.value("node").toString(); _alias = query.value("alias").toString(); + _uuid = query.value("uuid").toString(); _beercode = query.value("beercode").toString(); _beername = query.value("beername").toString(); - ui->uuidEdit->setText(query.value("uuid").toString()); + ui->uuidEdit->setText(_uuid); ui->systemEdit->setText(_node+"/"+_alias); ui->codePick->setItemText(0, _alias.toUpper()+" - "+_alias); @@ -462,7 +463,7 @@ QString msg = QString("{\"device\":\"fermenters\",\"node\":\"" + _node + "\",\"unit\":\"" + _alias + "\","); if (val == 0) { - msg.append(QString("\"beeruuid\":\"66ecccbf-e942-4a35-af49-8b02314561a5\",")); + msg.append(QString("\"beeruuid\":\"") + _uuid + "\","); msg.append(QString("\"beercode\":\"") + _alias.toUpper() + "\","); msg.append(QString("\"beername\":\"") + _alias + "\","); msg.append(QString("\"yeast_lo\":12.0,"));
--- a/src/DetailFermenter.h Fri Jul 01 22:57:31 2022 +0200 +++ b/src/DetailFermenter.h Sat Jul 02 11:23:13 2022 +0200 @@ -45,7 +45,7 @@ private: Ui::DetailFermenter *ui; - QString _node, _alias, _profile, _beercode, _beername; + QString _node, _alias, _uuid, _profile, _beercode, _beername; int recno; double lo_set = 0, hi_set = 0; bool heat_state = false;
--- a/src/MonCO2meters.cpp Fri Jul 01 22:57:31 2022 +0200 +++ b/src/MonCO2meters.cpp Sat Jul 02 11:23:13 2022 +0200 @@ -15,7 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "MonCO2meters.h" -#include "EditSupplier.h" +#include "DetailCO2meter.h" #include "MainWindow.h" #include "config.h" @@ -73,16 +73,17 @@ qDebug() << "MonCO2meters reload"; QSqlQuery query("SELECT record,node,alias,online,mode,beercode,beername,temperature,pressure_bar FROM mon_co2meters ORDER BY node,alias"); - const QStringList labels({tr("Node"), tr("Unit"), tr("Status"), tr("Beer"), tr("Temperature"), tr("Pressure"), tr("Details")}); + const QStringList labels({tr("Node"), tr("Unit"), tr("Status"), tr("Mode"), tr("Beer"), tr("Temperature"), tr("Pressure"), tr("Details")}); - this->tableCO2meters->setColumnCount(7); + this->tableCO2meters->setColumnCount(8); this->tableCO2meters->setColumnWidth(0, 150); /* Node */ this->tableCO2meters->setColumnWidth(1, 100); /* Unit */ - this->tableCO2meters->setColumnWidth(2, 100); /* Status */ - this->tableCO2meters->setColumnWidth(3, 390); /* Beer */ - this->tableCO2meters->setColumnWidth(4, 100); /* Temperature */ - this->tableCO2meters->setColumnWidth(5, 100); /* Pressure */ - this->tableCO2meters->setColumnWidth(6, 90); /* Edit button */ + this->tableCO2meters->setColumnWidth(2, 80); /* Status */ + this->tableCO2meters->setColumnWidth(3, 80); /* Mode */ + this->tableCO2meters->setColumnWidth(4, 350); /* Beer */ + this->tableCO2meters->setColumnWidth(5, 90); /* Temperature */ + this->tableCO2meters->setColumnWidth(6, 90); /* Pressure */ + this->tableCO2meters->setColumnWidth(7, 90); /* Edit button */ this->tableCO2meters->setRowCount(query.size()); this->tableCO2meters->setHorizontalHeaderLabels(labels); this->tableCO2meters->verticalHeader()->hide(); @@ -102,23 +103,23 @@ item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); this->tableCO2meters->setItem(i, 2, item); - if (query.value("mode").toString() == "ON") { - item = new QTableWidgetItem(query.value("beercode").toString()+" - "+query.value("beername").toString()); - this->tableCO2meters->setItem(i, 3, item); - } else { - this->tableCO2meters->setItem(i, 3, new QTableWidgetItem(QString(""))); - } + item = new QTableWidgetItem(query.value("mode").toString()); + item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); + this->tableCO2meters->setItem(i, 3, item); + + item = new QTableWidgetItem(query.value("beercode").toString()+" - "+query.value("beername").toString()); + this->tableCO2meters->setItem(i, 4, item); if (query.value("online").toInt()) { item = new QTableWidgetItem(QString("%1°C").arg(query.value("temperature").toDouble(), 4, 'f', 3, '0')); item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); - this->tableCO2meters->setItem(i, 4, item); + this->tableCO2meters->setItem(i, 5, item); item = new QTableWidgetItem(QString("%1 bar").arg(query.value("pressure_bar").toDouble(), 3, 'f', 2, '0')); item->setTextAlignment(Qt::AlignCenter|Qt::AlignVCenter); - this->tableCO2meters->setItem(i, 5, item); + this->tableCO2meters->setItem(i, 6, item); } else { - this->tableCO2meters->setItem(i, 4, new QTableWidgetItem(QString(""))); this->tableCO2meters->setItem(i, 5, new QTableWidgetItem(QString(""))); + this->tableCO2meters->setItem(i, 6, new QTableWidgetItem(QString(""))); } /* Add the Edit button */ @@ -131,7 +132,7 @@ pLayout->addWidget(btn_edit); pLayout->setContentsMargins(5, 0, 5, 0); pWidget->setLayout(pLayout); - this->tableCO2meters->setCellWidget(i, 6, pWidget); + this->tableCO2meters->setCellWidget(i, 7, pWidget); query.next(); } emit setStatus(QString(tr("Total items: %1")).arg(query.size())); @@ -145,16 +146,15 @@ { qDebug() << "refreshCO2meters" << data; emit refreshTable(); + emit updateCO2meter(data); } void MonCO2meters::edit(int recno) { -// EditSupplier dialog(recno, this); - /* Signal from editor if a refresh is needed */ -// connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable())); -// dialog.setModal(true); -// dialog.exec(); + DetailCO2meter dialog(recno, this); + dialog.setModal(true); + dialog.exec(); }
--- a/src/MonCO2meters.h Fri Jul 01 22:57:31 2022 +0200 +++ b/src/MonCO2meters.h Sat Jul 02 11:23:13 2022 +0200 @@ -23,6 +23,7 @@ signals: void setStatus(QString); + void updateCO2meter(QString); private slots: void on_editButton_clicked();
--- a/src/MonFermenters.cpp Fri Jul 01 22:57:31 2022 +0200 +++ b/src/MonFermenters.cpp Sat Jul 02 11:23:13 2022 +0200 @@ -153,8 +153,6 @@ void MonFermenters::edit(int recno) { DetailFermenter dialog(recno, this); - /* Signal from editor if a refresh is needed */ -// connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable())); dialog.setModal(true); dialog.exec(); }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/DetailCO2meter.ui Sat Jul 02 11:23:13 2022 +0200 @@ -0,0 +1,496 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>DetailCO2meter</class> + <widget class="QDialog" name="DetailCO2meter"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1024</width> + <height>560</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QWidget" name="topWidget" native="true"> + <widget class="QGroupBox" name="powerBox"> + <property name="geometry"> + <rect> + <x>740</x> + <y>0</y> + <width>261</width> + <height>121</height> + </rect> + </property> + <widget class="QLabel" name="powerLabel"> + <property name="geometry"> + <rect> + <x>190</x> + <y>70</y> + <width>61</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Power</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QLabel" name="alarmLabel"> + <property name="geometry"> + <rect> + <x>130</x> + <y>70</y> + <width>61</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Alarm</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="Led" name="powerLED"> + <property name="geometry"> + <rect> + <x>210</x> + <y>40</y> + <width>20</width> + <height>20</height> + </rect> + </property> + <property name="toolTip"> + <string>Color Led component</string> + </property> + <property name="whatsThis"> + <string>Led indicator</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + <property name="color"> + <color> + <red>28</red> + <green>113</green> + <blue>216</blue> + </color> + </property> + </widget> + <widget class="Led" name="alarmLED"> + <property name="geometry"> + <rect> + <x>150</x> + <y>40</y> + <width>20</width> + <height>20</height> + </rect> + </property> + <property name="toolTip"> + <string>Color Led component</string> + </property> + <property name="whatsThis"> + <string>Led indicator</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </widget> + <widget class="QGroupBox" name="controlBox"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>721</width> + <height>231</height> + </rect> + </property> + <widget class="QLabel" name="uuidLabel"> + <property name="geometry"> + <rect> + <x>10</x> + <y>60</y> + <width>141</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Uuid:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLabel" name="systemLabel"> + <property name="geometry"> + <rect> + <x>10</x> + <y>90</y> + <width>141</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>System and unit:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLabel" name="codeLabel"> + <property name="geometry"> + <rect> + <x>10</x> + <y>150</y> + <width>141</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Code and beer:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLabel" name="modeLabel"> + <property name="geometry"> + <rect> + <x>10</x> + <y>180</y> + <width>141</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Working mode:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLabel" name="boxLabel"> + <property name="geometry"> + <rect> + <x>15</x> + <y>20</y> + <width>691</width> + <height>25</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Carbonation Pressure overview</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QLineEdit" name="uuidEdit"> + <property name="geometry"> + <rect> + <x>160</x> + <y>60</y> + <width>271</width> + <height>23</height> + </rect> + </property> + <property name="frame"> + <bool>true</bool> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLineEdit" name="systemEdit"> + <property name="geometry"> + <rect> + <x>160</x> + <y>90</y> + <width>181</width> + <height>23</height> + </rect> + </property> + <property name="frame"> + <bool>true</bool> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLineEdit" name="statusEdit"> + <property name="geometry"> + <rect> + <x>160</x> + <y>120</y> + <width>111</width> + <height>23</height> + </rect> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLineEdit" name="codeEdit"> + <property name="geometry"> + <rect> + <x>160</x> + <y>150</y> + <width>381</width> + <height>23</height> + </rect> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QComboBox" name="codePick"> + <property name="geometry"> + <rect> + <x>560</x> + <y>150</y> + <width>141</width> + <height>23</height> + </rect> + </property> + <property name="sizeAdjustPolicy"> + <enum>QComboBox::AdjustToContentsOnFirstShow</enum> + </property> + </widget> + <widget class="QLabel" name="statusLabel"> + <property name="geometry"> + <rect> + <x>10</x> + <y>120</y> + <width>141</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Current status:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLineEdit" name="modeEdit"> + <property name="geometry"> + <rect> + <x>160</x> + <y>180</y> + <width>111</width> + <height>23</height> + </rect> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </widget> + <widget class="QGroupBox" name="thermoBox"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>240</y> + <width>721</width> + <height>291</height> + </rect> + </property> + <widget class="QLabel" name="thermoLabel"> + <property name="geometry"> + <rect> + <x>160</x> + <y>260</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Temperature</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="QLabel" name="barLabel"> + <property name="geometry"> + <rect> + <x>490</x> + <y>260</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Pressure</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + <widget class="ManoMeter" name="barMeter"> + <property name="geometry"> + <rect> + <x>400</x> + <y>10</y> + <width>251</width> + <height>251</height> + </rect> + </property> + <property name="toolTip"> + <string>Shows the beer temperature</string> + </property> + <property name="valueFont"> + <font> + <pointsize>18</pointsize> + </font> + </property> + <property name="digitFont"> + <font> + <pointsize>14</pointsize> + </font> + </property> + <property name="digitOffset"> + <double>110.000000000000000</double> + </property> + </widget> + <widget class="ManoMeter" name="thermoMeter"> + <property name="geometry"> + <rect> + <x>70</x> + <y>10</y> + <width>251</width> + <height>251</height> + </rect> + </property> + <property name="toolTip"> + <string>Shows the air temperature</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="valueFont"> + <font> + <pointsize>18</pointsize> + </font> + </property> + <property name="digitFont"> + <font> + <pointsize>14</pointsize> + </font> + </property> + <property name="digitOffset"> + <double>110.000000000000000</double> + </property> + </widget> + </widget> + <widget class="QGroupBox" name="tempsetBox"> + <property name="geometry"> + <rect> + <x>740</x> + <y>130</y> + <width>261</width> + <height>101</height> + </rect> + </property> + </widget> + <widget class="QGroupBox" name="switchBox"> + <property name="geometry"> + <rect> + <x>740</x> + <y>240</y> + <width>261</width> + <height>121</height> + </rect> + </property> + </widget> + <widget class="QGroupBox" name="buttonBox"> + <property name="geometry"> + <rect> + <x>740</x> + <y>430</y> + <width>261</width> + <height>101</height> + </rect> + </property> + <widget class="QPushButton" name="quitButton"> + <property name="geometry"> + <rect> + <x>90</x> + <y>60</y> + <width>80</width> + <height>23</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Quit</string> + </property> + <property name="icon"> + <iconset> + <normaloff>:icons/silk/door_out.png</normaloff>:icons/silk/door_out.png</iconset> + </property> + </widget> + <widget class="QPushButton" name="logButton"> + <property name="geometry"> + <rect> + <x>90</x> + <y>20</y> + <width>80</width> + <height>23</height> + </rect> + </property> + <property name="text"> + <string>Log</string> + </property> + <property name="icon"> + <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> + <normaloff>:/icons/silk/chart_line.png</normaloff>:/icons/silk/chart_line.png</iconset> + </property> + </widget> + </widget> + </widget> + </item> + </layout> + </widget> + <customwidgets> + <customwidget> + <class>Led</class> + <extends>QWidget</extends> + <header>analog/led.h</header> + </customwidget> + <customwidget> + <class>ManoMeter</class> + <extends>QWidget</extends> + <header>analog/manometer.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>quitButton</tabstop> + </tabstops> + <resources> + <include location="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"/> + </resources> + <connections/> +</ui>