X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionlayersedit.cpp;fp=src%2Factions%2Frs_actionlayersedit.cpp;h=187fb7592416ec11a35a377993b1fba6d33cf98a;hb=d774c2655ba2c3657a565f325411144452392277;hp=85ebe069a540158703688bcb7ee5bc0c4802e524;hpb=468780dd17f8b0ebb35427a9fc43491721d44d69;p=architektonas diff --git a/src/actions/rs_actionlayersedit.cpp b/src/actions/actionlayersedit.cpp similarity index 56% rename from src/actions/rs_actionlayersedit.cpp rename to src/actions/actionlayersedit.cpp index 85ebe06..187fb75 100644 --- a/src/actions/rs_actionlayersedit.cpp +++ b/src/actions/actionlayersedit.cpp @@ -1,4 +1,4 @@ -// rs_actionlayersedit.cpp +// actionlayersedit.cpp // // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun @@ -12,41 +12,41 @@ // JLH 06/04/2010 Added this text. :-) // -#include "rs_actionlayersedit.h" +#include "actionlayersedit.h" #include "rs_dialogfactory.h" #include "graphicview.h" #include "drawing.h" -RS_ActionLayersEdit::RS_ActionLayersEdit(RS_EntityContainer & container, GraphicView & graphicView): - RS_ActionInterface("Edit Layer", container, graphicView) +ActionLayersEdit::ActionLayersEdit(RS_EntityContainer & container, GraphicView & graphicView): + ActionInterface("Edit Layer", container, graphicView) { } -RS_ActionLayersEdit::~RS_ActionLayersEdit() +ActionLayersEdit::~ActionLayersEdit() { } -void RS_ActionLayersEdit::trigger() +void ActionLayersEdit::trigger() { - RS_DEBUG->print("RS_ActionLayersEdit::trigger"); + RS_DEBUG->print("ActionLayersEdit::trigger"); RS_Layer * layer = NULL; - if (graphic != NULL) + if (graphic) { layer = RS_DIALOGFACTORY->requestEditLayerDialog(graphic->getLayerList()); - if (layer != NULL) + if (layer) { graphic->editLayer(graphic->getActiveLayer(), *layer); // update updateable entities on the layer that has changed - for (RS_Entity * e = graphic->firstEntity(RS2::ResolveNone); - e != NULL; e = graphic->nextEntity(RS2::ResolveNone)) + for(RS_Entity * e=graphic->firstEntity(RS2::ResolveNone); + e!=NULL; e=graphic->nextEntity(RS2::ResolveNone)) { RS_Layer * l = e->getLayer(); - if (l != NULL && l->getName() == layer->getName()) + if (l && l->getName() == layer->getName()) e->update(); } } @@ -56,10 +56,8 @@ void RS_ActionLayersEdit::trigger() graphicView->redraw(); } -void RS_ActionLayersEdit::init(int status) +void ActionLayersEdit::init(int status) { - RS_ActionInterface::init(status); + ActionInterface::init(status); trigger(); } - -// EOF