You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
805 B
38 lines
805 B
14 years ago
|
/*
|
||
|
* UBDocumentUndoCommand.h
|
||
|
*
|
||
|
* Created on: Sep 19, 2008
|
||
|
* Author: luc
|
||
|
*/
|
||
|
|
||
|
#ifndef UBDOCUMENTUNDOCOMMAND_H_
|
||
|
#define UBDOCUMENTUNDOCOMMAND_H_
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
class UBDocumentProxy;
|
||
|
class UBGraphicsScene;
|
||
|
|
||
|
|
||
|
class UBDocumentUndoCommand: public QUndoCommand
|
||
|
{
|
||
|
public:
|
||
|
UBDocumentUndoCommand(UBDocumentProxy* pDocument, const QList<UBGraphicsScene*>& pOldScenes,
|
||
|
const QList<UBGraphicsScene*>& pNewScenes, const int& pActiveSceneIndex);
|
||
|
virtual ~UBDocumentUndoCommand();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual void undo();
|
||
|
virtual void redo();
|
||
|
|
||
|
private:
|
||
|
|
||
|
UBDocumentProxy* mDocument;
|
||
|
QList<UBGraphicsScene*> mUndoScenes;
|
||
|
QList<UBGraphicsScene*> mRedoScenes;
|
||
|
int mActiveSceneIndex;
|
||
|
};
|
||
|
|
||
|
#endif /* UBDOCUMENTUNDOCOMMAND_H_ */
|