1 #ifndef __DRAWINGVIEW_H__
2 #define __DRAWINGVIEW_H__
9 class DrawingView: public QWidget
14 DrawingView(QWidget * parent = NULL);
17 // void SetRotateToolActive(bool state = true);
18 void SetToolActive(Action * action);
19 void SetGridSize(uint32_t);
20 void UpdateGridBackground(void);
23 void AddNewObjectToDocument(Object *);
24 void HandleActionUpdate(void);
25 void SetCurrentLayer(int);
28 void paintEvent(QPaintEvent * event);
29 void resizeEvent(QResizeEvent * event);
30 void mousePressEvent(QMouseEvent * event);
31 void mouseMoveEvent(QMouseEvent * event);
32 void mouseReleaseEvent(QMouseEvent * event);
33 void keyPressEvent(QKeyEvent * event);
34 void keyReleaseEvent(QKeyEvent * event);
37 QPoint GetAdjustedMousePosition(QMouseEvent * event);
38 QPoint GetAdjustedClientPosition(int x, int y);
44 QPixmap gridBackground;
45 double scale; // Window scaling factor
46 int32_t offsetX, offsetY; // Window offsets
49 uint32_t gridPixels; // Grid size in pixels
52 //Should this go into Object's class variables???
53 //maybe, maybe not... :-P
59 // bool addCircleTool;
60 // bool addDimensionTool;
66 // static Container document;
69 #endif // __DRAWINGVIEW_H__