|
QCAD Application Framework
CAD Application Development and Automation.
|
Base class for clipboard related operations (copy, cut, paste). More...
#include <RClipboardOperation.h>
Public Member Functions | |
| RClipboardOperation () | |
| virtual | ~RClipboardOperation () |
Public Member Functions inherited from ROperation | |
| virtual RTransaction | apply (RDocument &document, bool preview=false) const =0 |
| Applies this operation to selection in the given document. | |
| RS::EntityType | getEntityTypeFilter () const |
| ROperation (bool undoable=true, RS::EntityType entityTypeFilter=RS::EntityAll) | |
| virtual | ~ROperation () |
Protected Member Functions | |
| void | copy (RDocument &src, RDocument &dest, const RVector &offset, double scale, double rotation, bool flipHorizontal, bool flipVertical, bool toCurrentLayer, bool toCurrentBlock, bool overwriteLayers, bool overwriteBlocks, const QString &blockName, RTransaction &transaction, bool selectionOnly, bool clear, bool toModelSpaceBlock, bool preview) const |
| void | copyEntity (REntity &entity, RDocument &src, RDocument &dest, const RVector &offset, double scale, double rotation, bool flipHorizontal, bool flipVertical, bool toCurrentLayer, bool toCurrentBlock, bool overwriteLayers, bool overwriteBlocks, const QString &blockName, RTransaction &transaction, bool toModelSpaceBlock) const |
| Adds the given entity (and its layer(s) and block reference(s)) to the given document. | |
| QSharedPointer< RLayer > | copyEntityLayer (REntity &entity, RDocument &src, RDocument &dest, bool overwriteLayers, RTransaction &transaction) const |
Private Attributes | |
| QMap< QString, QSharedPointer < RBlock > > | copiedBlocks |
| QMap< QString, QSharedPointer < RLayer > > | copiedLayers |
Additional Inherited Members | |
Protected Attributes inherited from ROperation | |
| RS::EntityType | entityTypeFilter |
| bool | undoable |
Base class for clipboard related operations (copy, cut, paste).
| RClipboardOperation::RClipboardOperation | ( | ) |
|
inlinevirtual |
|
protected |
|
protected |
Adds the given entity (and its layer(s) and block reference(s)) to the given document.
| blockName | Name of an existing block in dest |
|
protected |
|
mutableprivate |
|
mutableprivate |