1 // actionlayersedit.cpp
3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 06/04/2010 Added this text. :-)
15 #include "actionlayersremove.h"
17 #include "rs_dialogfactory.h"
20 ActionLayersRemove::ActionLayersRemove(RS_EntityContainer & container,
21 GraphicView & graphicView):
22 ActionInterface("Remove Layer", container, graphicView)
26 ActionLayersRemove::~ActionLayersRemove()
30 void ActionLayersRemove::trigger()
32 RS_DEBUG->print("ActionLayersRemove::trigger");
37 RS_DIALOGFACTORY->requestLayerRemovalDialog(graphic->getLayerList());
39 // Now remove the layer from the layer list:
40 graphic->removeLayer(layer);
44 RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
47 void ActionLayersRemove::init(int status)
49 ActionInterface::init(status);