From e49d6213ad129284a45d53c3fcdc03249e84efe2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 3 Sep 2015 14:20:19 -0300 Subject: Move qt-ui to desktop-widgets Since we have now destkop and mobile versions, 'qt-ui' was a very poor name choice for a folder that contains only destkop-enabled widgets. Also, move the graphicsview-common.h/cpp to subsurface-core because it doesn't depend on qgraphicsview, it merely implements all the colors that we use throughout Subsurface, and we will use colors on both desktop and mobile versions Same thing applies for metrics.h/cpp Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/printer.h | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 qt-ui/printer.h (limited to 'qt-ui/printer.h') diff --git a/qt-ui/printer.h b/qt-ui/printer.h deleted file mode 100644 index 979cacd6a..000000000 --- a/qt-ui/printer.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef PRINTER_H -#define PRINTER_H - -#include -#include -#include -#include - -#include "profile/profilewidget2.h" -#include "printoptions.h" -#include "templateedit.h" - -class Printer : public QObject { - Q_OBJECT - -public: - enum PrintMode { - PRINT, - PREVIEW - }; - -private: - QPaintDevice *paintDevice; - QWebView *webView; - print_options *printOptions; - template_options *templateOptions; - QSize pageSize; - PrintMode printMode; - int done; - int dpi; - void render(int Pages); - void flowRender(); - void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer profile); - -private slots: - void templateProgessUpdated(int value); - -public: - Printer(QPaintDevice *paintDevice, print_options *printOptions, template_options *templateOptions, PrintMode printMode); - ~Printer(); - void print(); - void previewOnePage(); - -signals: - void progessUpdated(int value); -}; - -#endif //PRINTER_H -- cgit v1.2.3-70-g09d2