]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.h
Rendering for Line, Circle, and Arc work.
[architektonas] / src / drawingview.h
index af0fa9265afdade5a85430e35b5a6905aad0dd64..3531291ac5bb4b1f51d84b65068032ebd6394171 100644 (file)
@@ -3,8 +3,11 @@
 
 #include <QtWidgets>
 #include <stdint.h>
-#include "action.h"
-#include "container.h"
+//#include "action.h"
+//#include "container.h"
+#include "structs.h"
+
+class Painter;
 
 class DrawingView: public QWidget
 {
@@ -14,10 +17,11 @@ class DrawingView: public QWidget
                DrawingView(QWidget * parent = NULL);
 
        public:
-//             void SetRotateToolActive(bool state = true);
-               void SetToolActive(Action * action);
+//             void SetToolActive(Action * action);
                void SetGridSize(uint32_t);
                void UpdateGridBackground(void);
+               Point SnapPointToGrid(Point);
+               void RenderObjects(Painter *, Container *);
 
        public slots:
                void AddNewObjectToDocument(Object *);
@@ -50,18 +54,11 @@ class DrawingView: public QWidget
                uint32_t gridPixels;                                    // Grid size in pixels
        private:
                bool collided;
-//Should this go into Object's class variables???
-//maybe, maybe not... :-P
-//             bool rotateTool;
-//             double rx, ry;
                bool scrollDrag;
                Vector oldPoint;
-//             bool addLineTool;
-//             bool addCircleTool;
-//             bool addDimensionTool;
 
        public:
-               Action * toolAction;
+//             Action * toolAction;
 
 //     public:
 //             static Container document;