summaryrefslogtreecommitdiffstats
path: root/printer.h
diff options
context:
space:
mode:
Diffstat (limited to 'printer.h')
-rw-r--r--printer.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/printer.h b/printer.h
index 1974d46c1..cba82e607 100644
--- a/printer.h
+++ b/printer.h
@@ -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: