X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdrawingview.h;h=3531291ac5bb4b1f51d84b65068032ebd6394171;hb=84afe881653a02a16b19d4da37435b8701b1a826;hp=2cc4bcdac8676e0118e2214eff3f5c4ddfbb9e5b;hpb=c58b8a9f8b1ae5494857fc423ed8e33b2bbcf329;p=architektonas diff --git a/src/drawingview.h b/src/drawingview.h index 2cc4bcd..3531291 100644 --- a/src/drawingview.h +++ b/src/drawingview.h @@ -1,10 +1,13 @@ #ifndef __DRAWINGVIEW_H__ #define __DRAWINGVIEW_H__ -#include +#include #include -#include "action.h" -#include "container.h" +//#include "action.h" +//#include "container.h" +#include "structs.h" + +class Painter; class DrawingView: public QWidget { @@ -14,10 +17,11 @@ 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 *); @@ -50,18 +54,11 @@ class DrawingView: public QWidget 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;