1 // actionlockrelativezero.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/04/2010 Added this text. :-)
15 #include "actionlockrelativezero.h"
17 #include "graphicview.h"
19 ActionLockRelativeZero::ActionLockRelativeZero(
20 RS_EntityContainer & container, GraphicView & graphicView, bool on):
21 ActionInterface("(Un-)lock the relative Zero", container, graphicView)
26 ActionLockRelativeZero::~ActionLockRelativeZero()
30 void ActionLockRelativeZero::init(int status)
32 ActionInterface::init(status);
37 void ActionLockRelativeZero::trigger()
39 graphicView->lockRelativeZero(on);