mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
74f989bc46
commit
41bad7695e
6 changed files with 91 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue