X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionmodifyscale.cpp;fp=src%2Factions%2Frs_actionmodifyscale.cpp;h=4b6b482e4e2653c83374447ca10694c94ffc3c05;hb=d774c2655ba2c3657a565f325411144452392277;hp=c8168f6e8a96f59357d3643f09416a335efb9d32;hpb=468780dd17f8b0ebb35427a9fc43491721d44d69;p=architektonas diff --git a/src/actions/rs_actionmodifyscale.cpp b/src/actions/actionmodifyscale.cpp similarity index 59% rename from src/actions/rs_actionmodifyscale.cpp rename to src/actions/actionmodifyscale.cpp index c8168f6..4b6b482 100644 --- a/src/actions/rs_actionmodifyscale.cpp +++ b/src/actions/actionmodifyscale.cpp @@ -1,4 +1,4 @@ -// rs_actionmodifyscale.cpp +// actionmodifyscale.cpp // // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun @@ -12,28 +12,27 @@ // 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); @@ -41,9 +40,9 @@ void RS_ActionModifyScale::trigger() 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) { @@ -60,10 +59,10 @@ void RS_ActionModifyScale::mouseMoveEvent(QMouseEvent * e) } } - 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) { @@ -94,17 +93,12 @@ void RS_ActionModifyScale::mouseReleaseEvent(QMouseEvent * e) } } -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: @@ -113,18 +107,15 @@ void RS_ActionModifyScale::updateMouseButtonHints() } } -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; @@ -134,5 +125,3 @@ void RS_ActionModifyScale::updateToolBar() break; } } - -// EOF