From 8d5f1e04d7e4f24a4026804d62abe64883419bf2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 3 Apr 2019 15:21:17 -0400 Subject: Remove lumina-calculator and lumina-pdf from the lumina repo. They have their own repos now (https://github.com/lumina-desktop/lumina-[pdf/calculator]) --- src-qt5/desktop-utils/lumina-pdf/Renderer.h | 81 ----------------------------- 1 file changed, 81 deletions(-) delete mode 100644 src-qt5/desktop-utils/lumina-pdf/Renderer.h (limited to 'src-qt5/desktop-utils/lumina-pdf/Renderer.h') diff --git a/src-qt5/desktop-utils/lumina-pdf/Renderer.h b/src-qt5/desktop-utils/lumina-pdf/Renderer.h deleted file mode 100644 index 3b3fa3c7..00000000 --- a/src-qt5/desktop-utils/lumina-pdf/Renderer.h +++ /dev/null @@ -1,81 +0,0 @@ -// ================================ // Simple abstraction class between backend -// renderers -// ================================ -// Written by Ken Moore: Feb 26, 2018 -// Available under the 3-Clause BSD License -// ================================ -#ifndef _LUMINA_PDF_BACKEND_RENDERER_H -#define _LUMINA_PDF_BACKEND_RENDERER_H - -#include "Annotation.h" -#include "Bookmark.h" -#include "TextData.h" -#include "Widget.h" -#include -#include -#include -#include -#include -#include - -class Renderer : public QObject { - Q_OBJECT - -private: - int pnum; // number of pages - set on loading document - bool needpass; - QString docpath; // save the path for the currently-loaded document - QString doctitle; - QJsonObject jobj; - int degrees; - QList bookmarks; - -public: - Renderer(); - ~Renderer(); - bool loadMultiThread(); - - // Information functions (usually needs to be loaded first) - virtual int numPages() { return pnum; } - virtual bool needPassword() { return needpass; } - virtual QString title() { return doctitle; } - virtual QJsonObject properties() { return jobj; } - virtual int hashSize(); - virtual QImage imageHash(int pagenum); - virtual QSize imageSize(int pagenum); - virtual int rotatedDegrees() { return degrees; } - virtual QList getBookmarks() { return bookmarks; } - - // Main access functions - virtual bool loadDocument(QString path, QString password); - virtual void renderPage(int pagenum, QSize DPI, int degrees = 0); - virtual QList searchDocument(QString text, bool matchCase); - virtual void traverseOutline(void *, int); - virtual void handleLink(QWidget *, QString); - virtual TextData *linkList(int, int); - virtual int linkSize(int); - virtual Annotation *annotList(int, int); - virtual int annotSize(int); - virtual Widget *widgetList(int, int); - virtual int widgetSize(int); - - virtual void clearHash(int pagenum = -1); - // Makes sure degrees is between 0 and 360 then rotates the matrix and - void setDegrees(int degrees) { - // Mods by 360, but adds and remods because of how C++ treats negative mods - this->degrees = (((this->degrees + degrees) % 360) + 360) % 360; - emit reloadPages(this->degrees); - } - - virtual bool isDoneLoading(int page); - virtual bool supportsExtraFeatures(); - -signals: - void PageLoaded(int); - void SetProgress(int); - void OrigSize(QSizeF); - void reloadPages(int); - void goToPosition(int, float, float); -}; - -#endif -- cgit