X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionselectlayer.cpp;fp=src%2Factions%2Frs_actionselectlayer.cpp;h=3bd91322c917565b3f6fa63edbd7f0fdcb3a7ff0;hb=d774c2655ba2c3657a565f325411144452392277;hp=788e40376dd5ab601a9f6d49dafb14d1fa2e2427;hpb=468780dd17f8b0ebb35427a9fc43491721d44d69;p=architektonas diff --git a/src/actions/rs_actionselectlayer.cpp b/src/actions/actionselectlayer.cpp similarity index 58% rename from src/actions/rs_actionselectlayer.cpp rename to src/actions/actionselectlayer.cpp index 788e403..3bd9132 100644 --- a/src/actions/rs_actionselectlayer.cpp +++ b/src/actions/actionselectlayer.cpp @@ -1,4 +1,4 @@ -// rs_actionselectlayer.cpp +// actionselectlayer.cpp // // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun @@ -12,41 +12,41 @@ // 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