]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionsetrelativezero.cpp
In the middle of major refactoring...
[architektonas] / src / actions / actionsetrelativezero.cpp
similarity index 64%
rename from src/actions/rs_actionsetrelativezero.cpp
rename to src/actions/actionsetrelativezero.cpp
index fc7484d4712d4775d17f75a23ab25d212555622d..b77d5106ac41fadc9d26e7da3bf54b9cadbc58b2 100644 (file)
@@ -1,4 +1,4 @@
-// rs_actionsetrelativezero.cpp
+// actionsetrelativezero.cpp
 //
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // JLH  06/05/2010  Added this text. :-)
 //
 
-#include "rs_actionsetrelativezero.h"
+#include "actionsetrelativezero.h"
 
 #include "rs_dialogfactory.h"
 #include "graphicview.h"
 
-RS_ActionSetRelativeZero::RS_ActionSetRelativeZero(RS_EntityContainer & container,
-       GraphicView & graphicView): RS_PreviewActionInterface("Set the relative Zero",
+ActionSetRelativeZero::ActionSetRelativeZero(RS_EntityContainer & container,
+       GraphicView & graphicView): ActionInterface("Set the relative Zero",
                container, graphicView)
 {
 }
 
-RS_ActionSetRelativeZero::~RS_ActionSetRelativeZero()
+ActionSetRelativeZero::~ActionSetRelativeZero()
 {
 }
 
-/*virtual*/ RS2::ActionType RS_ActionSetRelativeZero::rtti()
+/*virtual*/ RS2::ActionType ActionSetRelativeZero::rtti()
 {
        return RS2::ActionSetRelativeZero;
 }
 
-void RS_ActionSetRelativeZero::trigger()
+void ActionSetRelativeZero::trigger()
 {
        bool wasLocked = graphicView->isRelativeZeroLocked();
 
@@ -45,12 +45,12 @@ void RS_ActionSetRelativeZero::trigger()
        finish();
 }
 
-void RS_ActionSetRelativeZero::mouseMoveEvent(QMouseEvent * e)
+void ActionSetRelativeZero::mouseMoveEvent(QMouseEvent * e)
 {
        snapPoint(e);
 }
 
-void RS_ActionSetRelativeZero::mouseReleaseEvent(QMouseEvent * e)
+void ActionSetRelativeZero::mouseReleaseEvent(QMouseEvent * e)
 {
        if (e->button() == Qt::RightButton)
        {
@@ -64,7 +64,7 @@ void RS_ActionSetRelativeZero::mouseReleaseEvent(QMouseEvent * e)
        }
 }
 
-void RS_ActionSetRelativeZero::coordinateEvent(Vector * e)
+void ActionSetRelativeZero::coordinateEvent(Vector * e)
 {
        if (e == NULL)
                return;
@@ -73,7 +73,7 @@ void RS_ActionSetRelativeZero::coordinateEvent(Vector * e)
        trigger();
 }
 
-void RS_ActionSetRelativeZero::updateMouseButtonHints()
+void ActionSetRelativeZero::updateMouseButtonHints()
 {
        switch (getStatus())
        {
@@ -87,12 +87,12 @@ void RS_ActionSetRelativeZero::updateMouseButtonHints()
        }
 }
 
-void RS_ActionSetRelativeZero::updateMouseCursor()
+void ActionSetRelativeZero::updateMouseCursor()
 {
        graphicView->setMouseCursor(RS2::CadCursor);
 }
 
-void RS_ActionSetRelativeZero::updateToolBar()
+void ActionSetRelativeZero::updateToolBar()
 {
        if (!isFinished())
                RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
@@ -100,4 +100,4 @@ void RS_ActionSetRelativeZero::updateToolBar()
                RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
 }
 
-// EOF
+