diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-19 20:33:54 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-19 20:33:54 -0700 |
commit | 56d701dfff72bb4e59f23432c5b7d9c356132412 (patch) | |
tree | 6550cb8ef679944f40fd3f93f1f0046ac11523e0 /printer.h | |
parent | 56b82e0ecf58dd1f2b7585425dbdebbbbe5668a4 (diff) | |
parent | b039e1db8a4d8d745a455dd70b4434acffb5c1c4 (diff) | |
download | subsurface-56d701dfff72bb4e59f23432c5b7d9c356132412.tar.gz |
Merge branch 'custom-print' of https://github.com/neolit123/subsurface
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: |