RCopyOperation
Class in Operations Module
Header: #include <src/operations/RCopyOperation.h>
Inherits: RClipboardOperation
Description
Section titled “Description”Implementation of an operation that copies the selection of the given document to the clipboard.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RCopyOperation(const RVector &offset, RDocument &src) |
|
| virtual | ~RCopyOperation() |
| virtual RTransaction | apply(RDocument &document, bool preview=false)Applies this operation to selection in the given document. |
| double | getAngle() const |
| QString | getBlockName() const |
| RVector | getCenter() const |
| bool | getFlipHorizontal() const |
| bool | getFlipVertical() const |
| QString | getLayerName() const |
| bool | getOverwriteBlocks() const |
| bool | getOverwriteLayers() const |
| double | getScale() const |
| bool | getSelectionOnly() const |
| bool | getToCurrentBlock() const |
| bool | getToCurrentLayer() const |
| bool | getToModelSpaceBlock() const |
| void | setAngle(double a) |
| void | setBlockName(const QString &n) |
| void | setCenter(const RVector &c) |
| void | setClear(bool on) |
| void | setFlipHorizontal(bool on) |
| void | setFlipVertical(bool on) |
| void | setLayerName(const QString &n) |
| void | setOverwriteBlocks(bool on) |
| void | setOverwriteLayers(bool on) |
| void | setScale(double s) |
| void | setSelectionOnly(bool on) |
| void | setToCurrentBlock(bool on) |
| void | setToCurrentLayer(bool on) |
| void | setToModelSpaceBlock(bool on) |
Private Attributes
Section titled “Private Attributes”| double | angle |
| QString | blockName |
| RVector | center |
| bool | clear |
| bool | flipHorizontal |
| bool | flipVertical |
| QString | layerName |
| RVector | offset |
| bool | overwriteBlocks |
| bool | overwriteLayers |
| double | scale |
| bool | selectionOnly |
| RDocument & | src |
| bool | toCurrentBlock |
| bool | toCurrentLayer |
| bool | toModelSpaceBlock |
Member Documentation
Section titled “Member Documentation”RCopyOperation
Section titled “RCopyOperation”RCopyOperation::RCopyOperation(const RVector &offset, RDocument &src)All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
~RCopyOperation
Section titled “~RCopyOperation”virtual RCopyOperation::~RCopyOperation()virtual inline
virtual RTransaction RCopyOperation::apply(RDocument &document, bool preview=false)virtual
Applies this operation to selection in the given document.
This is used for both previews and the actual apply. In case of a preview, the given document is a temporary document with a storage that is linked to the real document for realistic condiditions for the preview.
Reimplemented from apply.
getAngle
Section titled “getAngle”double RCopyOperation::getAngle() constinline const
getBlockName
Section titled “getBlockName”QString RCopyOperation::getBlockName() constinline const
getCenter
Section titled “getCenter”RVector RCopyOperation::getCenter() constinline const
getFlipHorizontal
Section titled “getFlipHorizontal”bool RCopyOperation::getFlipHorizontal() constinline const
getFlipVertical
Section titled “getFlipVertical”bool RCopyOperation::getFlipVertical() constinline const
getLayerName
Section titled “getLayerName”QString RCopyOperation::getLayerName() constinline const
getOverwriteBlocks
Section titled “getOverwriteBlocks”bool RCopyOperation::getOverwriteBlocks() constinline const
getOverwriteLayers
Section titled “getOverwriteLayers”bool RCopyOperation::getOverwriteLayers() constinline const
getScale
Section titled “getScale”double RCopyOperation::getScale() constinline const
getSelectionOnly
Section titled “getSelectionOnly”bool RCopyOperation::getSelectionOnly() constinline const
getToCurrentBlock
Section titled “getToCurrentBlock”bool RCopyOperation::getToCurrentBlock() constinline const
getToCurrentLayer
Section titled “getToCurrentLayer”bool RCopyOperation::getToCurrentLayer() constinline const
getToModelSpaceBlock
Section titled “getToModelSpaceBlock”bool RCopyOperation::getToModelSpaceBlock() constinline const
setAngle
Section titled “setAngle”void RCopyOperation::setAngle(double a)inline
setBlockName
Section titled “setBlockName”void RCopyOperation::setBlockName(const QString &n)inline
setCenter
Section titled “setCenter”void RCopyOperation::setCenter(const RVector &c)inline
setClear
Section titled “setClear”void RCopyOperation::setClear(bool on)inline
setFlipHorizontal
Section titled “setFlipHorizontal”void RCopyOperation::setFlipHorizontal(bool on)inline
setFlipVertical
Section titled “setFlipVertical”void RCopyOperation::setFlipVertical(bool on)inline
setLayerName
Section titled “setLayerName”void RCopyOperation::setLayerName(const QString &n)inline
setOverwriteBlocks
Section titled “setOverwriteBlocks”void RCopyOperation::setOverwriteBlocks(bool on)inline
setOverwriteLayers
Section titled “setOverwriteLayers”void RCopyOperation::setOverwriteLayers(bool on)inline
setScale
Section titled “setScale”void RCopyOperation::setScale(double s)inline
setSelectionOnly
Section titled “setSelectionOnly”void RCopyOperation::setSelectionOnly(bool on)inline
setToCurrentBlock
Section titled “setToCurrentBlock”void RCopyOperation::setToCurrentBlock(bool on)inline
setToCurrentLayer
Section titled “setToCurrentLayer”void RCopyOperation::setToCurrentLayer(bool on)inline
setToModelSpaceBlock
Section titled “setToModelSpaceBlock”void RCopyOperation::setToModelSpaceBlock(bool on)inline
double RCopyOperation::angleprivate
blockName
Section titled “blockName”QString RCopyOperation::blockNameprivate
center
Section titled “center”RVector RCopyOperation::centerprivate
bool RCopyOperation::clearprivate
flipHorizontal
Section titled “flipHorizontal”bool RCopyOperation::flipHorizontalprivate
flipVertical
Section titled “flipVertical”bool RCopyOperation::flipVerticalprivate
layerName
Section titled “layerName”QString RCopyOperation::layerNameprivate
offset
Section titled “offset”RVector RCopyOperation::offsetprivate
overwriteBlocks
Section titled “overwriteBlocks”bool RCopyOperation::overwriteBlocksprivate
overwriteLayers
Section titled “overwriteLayers”bool RCopyOperation::overwriteLayersprivate
double RCopyOperation::scaleprivate
selectionOnly
Section titled “selectionOnly”bool RCopyOperation::selectionOnlyprivate
RDocument& RCopyOperation::srcprivate
toCurrentBlock
Section titled “toCurrentBlock”bool RCopyOperation::toCurrentBlockprivate
toCurrentLayer
Section titled “toCurrentLayer”bool RCopyOperation::toCurrentLayerprivate
toModelSpaceBlock
Section titled “toModelSpaceBlock”bool RCopyOperation::toModelSpaceBlockprivate