#include "actionmodifyrotate.h"
-#include "rs_debug.h"
-#include "rs_dialogfactory.h"
+#include "debug.h"
+#include "dialogfactory.h"
-ActionModifyRotate::ActionModifyRotate(RS_EntityContainer & container, GraphicView & graphicView):
+ActionModifyRotate::ActionModifyRotate(EntityContainer & container, GraphicView & graphicView):
ActionInterface("Rotate Entities",
container, graphicView)
{
void ActionModifyRotate::trigger()
{
- RS_DEBUG->print("ActionModifyRotate::trigger()");
+ DEBUG->print("ActionModifyRotate::trigger()");
- RS_Modification m(*container, graphicView);
+ Modification m(*container, graphicView);
m.rotate(data);
- RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+ DIALOGFACTORY->updateSelectionWidget(container->countSelected());
}
void ActionModifyRotate::mouseMoveEvent(QMouseEvent * e)
{
- RS_DEBUG->print("ActionModifyRotate::mouseMoveEvent begin");
+ DEBUG->print("ActionModifyRotate::mouseMoveEvent begin");
if (getStatus() == SetReferencePoint)
{
}
}
- RS_DEBUG->print("ActionModifyRotate::mouseMoveEvent end");
+ DEBUG->print("ActionModifyRotate::mouseMoveEvent end");
}
void ActionModifyRotate::mouseReleaseEvent(QMouseEvent * e)
referencePoint = pos;
setStatus(ShowDialog);
- if (RS_DIALOGFACTORY->requestRotateDialog(data))
+ if (DIALOGFACTORY->requestRotateDialog(data))
{
data.center = referencePoint;
trigger();
switch (getStatus())
{
case SetReferencePoint:
- RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"),
+ DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"),
tr("Back"));
break;
default:
- RS_DIALOGFACTORY->updateMouseWidget("", "");
+ DIALOGFACTORY->updateMouseWidget("", "");
break;
}
}
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;
}
}