diff options
author | joe berner <stackyjoe@gmail.com> | 2018-12-18 10:59:15 -0600 |
---|---|---|
committer | joe berner <stackyjoe@gmail.com> | 2018-12-18 10:59:15 -0600 |
commit | e42bc7e16e6d9f813b5c712261dffbef6b1bddb2 (patch) | |
tree | 0c9e39d7e3f425691f854288a733b8d56c5f6ed3 /src-qt5/desktop-utils/lumina-pdf/link.h | |
parent | Merge pull request #640 from lumina-desktop/q5sys-patch-1 (diff) | |
download | lumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.tar.gz lumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.tar.bz2 lumina-e42bc7e16e6d9f813b5c712261dffbef6b1bddb2.zip |
Changes the UI interface so that only the current page is rendered on screen at a time. This has significant memory benefits for large PDF files. This also implements a least-recently used cache of tunable size, which improves responsiveness if you're hopping between two specific pages.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/link.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/link.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/link.h b/src-qt5/desktop-utils/lumina-pdf/link.h new file mode 100644 index 00000000..3f95ef88 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-pdf/link.h @@ -0,0 +1,20 @@ +#ifndef LUMINA_PDF_LINK_H +#define LUMINA_PDF_LINK_H + +namespace LuminaPDF { + +class Link { +public: + Link(TextData *_data, Poppler::Link *_link) : data(_data), link(_link) {} + ~Link() { delete data; } + + TextData *getData() { return data; } + Poppler::Link *getLink() { return link; } + +private: + TextData *data; + Poppler::Link *link; +}; + +} // namespace LuminaPDF +#endif // LUMINA_PDF_LINK_H |