RPasteOperation
Class in Operations Module
Header: #include <src/operations/RPasteOperation.h>
Inherits: RClipboardOperation
Description
Section titled “Description”Implementation of an operation that pastes the clipboard at a given reference point.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RPasteOperation(RDocument &sourceDocument) |
|
| virtual | ~RPasteOperation() |
| virtual RTransaction | apply(RDocument &document, bool preview=false)Applies this operation to selection in the given document. |
| QString | getBlockName() |
| RPolyline | getBoundary(double unitFactor) |
| RVector | getCenter() |
| bool | getFlipHorizontal() |
| bool | getFlipVertical() |
| QString | getLayerName() |
| RVector | getOffset() |
| bool | getOverwriteBlocks() |
| bool | getOverwriteLayers() |
| double | getRotation() |
| double | getScale() |
| bool | getToCurrentLayer() |
| void | setAttribute(const QString &tag, const QString &value) |
| void | setBlockName(const QString &blockName) |
| void | setBlockProperty(const QString &name, const QString &value) |
| void | setCenter(const RVector ¢ers) |
| void | setCenters(const QList< RVector > ¢ers) |
| void | setFlipHorizontal(bool flipHorizontal) |
| void | setFlipVertical(bool flipVertical) |
| void | setLayerName(const QString &layerName) |
| void | setOffset(const RVector &offset) |
| void | setOffsets(const QList< RVector > &offsets) |
| void | setOverwriteBlocks(bool overwriteBlocks) |
| void | setOverwriteLayers(bool overwriteLayers) |
| void | setProperty(const QString &name, const QString &value) |
| void | setRotation(double rotation) |
| void | setRotations(const QList< double > &rotations) |
| void | setScale(double scale) |
| void | setToCurrentLayer(bool toCurrentLayer) |
Private Attributes
Section titled “Private Attributes”| QMap< QString, QString > | attributes |
| QString | blockName |
| QMap< QString, QString > | blockProperties |
| QList< RVector > | centers |
| bool | flipHorizontal |
| bool | flipVertical |
| QString | layerName |
| QList< RVector > | offsets |
| bool | overwriteBlocks |
| bool | overwriteLayers |
| QMap< QString, QString > | properties |
| QList< double > | rotations |
| double | scale |
| RDocument & | sourceDocument |
| bool | toCurrentLayer |
Member Documentation
Section titled “Member Documentation”RPasteOperation
Section titled “RPasteOperation”RPasteOperation::RPasteOperation(RDocument &sourceDocument)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.
~RPasteOperation
Section titled “~RPasteOperation”virtual RPasteOperation::~RPasteOperation()virtual inline
virtual RTransaction RPasteOperation::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.
getBlockName
Section titled “getBlockName”QString RPasteOperation::getBlockName()inline
getBoundary
Section titled “getBoundary”RPolyline RPasteOperation::getBoundary(double unitFactor)getCenter
Section titled “getCenter”RVector RPasteOperation::getCenter()inline
getFlipHorizontal
Section titled “getFlipHorizontal”bool RPasteOperation::getFlipHorizontal()inline
getFlipVertical
Section titled “getFlipVertical”bool RPasteOperation::getFlipVertical()inline
getLayerName
Section titled “getLayerName”QString RPasteOperation::getLayerName()inline
getOffset
Section titled “getOffset”RVector RPasteOperation::getOffset()inline
getOverwriteBlocks
Section titled “getOverwriteBlocks”bool RPasteOperation::getOverwriteBlocks()inline
getOverwriteLayers
Section titled “getOverwriteLayers”bool RPasteOperation::getOverwriteLayers()inline
getRotation
Section titled “getRotation”double RPasteOperation::getRotation()inline
getScale
Section titled “getScale”double RPasteOperation::getScale()inline
getToCurrentLayer
Section titled “getToCurrentLayer”bool RPasteOperation::getToCurrentLayer()inline
setAttribute
Section titled “setAttribute”void RPasteOperation::setAttribute(const QString &tag, const QString &value)inline
setBlockName
Section titled “setBlockName”void RPasteOperation::setBlockName(const QString &blockName)inline
setBlockProperty
Section titled “setBlockProperty”void RPasteOperation::setBlockProperty(const QString &name, const QString &value)inline
setCenter
Section titled “setCenter”void RPasteOperation::setCenter(const RVector ¢ers)inline
setCenters
Section titled “setCenters”void RPasteOperation::setCenters(const QList< RVector > ¢ers)inline
setFlipHorizontal
Section titled “setFlipHorizontal”void RPasteOperation::setFlipHorizontal(bool flipHorizontal)inline
setFlipVertical
Section titled “setFlipVertical”void RPasteOperation::setFlipVertical(bool flipVertical)inline
setLayerName
Section titled “setLayerName”void RPasteOperation::setLayerName(const QString &layerName)inline
setOffset
Section titled “setOffset”void RPasteOperation::setOffset(const RVector &offset)inline
setOffsets
Section titled “setOffsets”void RPasteOperation::setOffsets(const QList< RVector > &offsets)inline
setOverwriteBlocks
Section titled “setOverwriteBlocks”void RPasteOperation::setOverwriteBlocks(bool overwriteBlocks)inline
setOverwriteLayers
Section titled “setOverwriteLayers”void RPasteOperation::setOverwriteLayers(bool overwriteLayers)inline
setProperty
Section titled “setProperty”void RPasteOperation::setProperty(const QString &name, const QString &value)inline
setRotation
Section titled “setRotation”void RPasteOperation::setRotation(double rotation)inline
setRotations
Section titled “setRotations”void RPasteOperation::setRotations(const QList< double > &rotations)inline
setScale
Section titled “setScale”void RPasteOperation::setScale(double scale)inline
setToCurrentLayer
Section titled “setToCurrentLayer”void RPasteOperation::setToCurrentLayer(bool toCurrentLayer)inline
attributes
Section titled “attributes”QMap<QString, QString> RPasteOperation::attributesprivate
blockName
Section titled “blockName”QString RPasteOperation::blockNameprivate
blockProperties
Section titled “blockProperties”QMap<QString, QString> RPasteOperation::blockPropertiesprivate
centers
Section titled “centers”QList<RVector> RPasteOperation::centersprivate
flipHorizontal
Section titled “flipHorizontal”bool RPasteOperation::flipHorizontalprivate
flipVertical
Section titled “flipVertical”bool RPasteOperation::flipVerticalprivate
layerName
Section titled “layerName”QString RPasteOperation::layerNameprivate
offsets
Section titled “offsets”QList<RVector> RPasteOperation::offsetsprivate
overwriteBlocks
Section titled “overwriteBlocks”bool RPasteOperation::overwriteBlocksprivate
overwriteLayers
Section titled “overwriteLayers”bool RPasteOperation::overwriteLayersprivate
properties
Section titled “properties”QMap<QString, QString> RPasteOperation::propertiesprivate
rotations
Section titled “rotations”QList<double> RPasteOperation::rotationsprivate
double RPasteOperation::scaleprivate
sourceDocument
Section titled “sourceDocument”RDocument& RPasteOperation::sourceDocumentprivate
toCurrentLayer
Section titled “toCurrentLayer”bool RPasteOperation::toCurrentLayerprivate