QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RClipboardOperation Class Reference

Base class for clipboard related operations (copy, cut, paste). More...

#include <RClipboardOperation.h>

Inheritance diagram for RClipboardOperation:
ROperation RCopyOperation RDeleteSelectionOperation RPasteOperation

List of all members.

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< RLayercopyEntityLayer (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

Detailed Description

Base class for clipboard related operations (copy, cut, paste).

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RClipboardOperation::RClipboardOperation ( )
virtual RClipboardOperation::~RClipboardOperation ( )
inlinevirtual

Member Function Documentation

void RClipboardOperation::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
protected
void RClipboardOperation::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
protected

Adds the given entity (and its layer(s) and block reference(s)) to the given document.

Parameters:
blockNameName of an existing block in dest
QSharedPointer< RLayer > RClipboardOperation::copyEntityLayer ( REntity entity,
RDocument src,
RDocument dest,
bool  overwriteLayers,
RTransaction transaction 
) const
protected

Member Data Documentation

QMap<QString, QSharedPointer<RBlock> > RClipboardOperation::copiedBlocks
mutableprivate
QMap<QString, QSharedPointer<RLayer> > RClipboardOperation::copiedLayers
mutableprivate

The documentation for this class was generated from the following files: