X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factioninfototallength.cpp;h=05a03c7d1aad052f3fe9c3667aac192b9e1c839f;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=deee3691fba35c9146cb79b2aecf1826455e9e36;hpb=48105dec9198cf5a81dd9286010d0d45e28f70c3;p=architektonas diff --git a/src/actions/actioninfototallength.cpp b/src/actions/actioninfototallength.cpp index deee369..05a03c7 100644 --- a/src/actions/actioninfototallength.cpp +++ b/src/actions/actioninfototallength.cpp @@ -16,10 +16,10 @@ #include "actioninfototallength.h" -#include "rs_debug.h" -#include "rs_dialogfactory.h" +#include "debug.h" +#include "dialogfactory.h" -ActionInfoTotalLength::ActionInfoTotalLength(RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Total Length", +ActionInfoTotalLength::ActionInfoTotalLength(EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Total Length", container, graphicView) { } @@ -36,11 +36,11 @@ void ActionInfoTotalLength::init(int status) void ActionInfoTotalLength::trigger() { - RS_DEBUG->print("ActionInfoTotalLength::trigger()"); + DEBUG->print("ActionInfoTotalLength::trigger()"); double len = 0.0; - for(RS_Entity * e=container->firstEntity(RS2::ResolveNone); e!=NULL; + for(Entity * e=container->firstEntity(RS2::ResolveNone); e!=NULL; e=container->nextEntity(RS2::ResolveNone)) { if (e->isVisible() && e->isSelected()) @@ -58,10 +58,10 @@ void ActionInfoTotalLength::trigger() } if (len > 0.0) - RS_DIALOGFACTORY->commandMessage( + DIALOGFACTORY->commandMessage( tr("Total Length of selected entities: %1").arg(len)); else - RS_DIALOGFACTORY->commandMessage(tr("At least one of the selected " + DIALOGFACTORY->commandMessage(tr("At least one of the selected " "entities cannot be measured.")); finish(); @@ -69,11 +69,11 @@ void ActionInfoTotalLength::trigger() void ActionInfoTotalLength::updateToolBar() { - if (RS_DIALOGFACTORY != NULL) + if (DIALOGFACTORY != NULL) { if (!isFinished()) - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo); + DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo); else - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain); + DIALOGFACTORY->requestToolBar(RS2::ToolBarMain); } }