diff options
Diffstat (limited to 'printer.h')
-rw-r--r-- | printer.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -3,6 +3,11 @@ #include <QPrinter> #include <QWebView> +#include <QRect> +#include <QPainter> + +#include "profile/profilewidget2.h" +#include "printoptions.h" class Printer : public QObject { Q_OBJECT @@ -10,14 +15,18 @@ class Printer : public QObject { private: QPrinter *printer; QWebView *webView; - void render(); + print_options *printOptions; + QSize pageSize; int done; + int dpi; + void render(); + void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile); private slots: void templateProgessUpdated(int value); public: - Printer(QPrinter *printer); + Printer(QPrinter *printer, print_options *printOptions); void print(); signals: |