]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionmodifyexplodetext.cpp
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionmodifyexplodetext.cpp
1 // rs_actionmodifyexplodetext.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  06/04/2010  Added this text. :-)
13 //
14
15 #include "rs_actionmodifyexplodetext.h"
16
17 #include "rs_modification.h"
18
19 /**
20  * Constructor.
21  */
22 RS_ActionModifyExplodeText::RS_ActionModifyExplodeText(RS_EntityContainer & container,
23         GraphicView & graphicView): RS_PreviewActionInterface("Blocks Explode",
24                 container, graphicView)
25 {
26 }
27
28 RS_ActionModifyExplodeText::~RS_ActionModifyExplodeText()
29 {
30 }
31
32 /*virtual*/ RS2::ActionType RS_ActionModifyExplodeText::rtti()
33 {
34         return RS2::ActionModifyExplodeText;
35 }
36
37 void RS_ActionModifyExplodeText::init(int status)
38 {
39         RS_PreviewActionInterface::init(status);
40
41         trigger();
42         finish();
43 }
44
45 void RS_ActionModifyExplodeText::trigger()
46 {
47         RS_Modification m(*container, graphicView);
48         m.explodeTextIntoLetters();
49 }