]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionmodifymoverotate.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / actions / actionmodifymoverotate.cpp
index b8dce06fce4541c4c6b5f53186df0aa45ac5e696..9185d6c4597b1483bea01246e22393ca6adcee83 100644 (file)
@@ -22,7 +22,7 @@
 #include "preview.h"
 
 ActionModifyMoveRotate::ActionModifyMoveRotate(
-       RS_EntityContainer & container, GraphicView & graphicView):
+       EntityContainer & container, GraphicView & graphicView):
        ActionInterface("Move and Rotate Entities", container, graphicView)
 {
 }
@@ -43,19 +43,19 @@ void ActionModifyMoveRotate::init(int status)
 
 void ActionModifyMoveRotate::trigger()
 {
-       RS_DEBUG->print("ActionModifyMoveRotate::trigger()");
+       DEBUG->print("ActionModifyMoveRotate::trigger()");
 
-       RS_Modification m(*container, graphicView);
+       Modification m(*container, graphicView);
        m.moveRotate(data);
 
        finish();
 
-       RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+       DIALOGFACTORY->updateSelectionWidget(container->countSelected());
 }
 
 void ActionModifyMoveRotate::mouseMoveEvent(QMouseEvent * e)
 {
-       RS_DEBUG->print("ActionModifyMoveRotate::mouseMoveEvent begin");
+       DEBUG->print("ActionModifyMoveRotate::mouseMoveEvent begin");
 
        if (getStatus() == SetReferencePoint || getStatus() == SetTargetPoint)
        {
@@ -88,7 +88,7 @@ void ActionModifyMoveRotate::mouseMoveEvent(QMouseEvent * e)
                }
        }
 
-       RS_DEBUG->print("ActionModifyMoveRotate::mouseMoveEvent end");
+       DEBUG->print("ActionModifyMoveRotate::mouseMoveEvent end");
 }
 
 void ActionModifyMoveRotate::mouseReleaseEvent(QMouseEvent * e)
@@ -126,7 +126,7 @@ void ActionModifyMoveRotate::coordinateEvent(Vector * e)
                setStatus(ShowDialog);
                data.offset = targetPoint - data.referencePoint;
 
-               if (RS_DIALOGFACTORY->requestMoveRotateDialog(data))
+               if (DIALOGFACTORY->requestMoveRotateDialog(data))
                        trigger();
                        //finish();
                break;
@@ -136,13 +136,13 @@ void ActionModifyMoveRotate::coordinateEvent(Vector * e)
        }
 }
 
-void ActionModifyMoveRotate::commandEvent(RS_CommandEvent * e)
+void ActionModifyMoveRotate::commandEvent(CommandEvent * e)
 {
        QString c = e->getCommand().toLower();
 
        if (checkCommand("help", c))
        {
-               RS_DIALOGFACTORY->commandMessage(msgAvailableCommands() + getAvailableCommands().join(", "));
+               DIALOGFACTORY->commandMessage(msgAvailableCommands() + getAvailableCommands().join(", "));
                return;
        }
 
@@ -166,14 +166,14 @@ void ActionModifyMoveRotate::commandEvent(RS_CommandEvent * e)
        case SetAngle:
        {
                bool ok;
-               double a = RS_Math::eval(c, &ok);
+               double a = Math::eval(c, &ok);
 
                if (ok)
-                       data.angle = RS_Math::deg2rad(a);
+                       data.angle = Math::deg2rad(a);
                else
-                       RS_DIALOGFACTORY->commandMessage(tr("Not a valid expression"));
+                       DIALOGFACTORY->commandMessage(tr("Not a valid expression"));
 
-               RS_DIALOGFACTORY->requestOptions(this, true, true);
+               DIALOGFACTORY->requestOptions(this, true, true);
                setStatus(lastStatus);
        }
        break;
@@ -204,7 +204,7 @@ void ActionModifyMoveRotate::showOptions()
 
        ActionInterface::showOptions();
 
-       RS_DIALOGFACTORY->requestOptions(this, true);
+       DIALOGFACTORY->requestOptions(this, true);
 }
 
 void ActionModifyMoveRotate::hideOptions()
@@ -213,7 +213,7 @@ void ActionModifyMoveRotate::hideOptions()
 
        ActionInterface::hideOptions();
 
-       RS_DIALOGFACTORY->requestOptions(this, false);
+       DIALOGFACTORY->requestOptions(this, false);
 }
 
 void ActionModifyMoveRotate::updateMouseButtonHints()
@@ -221,19 +221,19 @@ void ActionModifyMoveRotate::updateMouseButtonHints()
        switch (getStatus())
        {
        case SetReferencePoint:
-               RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
+               DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
                break;
 
        case SetTargetPoint:
-               RS_DIALOGFACTORY->updateMouseWidget(tr("Specify target point"), tr("Back"));
+               DIALOGFACTORY->updateMouseWidget(tr("Specify target point"), tr("Back"));
                break;
 
        case SetAngle:
-               RS_DIALOGFACTORY->updateMouseWidget(tr("Enter rotation angle:"), tr("Back"));
+               DIALOGFACTORY->updateMouseWidget(tr("Enter rotation angle:"), tr("Back"));
                break;
 
        default:
-               RS_DIALOGFACTORY->updateMouseWidget("", "");
+               DIALOGFACTORY->updateMouseWidget("", "");
                break;
        }
 }
@@ -249,11 +249,11 @@ void ActionModifyMoveRotate::updateToolBar()
        {
        case SetReferencePoint:
        case SetTargetPoint:
-               RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+               DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
                break;
 
        default:
-               RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarModify);
+               DIALOGFACTORY->requestToolBar(RS2::ToolBarModify);
                break;
        }
 }