aboutsummaryrefslogtreecommitdiff
path: root/notebookview.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-13 04:24:21 +0200
committerJavier <dev.git@javispedro.com>2015-06-13 04:24:21 +0200
commit41f9a9b0563c3bd523bd534b854e50161a2626b3 (patch)
tree8c30aacdb80e26fd4202d345b30cab84ba437437 /notebookview.h
parent6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (diff)
downloadscribiu-41f9a9b0563c3bd523bd534b854e50161a2626b3.tar.gz
scribiu-41f9a9b0563c3bd523bd534b854e50161a2626b3.zip
continue with paperreplay loading changes
Diffstat (limited to 'notebookview.h')
-rw-r--r--notebookview.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/notebookview.h b/notebookview.h
index e51afa3..567d5cf 100644
--- a/notebookview.h
+++ b/notebookview.h
@@ -4,12 +4,14 @@
#include <QtGui/QGraphicsView>
#include <QtGui/QGraphicsItem>
#include "afdnotebook.h"
+#include "paperreplay.h"
#include "pageitem.h"
class NotebookView : public QGraphicsView
{
Q_OBJECT
Q_PROPERTY(QString notebook WRITE setNotebook READ notebook)
+ Q_PROPERTY(QString paperReplay WRITE setPaperReplay READ paperReplay)
Q_PROPERTY(QList<int> pageNumbers READ pageNumbers NOTIFY pageNumbersChanged)
Q_PROPERTY(int curPage READ curPage WRITE setCurPage NOTIFY curPageChanged)
Q_PROPERTY(int zoom READ zoom WRITE setZoom NOTIFY zoomChanged)
@@ -20,6 +22,9 @@ public:
void setNotebook(const QString &path);
QString notebook() const;
+ void setPaperReplay(const QString &path);
+ QString paperReplay() const;
+
QList<int> pageNumbers() const;
int curPage() const;
@@ -44,12 +49,14 @@ protected:
private:
void removePages();
- void createPages();
+ bool createPages();
void calculateScale();
private:
AfdNotebook *_nb;
+ PaperReplay *_replay;
QString _nbPath;
+ QString _replayPath;
QMap<int, PageItem*> _pages;
QSizeF _maxPageSize;
int _zoom;