#include "graphicview.h"
#include "drawing.h"
-ActionLayersEdit::ActionLayersEdit(RS_EntityContainer & container, GraphicView & graphicView):
+ActionLayersEdit::ActionLayersEdit(EntityContainer & container, GraphicView & graphicView):
ActionInterface("Edit Layer", container, graphicView)
{
}
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 updatable entities on the layer that has changed
- for(RS_Entity * e=graphic->firstEntity(RS2::ResolveNone);
+ 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();