]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionzoomprevious.cpp
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionzoomprevious.cpp
1 // rs_actionzoomprevious.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_actionzoomprevious.h"
16
17 #include "graphicview.h"
18
19 /**
20  * Constructor.
21  */
22 RS_ActionZoomPrevious::RS_ActionZoomPrevious(RS_EntityContainer & container, GraphicView & graphicView):
23         RS_ActionInterface("Previous zoom", container, graphicView)
24 {
25 }
26
27 RS_ActionZoomPrevious::~RS_ActionZoomPrevious()
28 {
29 }
30
31 void RS_ActionZoomPrevious::init(int status)
32 {
33         RS_ActionInterface::init(status);
34         trigger();
35 }
36
37 void RS_ActionZoomPrevious::trigger()
38 {
39         graphicView->zoomPrevious();
40         finish();
41 }