]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_previewactioninterface.cpp
Fixed preview rendering for ActionDrawLine...
[architektonas] / src / base / rs_previewactioninterface.cpp
index b35fed1b1dcf1fc09fde3b185360e404a899a5f2..d8431525c1ce7670acb1f6bda46fdbbaaa6f8980 100644 (file)
@@ -15,7 +15,7 @@
 #include "rs_previewactioninterface.h"
 
 #include "rs_debug.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "rs_preview.h"
 
 /**
@@ -25,7 +25,7 @@
  * from this interface operates.
  */
 RS_PreviewActionInterface::RS_PreviewActionInterface(const char * name,
-       RS_EntityContainer & container, RS_GraphicView & graphicView):
+       RS_EntityContainer & container, GraphicView & graphicView):
        RS_ActionInterface(name, container, graphicView)
 {
        RS_DEBUG->print("RS_PreviewActionInterface::RS_PreviewActionInterface: Setting up action with preview: \"%s\"", name);
@@ -104,13 +104,14 @@ void RS_PreviewActionInterface::deletePreview()
                xorPreview();
 }
 
-//#include "qg_graphicview.h"
 /**
  * Draws / deletes the current preview.
  */
 void RS_PreviewActionInterface::xorPreview()
 {
-#warning "!!! xorPreview() not working AT ALL !!!"
+#warning "!!! RS_PreviewActionInterface::xorPreview() is DEPRECATED !!!"
+//not true anymore..
+//#warning "!!! xorPreview() not working AT ALL !!!"
 #if 0
        if (!preview->isEmpty())
        {
@@ -133,7 +134,6 @@ void RS_PreviewActionInterface::xorPreview()
 //This doesn't work, causes the thing to crash...
 //Now it works, just need to upgrade the rendering paths so that they aren't all
 //fucked up like QCad was...
-#if 1
        if (!preview->isEmpty())
        {
                graphicView->SetPreviewMode();
@@ -144,5 +144,4 @@ void RS_PreviewActionInterface::xorPreview()
 
        visible = !visible;
 #endif
-#endif
 }