1 // rs_actionblocksfreezeall.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_actionblocksfreezeall.h"
18 #include "graphicview.h"
20 RS_ActionBlocksFreezeAll::RS_ActionBlocksFreezeAll(bool freeze, RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Freeze all Blocks",
21 container, graphicView)
23 this->freeze = freeze;
26 RS_ActionBlocksFreezeAll::~RS_ActionBlocksFreezeAll()
30 void RS_ActionBlocksFreezeAll::trigger()
32 RS_DEBUG->print("RS_ActionBlocksFreezeAll::trigger");
35 graphic->freezeAllBlocks(freeze);
37 graphicView->redraw();
41 void RS_ActionBlocksFreezeAll::init(int status)
43 RS_ActionInterface::init(status);