]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondefault.cpp
First steps in fixing/cleaning up preview/snapper rendering.
[architektonas] / src / actions / actiondefault.cpp
index ab2c2c348151ae90ead60c3e5d73b6ad74f8948d..29940ba90efe1cf50a55aa2f257aecdf6f39e126 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>
 //
@@ -16,6 +18,7 @@
 
 #include "rs.h"
 #include "rs_commandevent.h"
+#include "rs_debug.h"
 #include "rs_dialogfactory.h"
 #include "rs_line.h"
 #include "rs_modification.h"
  * Constructor.
  */
 ActionDefault::ActionDefault(RS_EntityContainer & container,
-       GraphicView & graphicView): ActionInterface("Default",
-       container, graphicView)
+       GraphicView & graphicView):
+       ActionInterface("Default", container, graphicView)
 {
        RS_DEBUG->print("ActionDefault::ActionDefault");
        //hm.
-       graphicView.snapper.SetVisible();
-       graphicView.preview.SetVisible();
+//     graphicView.snapper.SetVisible();
+//     graphicView.preview.SetVisible();
        RS_DEBUG->print("ActionDefault::ActionDefault: OK");
 }
 
@@ -56,9 +59,6 @@ void ActionDefault::init(int status /*= 0*/)
        graphicView->snapper.setSnapRestriction(RS2::RestrictNothing);
        restrBak = RS2::RestrictNothing;
        RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
-//hm. Nope.
-//     graphicView->snapper.SetVisible();
-//     graphicView->preview.SetVisible();
 
        RS_DEBUG->print("ActionDefault::init: OK");
 }