Add full support for double page suppression and double page page inversion

This commit is contained in:
Felix Kauselmann
2014-10-31 16:02:01 +01:00
parent ebdea13900
commit 9c022fb2f1
3 changed files with 290 additions and 222 deletions

View File

@ -95,7 +95,7 @@ signals:
// RENDER
//-----------------------------------------------------------------------------
class DoublePageRender : public PageRender
/*class DoublePageRender : public PageRender
{
Q_OBJECT
public:
@ -113,7 +113,7 @@ signals:
void pageReady(int);
};
*/
class Render : public QObject {
Q_OBJECT
@ -124,6 +124,11 @@ public:
public slots:
void render();
QPixmap * getCurrentPage();
QPixmap * getCurrentDoublePage();
QPixmap * getCurrentDoubleMangaPage();
bool currentPageIsDoublePage();
bool nextPageIsDoublePage();
bool previousPageIsDoublePage();
void goTo(int index);
void doublePageSwitch();
void doubleMangaPageSwitch();
@ -136,6 +141,8 @@ public slots:
//--comic interface
void nextPage();
void previousPage();
void nextDoublePage();
void previousDoublePage();
void load(const QString & path, const ComicDB & comic);
void load(const QString & path, int atPage);
void createComic(const QString & path);
@ -149,7 +156,6 @@ public slots:
bool hasLoadedComic();
void updateBuffer();
void fillBuffer();
void fillBufferDoublePage();
void invalidate();
QString getCurrentPagesInformation();
void setBookmark();
@ -203,8 +209,6 @@ private:
QMutex mutex;
friend class PageRender;
friend class DoublePageRender;
};