]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_grid.cpp
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / base / rs_grid.cpp
index 61368edc9f25228fa1b7aa006aabe74b1e9ba175..c2f43e078db7538595802ceaf35ba9d18d419a51 100644 (file)
 
 #include "rs_grid.h"
 
-#include "rs_units.h"
-#include "rs_graphic.h"
+#include "drawing.h"
+#include "graphicview.h"
+//#include "rs_graphicview.h"
 #include "settings.h"
+#include "rs_units.h"
+#include "vector.h"
 
+#warning "!!! Clean out all references to RS_GraphicView here and in header !!!"
+#if 0
 /**
  * Constructor.
  */
@@ -25,6 +30,15 @@ RS_Grid::RS_Grid(RS_GraphicView * gv): graphicView(gv), pt(NULL), number(0),
        metaX(NULL), numMetaX(0), metaY(NULL), numMetaY(0)
 {
 }
+#endif
+
+/**
+ * Constructor II.
+ */
+RS_Grid::RS_Grid(GraphicView * gv): graphicView(gv), pt(NULL), number(0),
+       metaX(NULL), numMetaX(0), metaY(NULL), numMetaY(0)
+{
+}
 
 /**
  * Destructor.
@@ -51,7 +65,7 @@ void RS_Grid::update()
        if (!graphicView->isGridOn())
                return;
 
-       RS_Graphic * graphic = graphicView->getGraphic();
+       Drawing * graphic = graphicView->getGraphic();
 
        // auto scale grid?
        settings.beginGroup("Appearance");