Fri, 10 Feb 2023 17:28:46 +0100
ChartCarbonate saves the image path in the settings file. Conditional debug messages in a lot on monitor files. In Fermenter monitor details make the status background red if offline. A lot more generic variables instead of continuous expensive calls to MySQL. If fermenter values for the thermometers are not OK, then do not show anything.
#ifndef _PRINTERDIALOG_H #define _PRINTERDIALOG_H #include <QDialog> #include <QPrinter> #include <QPainter> enum JobType { PR_SUPPLIES, PR_YEASTBANK, PR_RECIPE, PR_PRODUCT, PR_CHECKLIST, PR_REP_TOTAL, PR_REP_EFF, PR_REP_SVG }; namespace Ui { class PrinterDialog; } class PrinterDialog : public QDialog { Q_OBJECT public: /** * @brief Construct a new Printer Dialog * @param parent */ explicit PrinterDialog(int job, int rec, QWidget *parent = 0); /** * @brief Destroy the Printer Dialog */ ~PrinterDialog(); public slots: void printDocument(QPrinter *printer); private: int p_job; int p_rec; void printHeader(QPainter *painter); QString strDensity(double density); QString strDiff(double v1, double v2, int decimals, QString suffix); void checkHeader(QPainter *painter, qreal *y, QString text); void checkLine(QPainter *painter, qreal *y, QString text); void checkInput(QPainter *painter, qreal *y, QString text, QString prompt); void messageInput(QPainter *painter, qreal *y, QString text, QString prompt); bool checkSplit(QPainter *painter, qreal *y, int moment); }; #endif