-// 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();
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)
{
}
}
-void RS_ActionSetRelativeZero::coordinateEvent(Vector * e)
+void ActionSetRelativeZero::coordinateEvent(Vector * e)
{
if (e == NULL)
return;
trigger();
}
-void RS_ActionSetRelativeZero::updateMouseButtonHints()
+void ActionSetRelativeZero::updateMouseButtonHints()
{
switch (getStatus())
{
}
}
-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);
RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
}
-// EOF
+