X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionmodifyrotate.cpp;h=5f616f5c0d8e5865b807f22db1ff7db16c2fc0f8;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=8eb13e641bb88ad34fc424225d395e20f78f6088;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/actions/actionmodifyrotate.cpp b/src/actions/actionmodifyrotate.cpp index 8eb13e6..5f616f5 100644 --- a/src/actions/actionmodifyrotate.cpp +++ b/src/actions/actionmodifyrotate.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,9 +16,10 @@ #include "actionmodifyrotate.h" -#include "rs_dialogfactory.h" +#include "debug.h" +#include "dialogfactory.h" -ActionModifyRotate::ActionModifyRotate(RS_EntityContainer & container, GraphicView & graphicView): +ActionModifyRotate::ActionModifyRotate(EntityContainer & container, GraphicView & graphicView): ActionInterface("Rotate Entities", container, graphicView) { @@ -33,17 +36,17 @@ void ActionModifyRotate::init(int status) void ActionModifyRotate::trigger() { - RS_DEBUG->print("ActionModifyRotate::trigger()"); + DEBUG->print("ActionModifyRotate::trigger()"); - RS_Modification m(*container, graphicView); + Modification m(*container, graphicView); m.rotate(data); - RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected()); + DIALOGFACTORY->updateSelectionWidget(container->countSelected()); } void ActionModifyRotate::mouseMoveEvent(QMouseEvent * e) { - RS_DEBUG->print("ActionModifyRotate::mouseMoveEvent begin"); + DEBUG->print("ActionModifyRotate::mouseMoveEvent begin"); if (getStatus() == SetReferencePoint) { @@ -60,7 +63,7 @@ void ActionModifyRotate::mouseMoveEvent(QMouseEvent * e) } } - RS_DEBUG->print("ActionModifyRotate::mouseMoveEvent end"); + DEBUG->print("ActionModifyRotate::mouseMoveEvent end"); } void ActionModifyRotate::mouseReleaseEvent(QMouseEvent * e) @@ -91,7 +94,7 @@ void ActionModifyRotate::coordinateEvent(Vector * e) referencePoint = pos; setStatus(ShowDialog); - if (RS_DIALOGFACTORY->requestRotateDialog(data)) + if (DIALOGFACTORY->requestRotateDialog(data)) { data.center = referencePoint; trigger(); @@ -109,12 +112,12 @@ void ActionModifyRotate::updateMouseButtonHints() switch (getStatus()) { case SetReferencePoint: - RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), + DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Back")); break; default: - RS_DIALOGFACTORY->updateMouseWidget("", ""); + DIALOGFACTORY->updateMouseWidget("", ""); break; } } @@ -129,11 +132,11 @@ void ActionModifyRotate::updateToolBar() switch (getStatus()) { case SetReferencePoint: - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); + DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); break; default: - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarModify); + DIALOGFACTORY->requestToolBar(RS2::ToolBarModify); break; } }