QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RChangePropertyOperation.h
Go to the documentation of this file.
1 
20 #ifndef RCHANGEPROPERTYOPERATION_H
21 #define RCHANGEPROPERTYOPERATION_H
22 
23 #include "operations_global.h"
24 
25 #include <QVariant>
26 
27 #include "RDocument.h"
28 #include "RExporter.h"
29 #include "ROperation.h"
30 #include "RPropertyEvent.h"
31 #include "RPropertyTypeId.h"
32 #include "RTransaction.h"
33 
42 public:
44  const RPropertyTypeId& propertyTypeId,
45  const QVariant& value,
46  RS::EntityType entityTypeFilter = RS::EntityAll,
47  bool undoable = true
48  );
49 
51  const RPropertyEvent& event,
52  bool undoable = true);
53 
55 
56  virtual RTransaction apply(RDocument& document, bool preview = false) const;
57  virtual void preview(RDocument& document, RExporter& exporter) const;
58 
59 private:
61  QVariant value;
62 };
63 
65 
66 #endif