QCAD
Open Source 2D CAD
RCopyOperation.h
Go to the documentation of this file.
1 
20 #ifndef RCOPYOPERATION_H
21 #define RCOPYOPERATION_H
22 
23 #include "operations_global.h"
24 
25 #include "RDocument.h"
26 #include "REntity.h"
27 #include "RExporter.h"
28 #include "RClipboardOperation.h"
29 #include "RVector.h"
30 
31 
40 public:
41  RCopyOperation(const RVector& offset, RDocument& src);
42  virtual ~RCopyOperation() {}
43 
44  virtual RTransaction apply(RDocument& document, bool preview = false);
45 
46  void setClear(bool on) {
47  clear = on;
48  }
49 
50 private:
51  bool clear;
54 };
55 
57 
58 #endif
void setClear(bool on)
Definition: RCopyOperation.h:46
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
RVector offset
Definition: RCopyOperation.h:52
Transaction implementation.
Definition: RTransaction.h:74
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
virtual RTransaction apply(RDocument &document, bool preview=false)
Applies this operation to selection in the given document.
Definition: RClipboardOperation.h:48
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RCopyOperation.h:39
virtual ~RCopyOperation()
Definition: RCopyOperation.h:42
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
RDocument & src
Definition: RCopyOperation.h:53
bool clear
Definition: RCopyOperation.h:51
Base class for clipboard related operations (copy, cut, paste).
Definition: RClipboardOperation.h:43