Diffstat (limited to 'noncore/graphics/drawpad/page.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/page.h | 18 |
1 files changed, 16 insertions, 2 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 @@ -16,7 +16,9 @@ -#include <qpixmap.h> +#include <qobject.h> #include <qdatetime.h> +#include <qlist.h> +#include <qpixmap.h> -class Page : public QPixmap +class Page : public QObject { @@ -31,2 +33,3 @@ public: QDateTime lastModified() const; + QPixmap* pixmap() const; @@ -35,2 +38,9 @@ public: + bool undoEnabled(); + bool redoEnabled(); + + void backup(); + void undo(); + void redo(); + private: @@ -38,2 +48,6 @@ private: QDateTime m_lastModified; + QPixmap* m_pPixmap; + + QList<QPixmap> m_backHistory; + QList<QPixmap> m_forwardHistory; }; |