-// rs_actionselectlayer.cpp
+// actionselectlayer.cpp
//
// Part of the Architektonas Project
// Originally part of QCad Community Edition by Andrew Mustun
// JLH 06/05/2010 Added this text. :-)
//
-#include "rs_actionselectlayer.h"
+#include "actionselectlayer.h"
#include "rs_dialogfactory.h"
#include "rs_selection.h"
-RS_ActionSelectLayer::RS_ActionSelectLayer(RS_EntityContainer & container, GraphicView & graphicView):
- RS_ActionInterface("Select Layers", container, graphicView)
+ActionSelectLayer::ActionSelectLayer(RS_EntityContainer & container, GraphicView & graphicView):
+ ActionInterface("Select Layers", container, graphicView)
{
en = NULL;
}
-RS_ActionSelectLayer::~RS_ActionSelectLayer()
+ActionSelectLayer::~ActionSelectLayer()
{
}
-/*virtual*/ RS2::ActionType RS_ActionSelectLayer::rtti()
+/*virtual*/ RS2::ActionType ActionSelectLayer::rtti()
{
return RS2::ActionSelectLayer;
}
-void RS_ActionSelectLayer::trigger()
+void ActionSelectLayer::trigger()
{
- if (en != NULL)
+ if (en)
{
RS_Selection s(*container, graphicView);
s.selectLayer(en);
- if (RS_DIALOGFACTORY != NULL)
+ if (RS_DIALOGFACTORY)
RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
}
else
- RS_DEBUG->print("RS_ActionSelectLayer::trigger: Entity is NULL\n");
+ RS_DEBUG->print("ActionSelectLayer::trigger: Entity is NULL\n");
}
-void RS_ActionSelectLayer::mouseReleaseEvent(QMouseEvent * e)
+void ActionSelectLayer::mouseReleaseEvent(QMouseEvent * e)
{
if (e->button() == Qt::RightButton)
init(getStatus() - 1);
}
}
-void RS_ActionSelectLayer::updateMouseCursor()
+void ActionSelectLayer::updateMouseCursor()
{
graphicView->setMouseCursor(RS2::SelectCursor);
}
-
-// EOF