Diffstat (limited to 'noncore/graphics/drawpad/drawpadcanvas.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/noncore/graphics/drawpad/drawpadcanvas.h b/noncore/graphics/drawpad/drawpadcanvas.h index 2283e5e..80a2a7e 100644 --- a/noncore/graphics/drawpad/drawpadcanvas.h +++ b/noncore/graphics/drawpad/drawpadcanvas.h | |||
@@ -34,14 +34,12 @@ public: | |||
34 | void initialPage(); | 34 | void initialPage(); |
35 | void save(QIODevice* ioDevice); | 35 | void save(QIODevice* ioDevice); |
36 | 36 | ||
37 | void importPage(const QString& fileName); | 37 | void importPage(const QString& fileName); |
38 | void exportPage(uint fromPage, uint toPage, const QString& name, const QString& format); | 38 | void exportPage(uint fromPage, uint toPage, const QString& name, const QString& format); |
39 | 39 | ||
40 | bool undoEnabled(); | ||
41 | bool redoEnabled(); | ||
42 | bool goPreviousPageEnabled(); | 40 | bool goPreviousPageEnabled(); |
43 | bool goNextPageEnabled(); | 41 | bool goNextPageEnabled(); |
44 | 42 | ||
45 | Page* currentPage(); | 43 | Page* currentPage(); |
46 | QList<Page> pages(); | 44 | QList<Page> pages(); |
47 | uint pagePosition(); | 45 | uint pagePosition(); |
@@ -55,32 +53,30 @@ public slots: | |||
55 | void deleteAll(); | 53 | void deleteAll(); |
56 | void newPage(QString title, uint width, uint height, const QColor& color); | 54 | void newPage(QString title, uint width, uint height, const QColor& color); |
57 | void clearPage(); | 55 | void clearPage(); |
58 | void deletePage(); | 56 | void deletePage(); |
59 | void movePageUp(); | 57 | void movePageUp(); |
60 | void movePageDown(); | 58 | void movePageDown(); |
61 | 59 | ||
62 | void undo(); | 60 | void undo(); |
63 | void redo(); | 61 | void redo(); |
64 | 62 | ||
65 | void goFirstPage(); | 63 | void goFirstPage(); |
66 | void goPreviousPage(); | 64 | void goPreviousPage(); |
67 | void goNextPage(); | 65 | void goNextPage(); |
68 | void goLastPage(); | 66 | void goLastPage(); |
69 | 67 | ||
70 | signals: | 68 | signals: |
71 | void pagesChanged(); | 69 | void pagesChanged(); |
72 | void pageBackupsChanged(); | ||
73 | 70 | ||
74 | protected: | 71 | protected: |
75 | void contentsMousePressEvent(QMouseEvent* e); | 72 | void contentsMousePressEvent(QMouseEvent* e); |
76 | void contentsMouseReleaseEvent(QMouseEvent* e); | 73 | void contentsMouseReleaseEvent(QMouseEvent* e); |
77 | void contentsMouseMoveEvent(QMouseEvent* e); | 74 | void contentsMouseMoveEvent(QMouseEvent* e); |
78 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); | 75 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); |
79 | 76 | ||
80 | private: | 77 | private: |
81 | DrawPad* m_pDrawPad; | 78 | DrawPad* m_pDrawPad; |
82 | QList<Page> m_pages; | 79 | QList<Page> m_pages; |
83 | QList<Page> m_pageBackups; | ||
84 | }; | 80 | }; |
85 | 81 | ||
86 | #endif // DRAWPADCANVAS_H | 82 | #endif // DRAWPADCANVAS_H |