]> Shamusworld >> Repos - architektonas/blob - src/actions/actionblocksedit.cpp
548e4ced22a717577c0ba1002a65cd310a933b19
[architektonas] / src / actions / actionblocksedit.cpp
1 // actionblocksedit.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 "actionblocksedit.h"
16
17 #include "drawing.h"
18 #include "rs_dialogfactory.h"
19
20 ActionBlocksEdit::ActionBlocksEdit(RS_EntityContainer & container, GraphicView & graphicView):
21         ActionInterface("Edit Block", container, graphicView)
22 {
23 }
24
25 ActionBlocksEdit::~ActionBlocksEdit()
26 {
27 }
28
29 void ActionBlocksEdit::trigger()
30 {
31         RS_DEBUG->print("edit block");
32
33         if (graphic && RS_DIALOGFACTORY)
34                 RS_DIALOGFACTORY->requestEditBlockWindow(graphic->getBlockList());
35         else
36                 RS_DEBUG->print(RS_Debug::D_WARNING, "ActionBlocksEdit::trigger(): graphic is NULL");
37
38         finish();
39 }
40
41 void ActionBlocksEdit::init(int status)
42 {
43         ActionInterface::init(status);
44         trigger();
45 }