diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 15:34:57 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 15:34:57 +0300 |
commit | 41bad7695ee40571062a370610e6ca518295e3c7 (patch) | |
tree | 6c3d960f36440edb3e5532a84400811004853d0a /qt-ui/printdialog.h | |
parent | 74f989bc46a06c124283fa851a06dd093f817c96 (diff) | |
download | subsurface-41bad7695ee40571062a370610e6ca518295e3c7.tar.gz |
Print: add a class for print layouting
PrintLayout is a class that will handle the layouting part
of dive profiles, text, tables depending on the settings
of a QPrinter and the PrinterDialog and PrintOptions
instances.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printdialog.h')
-rw-r--r-- | qt-ui/printdialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/printdialog.h b/qt-ui/printdialog.h index b3dcfa826..b97a318c5 100644 --- a/qt-ui/printdialog.h +++ b/qt-ui/printdialog.h @@ -2,8 +2,10 @@ #define PRINTDIALOG_H #include <QDialog> +#include <QPrinter> #include "../display.h" #include "printoptions.h" +#include "printlayout.h" // should be based on a custom QPrintDialog class class PrintDialog : public QDialog { @@ -17,6 +19,8 @@ public: private: explicit PrintDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); PrintOptions *optionsWidget; + PrintLayout *printLayout; + QPrinter printer; private slots: void printClicked(); |