#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
{
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 *);
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;