]> Shamusworld >> Repos - architektonas/blob - src/actions/actionzoomscroll.cpp
Last checkin before major refactor...
[architektonas] / src / actions / actionzoomscroll.cpp
1 // actionzoomscroll.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 "actionzoomscroll.h"
16
17 #include "graphicview.h"
18
19 ActionZoomScroll::ActionZoomScroll(RS2::Direction direction, RS_EntityContainer & container, GraphicView & graphicView):
20         ActionInterface("Zoom scroll", container, graphicView)
21 {
22         this->direction = direction;
23 }
24
25 ActionZoomScroll::~ActionZoomScroll()
26 {
27 }
28
29 void ActionZoomScroll::trigger()
30 {
31         graphicView->zoomScroll(direction);
32         finish();
33 }
34
35 void ActionZoomScroll::init(int status)
36 {
37         ActionInterface::init(status);
38         trigger();
39 }