]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionselectlayer.cpp
In the middle of major refactoring...
[architektonas] / src / actions / actionselectlayer.cpp
similarity index 58%
rename from src/actions/rs_actionselectlayer.cpp
rename to src/actions/actionselectlayer.cpp
index 788e40376dd5ab601a9f6d49dafb14d1fa2e2427..3bd91322c917565b3f6fa63edbd7f0fdcb3a7ff0 100644 (file)
@@ -1,4 +1,4 @@
-// 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);
@@ -57,9 +57,7 @@ void RS_ActionSelectLayer::mouseReleaseEvent(QMouseEvent * e)
        }
 }
 
-void RS_ActionSelectLayer::updateMouseCursor()
+void ActionSelectLayer::updateMouseCursor()
 {
        graphicView->setMouseCursor(RS2::SelectCursor);
 }
-
-// EOF