src/PrinterDialog.h

Mon, 02 May 2022 11:48:12 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 02 May 2022 11:48:12 +0200
changeset 186
96e239584db5
parent 158
24bc2de721d9
child 237
f1032191578b
permissions
-rw-r--r--

Created the tab fermentation.

#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