X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_modification.cpp;h=29179b944dd01f436a9f3f971e82b68509de80f2;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=1c1b19becb922aa848df8b0f7baadec7df8dc0f6;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_modification.cpp b/src/base/rs_modification.cpp index 1c1b19b..29179b9 100644 --- a/src/base/rs_modification.cpp +++ b/src/base/rs_modification.cpp @@ -1,10 +1,23 @@ +// rs_modification.cpp +// +// Part of the Architektonas Project +// Originally part of QCad Community Edition by Andrew Mustun +// Extensively rewritten and refactored by James L. Hammons +// (C) 2010 Underground Software +// +// JLH = James L. Hammons +// +// Who When What +// --- ---------- ----------------------------------------------------------- +// JLH 06/01/2010 Added this text. :-) +// #include "rs_modification.h" #include "rs_clipboard.h" #include "rs_creation.h" #include "rs_entity.h" -#include "rs_graphic.h" +#include "drawing.h" #include "rs_information.h" #include "rs_insert.h" #include "rs_polyline.h" @@ -15,7 +28,7 @@ * Default constructor. * * @param container The container to which we will add - * entities. Usually that's an RS_Graphic entity but + * entities. Usually that's an Drawing entity but * it can also be a polyline, text, ... * @param graphicView Pointer to graphic view or NULL if you don't want the * any views to be updated. @@ -137,7 +150,7 @@ bool RS_Modification::changeAttributes(RS_AttributesData & data) /** * Copies all selected entities from the given container to the clipboard. * Layers and blocks that are needed are also copied if the container is - * or is part of an RS_Graphic. + * or is part of an Drawing. * * @param container The entity container. * @param ref Reference point. The entities will be moved by -ref. @@ -184,7 +197,7 @@ void RS_Modification::copy(const Vector& ref, const bool cut) { /** * Copies the given entity from the given container to the clipboard. * Layers and blocks that are needed are also copied if the container is - * or is part of an RS_Graphic. + * or is part of an Drawing. * * @param e The entity. * @param ref Reference point. The entities will be moved by -ref. @@ -322,13 +335,13 @@ void RS_Modification::copyBlocks(RS_Entity* e) { /** * Pastes all entities from the clipboard into the container. * Layers and blocks that are needed are also copied if the container is - * or is part of an RS_Graphic. + * or is part of an Drawing. * * @param data Paste data. * @param source The source from where to paste. NULL means the source * is the clipboard. */ -void RS_Modification::paste(const RS_PasteData& data, RS_Graphic* source) { +void RS_Modification::paste(const RS_PasteData& data, Drawing* source) { if (graphic==NULL) { RS_DEBUG->print(RS_Debug::D_WARNING,