1 // rs_actionblockstoggleview.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/03/2010 Added this text. :-)
15 #include "rs_actionblockstoggleview.h"
18 #include "graphicview.h"
20 RS_ActionBlocksToggleView::RS_ActionBlocksToggleView(RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Toggle Block Visibility",
21 container, graphicView)
25 RS_ActionBlocksToggleView::~RS_ActionBlocksToggleView()
29 void RS_ActionBlocksToggleView::trigger()
31 RS_DEBUG->print("toggle block");
35 RS_Block * block = graphic->getActiveBlock();
36 graphic->toggleBlock(block);
39 graphicView->redraw();
43 void RS_ActionBlocksToggleView::init(int status)
45 RS_ActionInterface::init(status);