#include "rs_previewactioninterface.h"
#include "rs_debug.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
#include "rs_preview.h"
/**
* 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);
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())
{
//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();
visible = !visible;
#endif
-#endif
}