QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RChangePropertyOperation.h
Go to the documentation of this file.
1 #ifndef RCHANGEPROPERTYOPERATION_H
2 #define RCHANGEPROPERTYOPERATION_H
3 
4 #include <QVariant>
5 
6 #include "RDocument.h"
7 #include "RExporter.h"
8 #include "ROperation.h"
9 #include "RPropertyEvent.h"
10 #include "RPropertyTypeId.h"
11 #include "RTransaction.h"
12 
21 public:
24  const QVariant& value,
26  bool undoable = true
27  );
28 
30  const RPropertyEvent& event,
31  bool undoable = true);
32 
34 
35  virtual RTransaction apply(RDocument& document, bool preview = false) const;
36  virtual void preview(RDocument& document, RExporter& exporter) const;
37 
38 private:
40  QVariant value;
41 };
42 
44 
45 #endif