QCAD
Open Source 2D CAD
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
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:75
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RPropertyTypeId.h:57
QVariant value
Definition: RChangePropertyOperation.h:61
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RPropertyEvent.h:40
Transaction implementation.
Definition: RTransaction.h:70
virtual RTransaction apply(RDocument &document, bool preview=false) const =0
Applies this operation to selection in the given document.
RPropertyTypeId propertyTypeId
Definition: RChangePropertyOperation.h:60
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RChangePropertyOperation.h:41
All entities (for filters)
Definition: RS.h:76
virtual ~RChangePropertyOperation()
Definition: RChangePropertyOperation.h:54
Abstract base class for exporters.
Definition: RExporter.h:63