]> Shamusworld >> Repos - architektonas/blob - src/actions/actionfilenew.cpp
e44f3d0bf612d8fb7fdd832c3715cb88b11ea145
[architektonas] / src / actions / actionfilenew.cpp
1 // actionfilenew.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 "actionfilenew.h"
16
17 //#include "drawing.h"
18
19 ActionFileNew::ActionFileNew(RS_EntityContainer & container, GraphicView & graphicView):
20         ActionInterface("File New", container, graphicView)
21 {
22 }
23
24 ActionFileNew::~ActionFileNew()
25 {
26 }
27
28 void ActionFileNew::trigger()
29 {
30         /*
31            // Not supported currently
32            RS_DEBUG->print("ActionFileNew::trigger");
33
34            QString fileName; //= RS_DIALOGFACTORY->requestFileNewDialog();
35            if (graphic!=NULL && !fileName.isEmpty()) {
36                 graphic->open(fileName, );
37            }
38          */
39         finish();
40 }
41
42 void ActionFileNew::init(int status)
43 {
44         ActionInterface::init(status);
45         trigger();
46 }