]> Shamusworld >> Repos - architektonas/blob - src/actions/actionzoomredraw.cpp
In the middle of major refactoring...
[architektonas] / src / actions / actionzoomredraw.cpp
1 // actionzoomredraw.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/05/2010  Added this text. :-)
13 //
14
15 #include "actionzoomredraw.h"
16
17 #include "graphicview.h"
18
19 /**
20  * Constructor.
21  *
22  * @param keepAspectRatio true: keep same zoom value for x/y.
23  *                        false: adjust both x and y individually
24  */
25 ActionZoomRedraw::ActionZoomRedraw(RS_EntityContainer & container, GraphicView & graphicView):
26         ActionInterface("Redraw", container, graphicView)
27 {
28 }
29
30 ActionZoomRedraw::~ActionZoomRedraw()
31 {
32 }
33
34 void ActionZoomRedraw::init(int status)
35 {
36         ActionInterface::init(status);
37         trigger();
38 }
39
40 void ActionZoomRedraw::trigger()
41 {
42         graphicView->redraw();
43         finish();
44 }