diff options
Diffstat (limited to 'notebookview.h')
-rw-r--r-- | notebookview.h | 9 |
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; |