-// rs_actionmodifyscale.cpp
+// actionmodifyscale.cpp
//
// Part of the Architektonas Project
// Originally part of QCad Community Edition by Andrew Mustun
// JLH 06/04/2010 Added this text. :-)
//
-#include "rs_actionmodifyscale.h"
+#include "actionmodifyscale.h"
#include "rs_dialogfactory.h"
-RS_ActionModifyScale::RS_ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView):
- RS_PreviewActionInterface("Scale Entities",
- container, graphicView)
+ActionModifyScale::ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView):
+ ActionInterface("Scale Entities", container, graphicView)
{
}
-RS_ActionModifyScale::~RS_ActionModifyScale()
+ActionModifyScale::~ActionModifyScale()
{
}
-void RS_ActionModifyScale::init(int status)
+void ActionModifyScale::init(int status)
{
- RS_ActionInterface::init(status);
+ ActionInterface::init(status);
}
-void RS_ActionModifyScale::trigger()
+void ActionModifyScale::trigger()
{
- RS_DEBUG->print("RS_ActionModifyScale::trigger()");
+ RS_DEBUG->print("ActionModifyScale::trigger()");
RS_Modification m(*container, graphicView);
m.scale(data);
RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
}
-void RS_ActionModifyScale::mouseMoveEvent(QMouseEvent * e)
+void ActionModifyScale::mouseMoveEvent(QMouseEvent * e)
{
- RS_DEBUG->print("RS_ActionModifyScale::mouseMoveEvent begin");
+ RS_DEBUG->print("ActionModifyScale::mouseMoveEvent begin");
if (getStatus() == SetReferencePoint)
{
}
}
- RS_DEBUG->print("RS_ActionModifyScale::mouseMoveEvent end");
+ RS_DEBUG->print("ActionModifyScale::mouseMoveEvent end");
}
-void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
+void ActionModifyScale::mouseReleaseEvent(QMouseEvent * e)
{
if (e->button() == Qt::LeftButton)
{
}
}
-void RS_ActionModifyScale::updateMouseButtonHints()
+void ActionModifyScale::updateMouseButtonHints()
{
switch (getStatus())
{
- /*case Select:
- RS_DIALOGFACTORY->updateMouseWidget(tr("Pick entities to scale"),
- tr("Cancel"));
- break;*/
case SetReferencePoint:
- RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"),
- tr("Cancel"));
+ RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
break;
default:
}
}
-void RS_ActionModifyScale::updateMouseCursor()
+void ActionModifyScale::updateMouseCursor()
{
graphicView->setMouseCursor(RS2::CadCursor);
}
-void RS_ActionModifyScale::updateToolBar()
+void ActionModifyScale::updateToolBar()
{
switch (getStatus())
{
- /*case Select:
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSelect);
- break;*/
case SetReferencePoint:
RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
break;
break;
}
}
-
-// EOF