]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionzoomautoy.cpp
1705ff635a8d6b213c1d6cab22b2406e17548c5b
[architektonas] / src / actions / rs_actionzoomautoy.cpp
1 // rs_actionzoomautoy.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 "rs_actionzoomautoy.h"
16
17 #include "graphicview.h"
18
19 RS_ActionZoomAutoY::RS_ActionZoomAutoY(RS_EntityContainer & container, GraphicView & graphicView):
20         RS_ActionInterface("Auto zoom Y", container, graphicView)
21 {
22 }
23
24 RS_ActionZoomAutoY::~RS_ActionZoomAutoY()
25 {
26 }
27
28 void RS_ActionZoomAutoY::trigger()
29 {
30         graphicView->zoomAutoY(false);
31         finish();
32 }
33
34 void RS_ActionZoomAutoY::init(int status)
35 {
36         RS_ActionInterface::init(status);
37         trigger();
38 }