]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actioninfoangle.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / actions / actioninfoangle.cpp
index 34ad19acd45ae8f899337681ed0dd8b8b6370c61..d7b69a0c1a28005499ced40192af052d010ceffb 100644 (file)
@@ -21,7 +21,7 @@
 #include "graphicview.h"
 #include "information.h"
 
-ActionInfoAngle::ActionInfoAngle(RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Angle",
+ActionInfoAngle::ActionInfoAngle(EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Angle",
                container, graphicView)
 {
 }
@@ -37,12 +37,12 @@ void ActionInfoAngle::init(int status)
 
 void ActionInfoAngle::trigger()
 {
-       RS_DEBUG->print("ActionInfoAngle::trigger()");
+       DEBUG->print("ActionInfoAngle::trigger()");
        deleteSnapper();
 
        if (entity1 != NULL && entity2 != NULL)
        {
-               VectorSolutions sol = RS_Information::getIntersection(entity1, entity2, false);
+               VectorSolutions sol = Information::getIntersection(entity1, entity2, false);
 
                if (sol.hasValid())
                {
@@ -55,18 +55,18 @@ void ActionInfoAngle::trigger()
                                double angle = fabs(angle2 - angle1);
 
                                QString str;
-                               str.sprintf("%.6f", RS_Math::rad2deg(angle));
-                               RS_DIALOGFACTORY->commandMessage(tr("Angle: %1%2").arg(str).arg(QChar(0xB0)));
+                               str.sprintf("%.6f", Math::rad2deg(angle));
+                               DIALOGFACTORY->commandMessage(tr("Angle: %1%2").arg(str).arg(QChar(0xB0)));
                        }
                }
                else
-                       RS_DIALOGFACTORY->commandMessage(tr("Lines are parallel"));
+                       DIALOGFACTORY->commandMessage(tr("Lines are parallel"));
        }
 }
 
 void ActionInfoAngle::mouseMoveEvent(QMouseEvent * /*e*/)
 {
-       RS_DEBUG->print("ActionInfoAngle::mouseMoveEvent begin");
+       DEBUG->print("ActionInfoAngle::mouseMoveEvent begin");
 
        switch (getStatus())
        {
@@ -80,7 +80,7 @@ void ActionInfoAngle::mouseMoveEvent(QMouseEvent * /*e*/)
                break;
        }
 
-       RS_DEBUG->print("ActionInfoAngle::mouseMoveEvent end");
+       DEBUG->print("ActionInfoAngle::mouseMoveEvent end");
 }
 
 void ActionInfoAngle::mouseReleaseEvent(QMouseEvent * e)
@@ -131,17 +131,17 @@ void ActionInfoAngle::updateMouseButtonHints()
        switch (getStatus())
        {
        case SetEntity1:
-               RS_DIALOGFACTORY->updateMouseWidget(
+               DIALOGFACTORY->updateMouseWidget(
                        tr("Specify first line"), tr("Cancel"));
                break;
 
        case SetEntity2:
-               RS_DIALOGFACTORY->updateMouseWidget(
+               DIALOGFACTORY->updateMouseWidget(
                        tr("Specify second line"), tr("Back"));
                break;
 
        default:
-               RS_DIALOGFACTORY->updateMouseWidget("", "");
+               DIALOGFACTORY->updateMouseWidget("", "");
                break;
        }
 }
@@ -157,11 +157,11 @@ void ActionInfoAngle::updateToolBar()
        {
        case SetEntity1:
        case SetEntity2:
-               RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+               DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
                break;
 
        default:
-               RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo);
+               DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo);
                break;
        }
 }