]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actioninfoinside.cpp
Phase two of adding polyline functionality...
[architektonas] / src / actions / actioninfoinside.cpp
index 7beeaa1bdb255c300e7e05e3f490d6b3c9e06f6c..7d7c734d921fdc8b349710e3e88f564b5e9ba154 100644 (file)
@@ -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 <jlhamm@acm.org>
 //
 
 #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);
 }