]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.h
Added mouse wheel zoom.
[architektonas] / src / drawingview.h
index 55384fa48a3c7c686abc5ba2d44b46dd2d961718..2cc4bcdac8676e0118e2214eff3f5c4ddfbb9e5b 100644 (file)
@@ -14,13 +14,14 @@ class DrawingView: public QWidget
                DrawingView(QWidget * parent = NULL);
 
        public:
-               void SetRotateToolActive(bool state = true);
+//             void SetRotateToolActive(bool state = true);
                void SetToolActive(Action * action);
                void SetGridSize(uint32_t);
                void UpdateGridBackground(void);
 
        public slots:
                void AddNewObjectToDocument(Object *);
+               void HandleActionUpdate(void);
                void SetCurrentLayer(int);
 
        protected:
@@ -29,6 +30,7 @@ class DrawingView: public QWidget
                void mousePressEvent(QMouseEvent * event);
                void mouseMoveEvent(QMouseEvent * event);
                void mouseReleaseEvent(QMouseEvent * event);
+               void wheelEvent(QWheelEvent * event);
                void keyPressEvent(QKeyEvent * event);
                void keyReleaseEvent(QKeyEvent * event);
 
@@ -50,8 +52,8 @@ class DrawingView: public QWidget
                bool collided;
 //Should this go into Object's class variables???
 //maybe, maybe not... :-P
-               bool rotateTool;
-               double rx, ry;
+//             bool rotateTool;
+//             double rx, ry;
                bool scrollDrag;
                Vector oldPoint;
 //             bool addLineTool;
@@ -60,6 +62,10 @@ class DrawingView: public QWidget
 
        public:
                Action * toolAction;
+
+//     public:
+//             static Container document;
 };
 
 #endif // __DRAWINGVIEW_H__
+