X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.h;h=e8dc3af86c1522d61b2244f9f4bf7d6bd55e5bc1;hb=fc498c685147e3173130e2df8953cc52705553e9;hp=7d4301e81ef74603fbdfd21ac0aedc1d7f90cf0c;hpb=cc51915b01054ba81883b1149bda58394da341a2;p=architektonas diff --git a/src/drawingview.h b/src/drawingview.h index 7d4301e..e8dc3af 100644 --- a/src/drawingview.h +++ b/src/drawingview.h @@ -3,6 +3,7 @@ #include #include +#include "action.h" #include "container.h" class DrawingView: public QWidget @@ -14,6 +15,10 @@ class DrawingView: public QWidget public: void SetRotateToolActive(bool state = true); + void SetAddLineToolActive(bool state = true); + + public slots: + void AddNewObjectToDocument(Object *); protected: void paintEvent(QPaintEvent * event); @@ -39,6 +44,8 @@ class DrawingView: public QWidget double rx, ry; bool scrollDrag; Vector oldPoint; + bool addLineTool; + Action * toolAction; /* QSize minimumSizeHint() const; QSize sizeHint() const;