]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondrawline.cpp
First steps in fixing/cleaning up preview/snapper rendering.
[architektonas] / src / actions / actiondrawline.cpp
index 9817bbaaf99ad039d437402583e69f55e5e16a8a..b387ee93501d197013f179b4a99c073f3c9cae65 100644 (file)
@@ -30,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");
 }
 
@@ -59,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");
@@ -140,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);
        }
@@ -297,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");
@@ -305,7 +303,6 @@ void ActionDrawLine::showOptions()
 
 void ActionDrawLine::hideOptions()
 {
-//     ActionInterface::hideOptions();
        ActionInterface::hideOptions();
        RS_DIALOGFACTORY->requestOptions(this, false);
 }