]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionlayersremove.cpp
Phase two of adding polyline functionality...
[architektonas] / src / actions / actionlayersremove.cpp
index ac6bd42a60345dca98f59f231f6c0859913b7f9c..47b738715547a1fff4d6a2c8df461d9657e147ed 100644 (file)
@@ -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 <jlhamm@acm.org>
 //
 
 #include "actionlayersremove.h"
 
-#include "rs_dialogfactory.h"
+#include "dialogfactory.h"
 #include "drawing.h"
 
-ActionLayersRemove::ActionLayersRemove(RS_EntityContainer & container,
+ActionLayersRemove::ActionLayersRemove(EntityContainer & container,
        GraphicView & graphicView):
        ActionInterface("Remove Layer", container, graphicView)
 {
@@ -29,19 +31,19 @@ ActionLayersRemove::~ActionLayersRemove()
 
 void ActionLayersRemove::trigger()
 {
-       RS_DEBUG->print("ActionLayersRemove::trigger");
+       DEBUG->print("ActionLayersRemove::trigger");
 
        if (graphic)
        {
-               RS_Layer * layer =
-                       RS_DIALOGFACTORY->requestLayerRemovalDialog(graphic->getLayerList());
+               Layer * layer =
+                       DIALOGFACTORY->requestLayerRemovalDialog(graphic->getLayerList());
 
                // Now remove the layer from the layer list:
                graphic->removeLayer(layer);
        }
 
        finish();
-       RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());
+       DIALOGFACTORY->updateSelectionWidget(container->countSelected());
 }
 
 void ActionLayersRemove::init(int status)