diagram image: add undo/redo command and save/load to .qet file

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2498 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-09-09 13:29:28 +00:00
parent 17661b561a
commit 8e5f4762e8
5 changed files with 75 additions and 141 deletions

View File

@@ -561,4 +561,22 @@ class ChangeSeveralConductorsPropertiesCommand : public QUndoCommand {
/// track whether post-change properties were set
bool new_settings_set;
};
class ImageResizerCommand : public QUndoCommand {
//constructor and destructor
public:
ImageResizerCommand (DiagramImageItem *image, qreal &old_, qreal &new_, QUndoCommand *parent = 0);
virtual ~ImageResizerCommand();
//methods
public:
virtual void undo();
virtual void redo();
//attributes
private:
DiagramImageItem *image_;
qreal old_size, new_size;
};
#endif