diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-21 15:20:09 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-21 15:20:09 -0400 |
commit | e41f68cc4576b8581466051319c94a1e840049c4 (patch) | |
tree | 60b72d0c5f36593d030730f5472141834c9956f2 /src-qt5/desktop-utils/lumina-pdf/Renderer.h | |
parent | Fix up the spacing/margins for the UI. (diff) | |
download | lumina-e41f68cc4576b8581466051319c94a1e840049c4.tar.gz lumina-e41f68cc4576b8581466051319c94a1e840049c4.tar.bz2 lumina-e41f68cc4576b8581466051319c94a1e840049c4.zip |
Added a bookmarks menu, enabled on the MuPDF side.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Renderer.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/Renderer.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 <QImage> #include <QDebug> #include <QJsonObject> -#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<Bookmark*> bookmarks; public: Renderer(); @@ -36,11 +38,14 @@ public: int hashSize(); QImage imageHash(int pagenum); int rotatedDegrees() { return degrees; } + QList<Bookmark*> getBookmarks() { return bookmarks; } //Main access functions bool loadDocument(QString path, QString password); void renderPage(int pagenum, QSize DPI, int degrees=0); QList<TextData*> 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 |