#include "actionselectcontour.h"
-#include "rs_dialogfactory.h"
-#include "rs_selection.h"
+#include "debug.h"
+#include "dialogfactory.h"
+#include "graphicview.h"
+#include "selection.h"
-ActionSelectContour::ActionSelectContour(RS_EntityContainer & container,
+ActionSelectContour::ActionSelectContour(EntityContainer & container,
GraphicView & graphicView):
ActionInterface("Select Contours", container, graphicView)
{
{
if (en->isAtomic())
{
- RS_Selection s(*container, graphicView);
+ Selection s(*container, graphicView);
s.selectContour(en);
- if (RS_DIALOGFACTORY)
- RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+ if (DIALOGFACTORY)
+ DIALOGFACTORY->updateSelectionWidget(container->countSelected());
}
- else if (RS_DIALOGFACTORY)
- RS_DIALOGFACTORY->commandMessage(tr("Entity must be an Atomic Entity."));
+ else if (DIALOGFACTORY)
+ DIALOGFACTORY->commandMessage(tr("Entity must be an Atomic Entity."));
}
else
- RS_DEBUG->print("ActionSelectContour::trigger: Entity is NULL\n");
+ DEBUG->print("ActionSelectContour::trigger: Entity is NULL\n");
}
void ActionSelectContour::mouseReleaseEvent(QMouseEvent * e)