]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionmodifyscale.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / actions / actionmodifyscale.cpp
index 8f04c5a10756905cfe98d1ce7044af8a73afb7e5..d1aadc90fb26b76487bcf9d195fff00e2ef128af 100644 (file)
@@ -19,7 +19,7 @@
 #include "debug.h"
 #include "dialogfactory.h"
 
-ActionModifyScale::ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView):
+ActionModifyScale::ActionModifyScale(EntityContainer & container, GraphicView & graphicView):
        ActionInterface("Scale Entities", container, graphicView)
 {
 }
@@ -35,17 +35,17 @@ void ActionModifyScale::init(int status)
 
 void ActionModifyScale::trigger()
 {
-       RS_DEBUG->print("ActionModifyScale::trigger()");
+       DEBUG->print("ActionModifyScale::trigger()");
 
-       RS_Modification m(*container, graphicView);
+       Modification m(*container, graphicView);
        m.scale(data);
 
-       RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+       DIALOGFACTORY->updateSelectionWidget(container->countSelected());
 }
 
 void ActionModifyScale::mouseMoveEvent(QMouseEvent * e)
 {
-       RS_DEBUG->print("ActionModifyScale::mouseMoveEvent begin");
+       DEBUG->print("ActionModifyScale::mouseMoveEvent begin");
 
        if (getStatus() == SetReferencePoint)
        {
@@ -62,7 +62,7 @@ void ActionModifyScale::mouseMoveEvent(QMouseEvent * e)
                }
        }
 
-       RS_DEBUG->print("ActionModifyScale::mouseMoveEvent end");
+       DEBUG->print("ActionModifyScale::mouseMoveEvent end");
 }
 
 void ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
@@ -76,7 +76,7 @@ void ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
                case SetReferencePoint:
                        setStatus(ShowDialog);
 
-                       if (RS_DIALOGFACTORY->requestScaleDialog(data))
+                       if (DIALOGFACTORY->requestScaleDialog(data))
                        {
                                data.referencePoint = referencePoint;
                                trigger();
@@ -101,11 +101,11 @@ void ActionModifyScale::updateMouseButtonHints()
        switch (getStatus())
        {
        case SetReferencePoint:
-               RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
+               DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
                break;
 
        default:
-               RS_DIALOGFACTORY->updateMouseWidget("", "");
+               DIALOGFACTORY->updateMouseWidget("", "");
                break;
        }
 }
@@ -120,11 +120,11 @@ void ActionModifyScale::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;
        }
 }