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 wheelEvent(QWheelEvent * event);
34 void keyPressEvent(QKeyEvent * event);
35 void keyReleaseEvent(QKeyEvent * event);
38 QPoint GetAdjustedMousePosition(QMouseEvent * event);
39 QPoint GetAdjustedClientPosition(int x, int y);
45 QPixmap gridBackground;
46 double scale; // Window scaling factor
47 int32_t offsetX, offsetY; // Window offsets
50 uint32_t gridPixels; // Grid size in pixels
53 //Should this go into Object's class variables???
54 //maybe, maybe not... :-P
60 // bool addCircleTool;
61 // bool addDimensionTool;
67 // static Container document;
70 #endif // __DRAWINGVIEW_H__