aboutsummaryrefslogtreecommitdiff
path: root/notebookview.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2020-09-12 02:21:04 +0200
committerJavier <dev.git@javispedro.com>2020-09-12 02:21:04 +0200
commitc2eca928c5a7be0444fcb5c41ffe77b557714575 (patch)
treeaf7d2ed9e2b018a4ea95329bb944853f41cf088f /notebookview.h
parent20de09ffbaa00ab3adf91e49b847eb0061315b1e (diff)
downloadscribiu-c2eca928c5a7be0444fcb5c41ffe77b557714575.tar.gz
scribiu-c2eca928c5a7be0444fcb5c41ffe77b557714575.zip
when zooming out, place pages on a grid layout
Diffstat (limited to 'notebookview.h')
-rw-r--r--notebookview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notebookview.h b/notebookview.h
index c9f5686..720a1a2 100644
--- a/notebookview.h
+++ b/notebookview.h
@@ -69,6 +69,7 @@ public slots:
void setZoom(int zoom);
void prevPage();
void nextPage();
+ void focusOnPage(int pageNum);
protected:
void resizeEvent(QResizeEvent *event);
@@ -78,6 +79,7 @@ private:
void removePages();
bool createPages();
void calculateScale();
+ void layoutPages();
private:
AfdNotebook *_nb;
@@ -86,6 +88,7 @@ private:
QString _replayPath;
QMap<int, PageItem*> _pages;
QSizeF _maxPageSize;
+ int _numColumns;
int _zoom;
int _curPage;
};