X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factioninfoinside.cpp;h=7d7c734d921fdc8b349710e3e88f564b5e9ba154;hb=e1d1cacbb43055988d0d9db632fdf05c0bea9543;hp=7beeaa1bdb255c300e7e05e3f490d6b3c9e06f6c;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/actions/actioninfoinside.cpp b/src/actions/actioninfoinside.cpp index 7beeaa1..7d7c734 100644 --- a/src/actions/actioninfoinside.cpp +++ b/src/actions/actioninfoinside.cpp @@ -3,7 +3,9 @@ // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun // Extensively rewritten and refactored by James L. Hammons -// (C) 2010 Underground Software +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -14,16 +16,16 @@ #include "actioninfoinside.h" -#include "rs_dialogfactory.h" +#include "dialogfactory.h" #include "graphicview.h" -#include "rs_information.h" +#include "information.h" -ActionInfoInside::ActionInfoInside(RS_EntityContainer & container, GraphicView & graphicView): +ActionInfoInside::ActionInfoInside(EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Inside", container, graphicView) { - contour = new RS_EntityContainer(NULL, false); + contour = new EntityContainer(NULL, false); - for (RS_Entity * e = container.firstEntity(); e != NULL; e = container.nextEntity()) + for (Entity * e = container.firstEntity(); e != NULL; e = container.nextEntity()) if (e->isSelected()) contour->addEntity(e); } @@ -38,10 +40,10 @@ void ActionInfoInside::trigger() deleteSnapper(); bool onContour = false; - if (RS_Information::isPointInsideContour(pt, contour, &onContour)) - RS_DIALOGFACTORY->commandMessage(tr("Point is inside selected contour.")); + if (Information::isPointInsideContour(pt, contour, &onContour)) + DIALOGFACTORY->commandMessage(tr("Point is inside selected contour.")); else - RS_DIALOGFACTORY->commandMessage(tr("Point is outside selected contour.")); + DIALOGFACTORY->commandMessage(tr("Point is outside selected contour.")); finish(); } @@ -69,11 +71,11 @@ void ActionInfoInside::updateMouseButtonHints() switch (getStatus()) { case 0: - RS_DIALOGFACTORY->updateMouseWidget(tr("Specify point"), tr("Cancel")); + DIALOGFACTORY->updateMouseWidget(tr("Specify point"), tr("Cancel")); break; default: - RS_DIALOGFACTORY->updateMouseWidget("", ""); + DIALOGFACTORY->updateMouseWidget("", ""); break; } } @@ -86,7 +88,7 @@ void ActionInfoInside::updateMouseCursor() void ActionInfoInside::updateToolBar() { if (!isFinished()) - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); + DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap); else - RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo); + DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo); }