X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionmodifyrotate.cpp;h=5f616f5c0d8e5865b807f22db1ff7db16c2fc0f8;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=70b4ae5b691d490b35ac4543450595caab46ee6e;hpb=48105dec9198cf5a81dd9286010d0d45e28f70c3;p=architektonas diff --git a/src/actions/actionmodifyrotate.cpp b/src/actions/actionmodifyrotate.cpp index 70b4ae5..5f616f5 100644 --- a/src/actions/actionmodifyrotate.cpp +++ b/src/actions/actionmodifyrotate.cpp @@ -16,10 +16,10 @@ #include "actionmodifyrotate.h" -#include "rs_debug.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) { @@ -36,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) { @@ -63,7 +63,7 @@ void ActionModifyRotate::mouseMoveEvent(QMouseEvent * e) } } - RS_DEBUG->print("ActionModifyRotate::mouseMoveEvent end"); + DEBUG->print("ActionModifyRotate::mouseMoveEvent end"); } void ActionModifyRotate::mouseReleaseEvent(QMouseEvent * e) @@ -94,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(); @@ -112,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; } } @@ -132,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; } }