*
* @param undo true for undo and false for redo.
*/
-ActionEditCopy::ActionEditCopy(bool copy, RS_EntityContainer & container, GraphicView & graphicView):
+ActionEditCopy::ActionEditCopy(bool copy, EntityContainer & container, GraphicView & graphicView):
ActionInterface("Edit Copy", container, graphicView)
{
this->copy = copy;
{
deleteSnapper();
- RS_Modification m(*container, graphicView);
+ Modification m(*container, graphicView);
m.copy(referencePoint, !copy);
finish();
graphicView->killSelectActions();
- RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+ DIALOGFACTORY->updateSelectionWidget(container->countSelected());
}
void ActionEditCopy::mouseMoveEvent(QMouseEvent * e)
switch (getStatus())
{
case SetReferencePoint:
- RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"),
+ DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"),
tr("Cancel"));
break;
default:
- RS_DIALOGFACTORY->updateMouseWidget("", "");
+ DIALOGFACTORY->updateMouseWidget("", "");
break;
}
}
void ActionEditCopy::updateToolBar()
{
if (!isFinished())
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
else
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
}