Sat, 11 Feb 2023 15:48:02 +0100
Monitor iSpindels: use global variables instead of repeated expensive MySQL calls. Use the yeast temperature ranges for the colors on the thermometer scale. Don't show SVG and ABV if the OG is not yet known. Turn statusfield red if offline. Extra mon_ispindles fields yeast_lo and yeast_hi. Need at least bmsd version 0.3.42. If a websocket message is received that cannot be parsed, show the whole received message.
#ifndef _INVENTORYYEASTPACKS_H #define _INVENTORYYEASTPACKS_H #include <QDialog> #include <QtWidgets/QGridLayout> #include <QtWidgets/QGroupBox> #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QHeaderView> #include <QtWidgets/QPushButton> #include <QtWidgets/QTableWidget> namespace Ui { class InventoryYeastPacks; } class InventoryYeastPacks : public QDialog { Q_OBJECT public: explicit InventoryYeastPacks(QWidget *parent = nullptr); ~InventoryYeastPacks(); signals: void setStatus(QString); private slots: void on_insertButton_clicked(); void on_editButton_clicked(); void on_exportButton_clicked(); void refreshTable(void); private: QGridLayout *gridLayout; QTableWidget *tableYeastPacks; QGroupBox *groupBox; QHBoxLayout *horizontalLayout; QPushButton *quitButton; QPushButton *exportButton; QPushButton *insertButton; void edit(int recno); }; #endif