]> Shamusworld >> Repos - architektonas/blob - src/actions/actionblocksexplode.cpp
In the middle of major refactoring...
[architektonas] / src / actions / actionblocksexplode.cpp
1 // actionblocksexplode.cpp
2 //
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
7 //
8 // JLH = James L. Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -----------------------------------------------------------
12 // JLH  07/12/2010  Added this text. :-)
13 //
14
15 #include "actionblocksexplode.h"
16
17 #include "rs_modification.h"
18
19 /**
20  * Constructor.
21  */
22 ActionBlocksExplode::ActionBlocksExplode(RS_EntityContainer & container, GraphicView & graphicView):
23         ActionInterface("Blocks Explode", container, graphicView)
24 {
25 }
26
27 ActionBlocksExplode::~ActionBlocksExplode()
28 {
29 }
30
31 /*virtual*/ RS2::ActionType ActionBlocksExplode::rtti()
32 {
33         return RS2::ActionBlocksExplode;
34 }
35
36 void ActionBlocksExplode::init(int status)
37 {
38         ActionInterface::init(status);
39
40         trigger();
41         finish();
42 }
43
44 void ActionBlocksExplode::trigger()
45 {
46         RS_Modification m(*container, graphicView);
47         m.explode();
48 }