From e41f68cc4576b8581466051319c94a1e840049c4 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Wed, 21 Mar 2018 15:20:09 -0400 Subject: Added a bookmarks menu, enabled on the MuPDF side. --- src-qt5/desktop-utils/lumina-pdf/Renderer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 index ab86724d..22548278 100644 --- a/src-qt5/desktop-utils/lumina-pdf/Renderer.h +++ b/src-qt5/desktop-utils/lumina-pdf/Renderer.h @@ -10,7 +10,8 @@ #include #include #include -#include "textData.h" +#include "TextData.h" +#include "Bookmark.h" class Renderer : public QObject { Q_OBJECT @@ -22,6 +23,7 @@ private: QString doctitle; QJsonObject jobj; int degrees; + QList bookmarks; public: Renderer(); @@ -36,11 +38,14 @@ public: int hashSize(); QImage imageHash(int pagenum); int rotatedDegrees() { return degrees; } + QList getBookmarks() { return bookmarks; } //Main access functions bool loadDocument(QString path, QString password); void renderPage(int pagenum, QSize DPI, int degrees=0); QList searchDocument(QString text, bool matchCase); + void traverseOutline(void *, int); + void handleLink(QString); void clearHash(); //Makes sure degrees is between 0 and 360 then rotates the matrix and @@ -56,6 +61,7 @@ signals: void PageLoaded(int); void OrigSize(QSizeF); void reloadPages(int); + void goToPosition(int, float, float); }; #endif -- cgit