diff -r 355100088e1f -r ff7b3a41c9b5 src/PrinterDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/PrinterDialog.h Sun Mar 13 22:56:22 2022 +0100 @@ -0,0 +1,42 @@ +#ifndef _PRINTERDIALOG_H +#define _PRINTERDIALOG_H + +#include +#include +#include + + +enum JobType { PR_SUPPLIES, PR_YEASTBANK }; + +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 title); +}; + +#endif