summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-05-30 13:14:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-04 10:07:55 -0700
commit1cff998f8412218fd2447f390eadf05b2ea9ae34 (patch)
tree4d9aa7b50b6c4b76132ebb75ce8645e22ac6e6ae /qt-ui/printlayout.h
parenta0b8eed61286d87e98e9344f11d65c5c3aa7d636 (diff)
downloadsubsurface-1cff998f8412218fd2447f390eadf05b2ea9ae34.tar.gz
Printing: Remove more obsolete code from printlayout
This code can be removed as we don't need QT printing code anymore. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r--qt-ui/printlayout.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h
deleted file mode 100644
index d8c730a50..000000000
--- a/qt-ui/printlayout.h
+++ /dev/null
@@ -1,49 +0,0 @@
-#ifndef PRINTLAYOUT_H
-#define PRINTLAYOUT_H
-
-#include <QObject>
-#include <QList>
-#include <QVector>
-#include <QRect>
-
-class QPrinter;
-class QTableView;
-class PrintDialog;
-class TablePrintModel;
-class ProfilePrintModel;
-struct dive;
-
-class PrintLayout : public QObject {
- Q_OBJECT
-
-public:
- PrintLayout(PrintDialog *, QPrinter *, struct print_options *);
- void print();
-
-private:
- PrintDialog *dialog;
- QPrinter *printer;
- struct print_options *printOptions;
-
- int screenDpiX, screenDpiY, printerDpi, pageW, pageH;
- QRect pageRect;
-
- QVector<QString> tablePrintColumnNames;
- unsigned int tablePrintHeadingBackground;
- QList<unsigned int> tablePrintColumnWidths;
- unsigned int profilePrintTableMaxH;
- QList<unsigned int> profilePrintColumnWidths, profilePrintRowHeights;
-
- void setup();
- int estimateTotalDives() const;
- void printProfileDives(int divesPerRow, int divesPerColumn);
- QTableView *createProfileTable(ProfilePrintModel *model, const int tableW, const qreal fitNotesToHeight = 0.0);
- void printTable();
- void addTablePrintDataRow(TablePrintModel *model, int row, struct dive *dive) const;
- void addTablePrintHeadingRow(TablePrintModel *model, int row) const;
-
-signals:
- void signalProgress(int);
-};
-
-#endif // PRINTLAYOUT_H