NCL Composer  0.1.5
 All Classes Functions Variables Pages
qnstremovecommand.h
1 #ifndef QNSTREMOVECOMMAND_H
2 #define QNSTREMOVECOMMAND_H
3 
4 #include <QUndoCommand>
5 
6 #include "qnstgraphicsentity.h"
7 #include "qnstview.h"
8 
9 class QnstView;
10 
11 class QnstRemoveCommand : public QUndoCommand
12 {
13 public:
15 
17 
18  virtual void undo();
19 
20  virtual void redo();
21 
22 private:
23  void copy(QnstGraphicsEntity* entity);
24 
25  void copy(QnstGraphicsEntity* entity, QnstGraphicsEntity* parent);
26 
27  void paste(QnstGraphicsEntity* entity, QnstGraphicsEntity* parent);
28 
29  bool ignore;
30 
31  QString parent;
32 
33  QnstView* view;
34 
35  QnstGraphicsEntity* entity;
36 };
37 
38 
39 #endif // QNSTREMOVECOMMAND_H