X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factionlayersedit.cpp;h=21bffbe55a8279901580f3077d84e1e1c5bb3a70;hb=e1d1cacbb43055988d0d9db632fdf05c0bea9543;hp=187fb7592416ec11a35a377993b1fba6d33cf98a;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/actions/actionlayersedit.cpp b/src/actions/actionlayersedit.cpp index 187fb75..21bffbe 100644 --- a/src/actions/actionlayersedit.cpp +++ b/src/actions/actionlayersedit.cpp @@ -3,7 +3,9 @@ // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun // Extensively rewritten and refactored by James L. Hammons -// (C) 2010 Underground Software +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -14,11 +16,11 @@ #include "actionlayersedit.h" -#include "rs_dialogfactory.h" +#include "dialogfactory.h" #include "graphicview.h" #include "drawing.h" -ActionLayersEdit::ActionLayersEdit(RS_EntityContainer & container, GraphicView & graphicView): +ActionLayersEdit::ActionLayersEdit(EntityContainer & container, GraphicView & graphicView): ActionInterface("Edit Layer", container, graphicView) { } @@ -29,22 +31,22 @@ ActionLayersEdit::~ActionLayersEdit() void ActionLayersEdit::trigger() { - RS_DEBUG->print("ActionLayersEdit::trigger"); - RS_Layer * layer = NULL; + DEBUG->print("ActionLayersEdit::trigger"); + Layer * layer = NULL; if (graphic) { - layer = RS_DIALOGFACTORY->requestEditLayerDialog(graphic->getLayerList()); + layer = DIALOGFACTORY->requestEditLayerDialog(graphic->getLayerList()); if (layer) { graphic->editLayer(graphic->getActiveLayer(), *layer); - // update updateable entities on the layer that has changed - for(RS_Entity * e=graphic->firstEntity(RS2::ResolveNone); + // Update updatable entities on the layer that has changed + for(Entity * e=graphic->firstEntity(RS2::ResolveNone); e!=NULL; e=graphic->nextEntity(RS2::ResolveNone)) { - RS_Layer * l = e->getLayer(); + Layer * l = e->getLayer(); if (l && l->getName() == layer->getName()) e->update();