summaryrefslogtreecommitdiffstats
path: root/printer.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-19 20:33:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-19 20:33:54 -0700
commit56d701dfff72bb4e59f23432c5b7d9c356132412 (patch)
tree6550cb8ef679944f40fd3f93f1f0046ac11523e0 /printer.h
parent56b82e0ecf58dd1f2b7585425dbdebbbbe5668a4 (diff)
parentb039e1db8a4d8d745a455dd70b4434acffb5c1c4 (diff)
downloadsubsurface-56d701dfff72bb4e59f23432c5b7d9c356132412.tar.gz
Merge branch 'custom-print' of https://github.com/neolit123/subsurface
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: