Diffstat (limited to 'noncore/graphics/drawpad/drawpadcanvas.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/drawpadcanvas.h b/noncore/graphics/drawpad/drawpadcanvas.h index 2ec9298..eddcb43 100644 --- a/noncore/graphics/drawpad/drawpadcanvas.h +++ b/noncore/graphics/drawpad/drawpadcanvas.h | |||
@@ -34,6 +34,8 @@ public: | |||
34 | void load(QIODevice* ioDevice); | 34 | void load(QIODevice* ioDevice); |
35 | void save(QIODevice* ioDevice); | 35 | void save(QIODevice* ioDevice); |
36 | 36 | ||
37 | bool undoEnabled(); | ||
38 | bool redoEnabled(); | ||
37 | bool goPreviousPageEnabled(); | 39 | bool goPreviousPageEnabled(); |
38 | bool goNextPageEnabled(); | 40 | bool goNextPageEnabled(); |
39 | 41 | ||
@@ -45,11 +47,18 @@ public slots: | |||
45 | void clearPage(); | 47 | void clearPage(); |
46 | void deletePage(); | 48 | void deletePage(); |
47 | 49 | ||
50 | void undo(); | ||
51 | void redo(); | ||
52 | |||
48 | void goFirstPage(); | 53 | void goFirstPage(); |
49 | void goPreviousPage(); | 54 | void goPreviousPage(); |
50 | void goNextPage(); | 55 | void goNextPage(); |
51 | void goLastPage(); | 56 | void goLastPage(); |
52 | 57 | ||
58 | signals: | ||
59 | void pagesChanged(); | ||
60 | void pageBackupsChanged(); | ||
61 | |||
53 | protected: | 62 | protected: |
54 | void mousePressEvent(QMouseEvent* e); | 63 | void mousePressEvent(QMouseEvent* e); |
55 | void mouseReleaseEvent(QMouseEvent* e); | 64 | void mouseReleaseEvent(QMouseEvent* e); |
@@ -59,7 +68,8 @@ protected: | |||
59 | 68 | ||
60 | private: | 69 | private: |
61 | DrawPad* m_pDrawPad; | 70 | DrawPad* m_pDrawPad; |
62 | QList<QPixmap> m_buffers; | 71 | QList<QPixmap> m_pages; |
72 | QList<QPixmap> m_pageBackups; | ||
63 | }; | 73 | }; |
64 | 74 | ||
65 | #endif // DRAWPADCANVAS_H | 75 | #endif // DRAWPADCANVAS_H |