QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ROperation.h
Go to the documentation of this file.
1 #ifndef ROPERATION_H
2 #define ROPERATION_H
3 
4 #include "RS.h"
5 #include "RTransaction.h"
6 
7 class RDocument;
8 class RExporter;
9 
10 
11 
21 class ROperation {
22 public:
24  bool undoable=true,
27  virtual ~ROperation() {
28  }
29 
37  virtual RTransaction apply(RDocument& document, bool preview = false) const = 0;
38 
40  return entityTypeFilter;
41  }
42 
43 protected:
44  bool undoable;
46 };
47 
49 
50 #endif