src/PrinterDialog.h

Thu, 05 May 2022 17:20:06 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 05 May 2022 17:20:06 +0200
changeset 195
9887278c4fbe
parent 158
24bc2de721d9
child 237
f1032191578b
permissions
-rw-r--r--

The framework to calculate yeast starters added.

#ifndef	_PRINTERDIALOG_H
#define	_PRINTERDIALOG_H

#include <QDialog>
#include <QPrinter>
#include <QPainter>


enum JobType { PR_SUPPLIES, PR_YEASTBANK, PR_RECIPE };

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);
};

#endif

mercurial