diff options
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h new file mode 100644 index 000000000..e9129bff6 --- /dev/null +++ b/qt-ui/printlayout.h @@ -0,0 +1,29 @@ +#ifndef PRINTLAYOUT_H +#define PRINTLAYOUT_H + +#include <QPrinter> +#include <QPainter> +#include "../display.h" + +class PrintDialog; + +class PrintLayout : public QObject { + Q_OBJECT + +public: + PrintLayout(PrintDialog *, QPrinter *, struct options *); + void print(); + +private: + PrintDialog *dialog; + QPrinter *printer; + struct options *printOptions; + + QPainter painter; + + void printSixDives(); + void printTwoDives(); + void printTable(); +}; + +#endif |