1 // actionsetsnapmode.cpp
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
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 06/05/2010 Added this text. :-)
15 #include "actionsetsnapmode.h"
17 #include "graphicview.h"
22 * @param snapMode The new snap mode used from now on.
24 ActionSetSnapMode::ActionSetSnapMode(RS_EntityContainer & container, GraphicView & graphicView, RS2::SnapMode snapMode):
25 ActionInterface("Set Snap Mode", container, graphicView)
27 this->snapMode = snapMode;
30 ActionSetSnapMode::~ActionSetSnapMode()
34 void ActionSetSnapMode::trigger()
36 graphicView->setDefaultSnapMode(snapMode);
40 void ActionSetSnapMode::init(int status)
42 ActionInterface::init(status);