NCL Composer  0.1.5
 All Classes Functions Variables Pages
qnstchangecommand.h
1 #ifndef QNSTCHANGECOMMAND_H
2 #define QNSTCHANGECOMMAND_H
3 
4 #include <QUndoCommand>
5 #include <QMap>
6 
7 #include "qnstgraphicsentity.h"
8 #include "qnstview.h"
9 
10 class QnstView;
11 
12 class QnstChangeCommand : public QUndoCommand
13 {
14 public:
15  QnstChangeCommand(QnstView* view, QString uid,
16  const QMap<QString,QString> &properties);
17 
19 
20  virtual void undo();
21 
22  virtual void redo();
23 
24 private:
25  bool ignore;
26 
27  QString uid;
28 
29  QnstView* view;
30 
31  QMap<QString, QString> previous;
32 
33  QMap<QString, QString> next;
34 };
35 #endif // QNSTCHANGECOMMAND_H