]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondrawline.cpp
Partially fixed thumbnail rendering on Library Browser.
[architektonas] / src / actions / actiondrawline.cpp
index e6ae87a68b0807ef233e398c7b6b3b84e82b6345..b387ee93501d197013f179b4a99c073f3c9cae65 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>
 //
@@ -17,6 +19,7 @@
 #include "actioneditundo.h"
 #include "rs_commandevent.h"
 #include "commands.h"
+#include "rs_debug.h"
 #include "rs_dialogfactory.h"
 #include "graphicview.h"
 #include "rs_preview.h"
@@ -27,10 +30,10 @@ ActionDrawLine::ActionDrawLine(RS_EntityContainer & container, GraphicView & gra
        RS_DEBUG->print("ActionDrawLine::ActionDrawLine");
        reset();
        //hm.
-       graphicView.snapper.SetContainer(&container);
-       graphicView.snapper.SetGraphicView(&graphicView);
-       graphicView.snapper.SetVisible();
-       graphicView.preview.SetVisible();
+//     graphicView.snapper.SetContainer(&container);
+//     graphicView.snapper.SetGraphicView(&graphicView);
+//     graphicView.snapper.SetVisible();
+//     graphicView.preview.SetVisible();
        RS_DEBUG->print("ActionDrawLine::ActionDrawLine: OK");
 }
 
@@ -56,7 +59,6 @@ void ActionDrawLine::reset()
 void ActionDrawLine::init(int status)
 {
        RS_DEBUG->print("ActionDrawLine::init");
-//     ActionInterface::init(status);
        ActionInterface::init(status);
        reset();
        RS_DEBUG->print("ActionDrawLine::init: OK");
@@ -137,11 +139,11 @@ void ActionDrawLine::mouseReleaseEvent(QMouseEvent * e)
        }
        else if (e->button() == Qt::RightButton)
        {
-               if (getStatus() == 0)
-               {
-                       graphicView->snapper.SetVisible(false);
-                       graphicView->preview.SetVisible(false);
-               }
+//             if (getStatus() == 0)
+//             {
+//                     graphicView->snapper.SetVisible(false);
+//                     graphicView->preview.SetVisible(false);
+//             }
 
                init(getStatus() - 1);
        }
@@ -294,7 +296,6 @@ void ActionDrawLine::updateMouseButtonHints()
 void ActionDrawLine::showOptions()
 {
        RS_DEBUG->print("ActionDrawLine::showOptions");
-//     ActionInterface::showOptions();
        ActionInterface::showOptions();
        RS_DIALOGFACTORY->requestOptions(this, true);
        RS_DEBUG->print("ActionDrawLine::showOptions: OK");
@@ -302,7 +303,6 @@ void ActionDrawLine::showOptions()
 
 void ActionDrawLine::hideOptions()
 {
-//     ActionInterface::hideOptions();
        ActionInterface::hideOptions();
        RS_DIALOGFACTORY->requestOptions(this, false);
 }