src/PrinterDialog.h

Sun, 24 Apr 2022 14:15:20 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 24 Apr 2022 14:15:20 +0200
changeset 158
24bc2de721d9
parent 53
d36879f13d32
child 237
f1032191578b
permissions
-rw-r--r--

Activated print recipe button. The recipe record structure is now global. Added global product record structure.

#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