Les editions du cartouche sont desormais annulables

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@141 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-09-28 17:39:30 +00:00
parent 2c184a46da
commit 9bdbf3aea5
6 changed files with 129 additions and 14 deletions

View File

@@ -234,4 +234,30 @@ class ChangeConducerCommand : public QUndoCommand {
/// booleen pour ne pas executer le premier redo()
bool first_redo;
};
/**
Cette classe represente l'action de modifier les informations du cartouche d'un schema
*/
class ChangeInsetCommand : public QUndoCommand {
// constructeurs, destructeur
public:
ChangeInsetCommand(Diagram *, const InsetProperties &, const InsetProperties &, QUndoCommand * = 0);
virtual ~ChangeInsetCommand();
private:
ChangeInsetCommand(const ChangeInsetCommand &);
// methodes
public:
virtual void undo();
virtual void redo();
// attributs
private:
/// DiagramTextItem modifie
Diagram *diagram;
/// texte avant changement
InsetProperties old_inset;
/// texte apres changement
InsetProperties new_inset;
};
#endif