]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.h
Initial work on bringing sanity to insane codebase.
[architektonas] / src / drawingview.h
index af0fa9265afdade5a85430e35b5a6905aad0dd64..5cbd53b8952411808ec7ebb9622d72251613df17 100644 (file)
@@ -3,8 +3,9 @@
 
 #include <QtWidgets>
 #include <stdint.h>
-#include "action.h"
-#include "container.h"
+//#include "action.h"
+//#include "container.h"
+#include "structs.h"
 
 class DrawingView: public QWidget
 {
@@ -14,10 +15,10 @@ 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);
 
        public slots:
                void AddNewObjectToDocument(Object *);
@@ -50,18 +51,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;