]> Shamusworld >> Repos - architektonas/blobdiff - src/base/actioninterface.cpp
Adding missing implementation.
[architektonas] / src / base / actioninterface.cpp
index 4280b5c9c8a40f1b9234212b4bcf6f652403f3d5..b62b57869a8c2841342fb2ce6af8e7d1a211ecea 100644 (file)
@@ -3,7 +3,9 @@
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
 //
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
@@ -43,7 +45,6 @@ ActionInterface::ActionInterface(const char * name, RS_EntityContainer & c,
        this->name = name;
        status = 0;
        finished = false;
-       //triggerOnResume = false;
 
        // Graphic provides a pointer to the graphic if the entity container is a
        //graphic (i.e. can also hold layers).
@@ -52,8 +53,11 @@ ActionInterface::ActionInterface(const char * name, RS_EntityContainer & c,
        // Document pointer will be used for undo / redo
        document = c.getDocument();
 
-       //this->cursor = cursor;
-       //setSnapMode(graphicView.getDefaultSnapMode());
+       // This is here until I can figure out a better way to contain all of this
+       // circular referential nonsense that exists in this codebase. It will be
+       // expunged, by Grabthar's Hammer!
+       graphicView->snapper.SetContainer(container);
+       graphicView->snapper.SetGraphicView(graphicView);       // <-- THIS is what I mean! INSANE!
 
        RS_DEBUG->print("ActionInterface::ActionInterface: Setting up action: \"%s\": OK", name);
 }