00001
00002
00003
00004
00005
00006
00007 #ifndef CMD_STACK_SHADOW_H
00008 #define CMD_STACK_SHADOW_H
00009
00010 #include <QList>
00011 #include <QObject>
00012
00013 class CmdAbstract;
00014 class Document;
00015 class MainWindow;
00016 class QXmlStreamReader;
00017
00018 typedef QList<CmdAbstract*> CmdListInternal;
00019
00030 class CmdStackShadow : public QObject
00031 {
00032 Q_OBJECT;
00033
00034 public:
00036 CmdStackShadow();
00037
00039 bool canRedo () const;
00040
00042 void loadCommands (MainWindow &mainWindow,
00043 Document &document,
00044 QXmlStreamReader &reader);
00045
00046 public slots:
00048 void slotRedo ();
00049
00051 void slotUndo ();
00052
00053 signals:
00055 void signalRedo();
00056
00058 void signalUndo();
00059
00060 private:
00061
00062 MainWindow *m_mainWindow;
00063
00064 CmdListInternal m_cmdList;
00065 };
00066
00067 #endif // CMDSTACKSHADOW_H