1 // 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 "actionblockstoggleview.h"
18 #include "graphicview.h"
20 ActionBlocksToggleView::ActionBlocksToggleView(RS_EntityContainer & container,
21 GraphicView & graphicView): ActionInterface("Toggle Block Visibility",
22 container, graphicView)
26 ActionBlocksToggleView::~ActionBlocksToggleView()
30 void ActionBlocksToggleView::trigger()
32 RS_DEBUG->print("toggle block");
36 RS_Block * block = graphic->getActiveBlock();
37 graphic->toggleBlock(block);
40 graphicView->redraw();
44 void ActionBlocksToggleView::init(int status)
46 ActionInterface::init(status);