summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/page.h
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/page.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/page.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/noncore/graphics/drawpad/page.h b/noncore/graphics/drawpad/page.h
index 20a37b5..8ce7bc9 100644
--- a/noncore/graphics/drawpad/page.h
+++ b/noncore/graphics/drawpad/page.h
@@ -11,31 +11,45 @@
11 * * 11 * *
12 ***************************************************************************/ 12 ***************************************************************************/
13 13
14#ifndef PAGE_H 14#ifndef PAGE_H
15#define PAGE_H 15#define PAGE_H
16 16
17#include <qpixmap.h> 17#include <qobject.h>
18 18
19#include <qdatetime.h> 19#include <qdatetime.h>
20#include <qlist.h>
21#include <qpixmap.h>
20 22
21class Page : public QPixmap 23class Page : public QObject
22{ 24{
23public: 25public:
24 Page(); 26 Page();
25 Page(QString title, int w, int h); 27 Page(QString title, int w, int h);
26 Page(QString title, const QSize& size); 28 Page(QString title, const QSize& size);
27 29
28 ~Page(); 30 ~Page();
29 31
30 QString title() const; 32 QString title() const;
31 QDateTime lastModified() const; 33 QDateTime lastModified() const;
34 QPixmap* pixmap() const;
32 35
33 void setTitle(QString title); 36 void setTitle(QString title);
34 void setLastModified(QDateTime lastModified); 37 void setLastModified(QDateTime lastModified);
35 38
39 bool undoEnabled();
40 bool redoEnabled();
41
42 void backup();
43 void undo();
44 void redo();
45
36private: 46private:
37 QString m_title; 47 QString m_title;
38 QDateTime m_lastModified; 48 QDateTime m_lastModified;
49 QPixmap* m_pPixmap;
50
51 QList<QPixmap> m_backHistory;
52 QList<QPixmap> m_forwardHistory;
39}; 53};
40 54
41#endif // PAGE_H 55#endif // PAGE_H