#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);
}
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();
}
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;
}
}
void ActionInfoInside::updateToolBar()
{
if (!isFinished())
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
else
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarInfo);
}