1 // rs_actionlayersfreezeall.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 05/22/2010 Added this text. :-)
15 #include "rs_actionlayersfreezeall.h"
19 RS_ActionLayersFreezeAll::RS_ActionLayersFreezeAll(bool freeze, RS_EntityContainer & container, GraphicView & graphicView):
20 RS_ActionInterface("Freeze all Layers", container, graphicView)
22 this->freeze = freeze;
25 RS_ActionLayersFreezeAll::~RS_ActionLayersFreezeAll()
29 void RS_ActionLayersFreezeAll::trigger()
31 RS_DEBUG->print("RS_ActionLayersFreezeAll::trigger");
34 //RS_Layer* layer = graphic->getActiveLayer();
35 graphic->freezeAllLayers(freeze);
40 void RS_ActionLayersFreezeAll::init(int status)
42 RS_ActionInterface::init(status);