X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factioneditcopy.cpp;h=93d6d8be5122d13ee54145d8e98ff8b4d00d0b4b;hb=f62cebc26c7c3af447f0e4e4c43331f8589dce22;hp=14403181ecb31c1dc730aabf7d42b7a6f599cae5;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/actions/actioneditcopy.cpp b/src/actions/actioneditcopy.cpp index 1440318..93d6d8b 100644 --- a/src/actions/actioneditcopy.cpp +++ b/src/actions/actioneditcopy.cpp @@ -3,7 +3,9 @@ // 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 +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -14,15 +16,15 @@ #include "actioneditcopy.h" -#include "rs_dialogfactory.h" -#include "rs_modification.h" +#include "dialogfactory.h" +#include "modification.h" /** * Constructor. * * @param undo true for undo and false for redo. */ -ActionEditCopy::ActionEditCopy(bool copy, RS_EntityContainer & container, GraphicView & graphicView): +ActionEditCopy::ActionEditCopy(bool copy, EntityContainer & container, GraphicView & graphicView): ActionInterface("Edit Copy", container, graphicView) { this->copy = copy; @@ -41,12 +43,12 @@ void ActionEditCopy::trigger() { deleteSnapper(); - RS_Modification m(*container, graphicView); + Modification m(*container, graphicView); m.copy(referencePoint, !copy); finish(); graphicView->killSelectActions(); - RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected()); + DIALOGFACTORY->updateSelectionWidget(container->countSelected()); } void ActionEditCopy::mouseMoveEvent(QMouseEvent * e) @@ -82,12 +84,12 @@ void ActionEditCopy::updateMouseButtonHints() switch (getStatus()) { case SetReferencePoint: - RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), + DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel")); break; default: - RS_DIALOGFACTORY->updateMouseWidget("", ""); + DIALOGFACTORY->updateMouseWidget("", ""); break; } } @@ -100,7 +102,7 @@ void ActionEditCopy::updateMouseCursor() void ActionEditCopy::updateToolBar() { if (!isFinished()) - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); + DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); else - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain); + DIALOGFACTORY->requestToolBar(RS2::ToolBarMain); }