00001
00042 #ifndef AIUNDOVIEW_HPP
00043 #define AIUNDOVIEW_HPP
00044
00045 #include <QtGui>
00046
00047 #include "../aiundomodel/aiundomodel.hpp"
00048
00049 namespace AiFractals
00050 {
00057 class AiUndoView : public QListView
00058 {
00059 Q_OBJECT
00060
00061 public:
00066 AiUndoView( QWidget * parent = 0 );
00067
00072 void setUndoStack( QUndoStack * stack );
00073
00074 protected:
00075
00081 void currentChanged ( const QModelIndex & current, const QModelIndex & previous );
00082
00083 private:
00084
00088 AiUndoModel * m_undoModel;
00089 };
00090 }
00091
00092 #endif // AIUNDOVIEW_HPP