summaryrefslogtreecommitdiffstats
path: root/printer.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-06-17 17:05:14 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-06-19 21:41:58 +0300
commit554e64c43fc05d9c529a20263ccec46b6b6dc308 (patch)
tree67355c9bec5c6eb39dc5e4441e998800c94e6b8c /printer.h
parent75263e3d2cba649d03579ccfe7f31bcfefd67e8c (diff)
downloadsubsurface-554e64c43fc05d9c529a20263ccec46b6b6dc308.tar.gz
Printing: add support for printing on any page size
Make page size and orientation customizable. The user can select any page size and orientation and then the rendering resolution will be calculated based on the selected preferences and the printer DPI. The HTML templates must be responsive, also the font-size must be based on the viewport width so that we don't lose quality. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'printer.h')
-rw-r--r--printer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/printer.h b/printer.h
index 5bb6e4169..cba82e607 100644
--- a/printer.h
+++ b/printer.h
@@ -16,9 +16,11 @@ private:
QPrinter *printer;
QWebView *webView;
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);
- int done;
private slots:
void templateProgessUpdated(int value);