Les pivotements d'elements sont desormais annulables

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@139 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-09-27 15:36:15 +00:00
parent bc650ea347
commit 27e8ced638
6 changed files with 75 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
#ifndef DIAGRAM_COMMANDS_H
#define DIAGRAM_COMMANDS_H
#include "qet.h"
#include "diagram.h"
#include "diagramtextitem.h"
#include <QtGui>
@@ -183,4 +184,26 @@ class ChangeDiagramTextCommand : public QUndoCommand {
bool first_redo;
};
/**
Cette classe represente l'action de pivoter plusieurs elements
*/
class RotateElementsCommand : public QUndoCommand {
// constructeurs, destructeur
public:
RotateElementsCommand(const QHash<Element *, QET::Orientation> &elements, QUndoCommand * = 0);
virtual ~RotateElementsCommand();
private:
RotateElementsCommand(const RotateElementsCommand &);
// methodes
public:
virtual void undo();
virtual void redo();
// attributs
private:
/// texte avant changement
QHash<Element *, QET::Orientation> elements_to_rotate;
};
#endif