]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_previewactioninterface.cpp
Fixed preview rendering for ActionDrawLine...
[architektonas] / src / base / rs_previewactioninterface.cpp
index eb6a5c2cca09e97f253ae0a523870c2fcfe3ed31..d8431525c1ce7670acb1f6bda46fdbbaaa6f8980 100644 (file)
 
 #include "rs_previewactioninterface.h"
 
+#include "rs_debug.h"
+#include "graphicview.h"
+#include "rs_preview.h"
+
 /**
  * Constructor.
  *
@@ -21,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);
@@ -100,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())
        {
@@ -129,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();
@@ -140,5 +144,4 @@ void RS_PreviewActionInterface::xorPreview()
 
        visible = !visible;
 #endif
-#endif
 }