diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 17:39:09 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 17:39:09 -0400 |
commit | d585d64718941d54b004daa0ece491783ef78ad8 (patch) | |
tree | df70886b64fad4a22d3243c93806524ecadbcead /src-qt5/desktop-utils/lumina-pdf/Renderer.h | |
parent | Overhaul of MuPDF rendering. Fixed bugs and improved the find highlight syste... (diff) | |
download | lumina-d585d64718941d54b004daa0ece491783ef78ad8.tar.gz lumina-d585d64718941d54b004daa0ece491783ef78ad8.tar.bz2 lumina-d585d64718941d54b004daa0ece491783ef78ad8.zip |
Replaced tabs with spaces and removed some unneeded comments
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Renderer.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/Renderer.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/Renderer.h b/src-qt5/desktop-utils/lumina-pdf/Renderer.h index 60db25ef..b983d14b 100644 --- a/src-qt5/desktop-utils/lumina-pdf/Renderer.h +++ b/src-qt5/desktop-utils/lumina-pdf/Renderer.h @@ -17,36 +17,36 @@ 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 pnum; //number of pages - set on loading document + bool needpass; + QString docpath; //save the path for the currently-loaded document + QString doctitle; + QJsonObject jobj; public: - Renderer(); - ~Renderer(); - bool loadMultiThread(); - - //Information functions (usually needs to be loaded first) - int numPages(){ return pnum; } - bool needPassword(){ return needpass; } - QString title(){ return doctitle; } - QJsonObject properties() { return jobj; } - - //Main access functions - bool loadDocument(QString path, QString password); - void renderPage(int pagenum, QSize DPI); - QList<TextData*> searchDocument(QString text, bool matchCase); - void cleanup(); - - QImage imageHash(int pagenum); - int hashSize(); - void clearHash(); + Renderer(); + ~Renderer(); + bool loadMultiThread(); + + //Information functions (usually needs to be loaded first) + int numPages(){ return pnum; } + bool needPassword(){ return needpass; } + QString title(){ return doctitle; } + QJsonObject properties() { return jobj; } + + //Main access functions + bool loadDocument(QString path, QString password); + void renderPage(int pagenum, QSize DPI); + QList<TextData*> searchDocument(QString text, bool matchCase); + void cleanup(); + + QImage imageHash(int pagenum); + int hashSize(); + void clearHash(); signals: - void PageLoaded(int); - void OrigSize(QSizeF); + void PageLoaded(int); + void OrigSize(QSizeF); }; #endif |