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.
31 lines
609 B
31 lines
609 B
14 years ago
|
/*
|
||
|
* UBGraphicsTextItemUndoCommand.h
|
||
|
*
|
||
|
* Created on: July 7, 2009
|
||
|
* Author: Jerome
|
||
|
*/
|
||
|
|
||
|
#ifndef UBGRAPHICSTEXTITEMUNDOCOMMAND_H_
|
||
|
#define UBGRAPHICSTEXTITEMUNDOCOMMAND_H_
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
#include "UBGraphicsTextItem.h"
|
||
|
|
||
|
|
||
|
class UBGraphicsTextItemUndoCommand: public QUndoCommand
|
||
|
{
|
||
|
public:
|
||
|
UBGraphicsTextItemUndoCommand(UBGraphicsTextItem *textItem);
|
||
|
virtual ~UBGraphicsTextItemUndoCommand();
|
||
|
|
||
|
protected:
|
||
|
virtual void undo();
|
||
|
virtual void redo();
|
||
|
|
||
|
private:
|
||
|
QPointer<UBGraphicsTextItem> mTextItem;
|
||
|
};
|
||
|
|
||
|
#endif /* UBGRAPHICSTEXTITEMUNDOCOMMAND_H_ */
|