X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fobject.h;h=0a72328cc6d8446b0804d1792c38240407a1b5af;hb=642cf72c11b49a9e00128ab6258a2438c785a5ab;hp=72aaad644f29a79d96dba2d08a59e83118529509;hpb=bb8d0671717bac2c5350e34024273381be1d8175;p=architektonas diff --git a/src/object.h b/src/object.h index 72aaad6..0a72328 100644 --- a/src/object.h +++ b/src/object.h @@ -57,6 +57,7 @@ class Object static void SetDeleteActive(bool state = true); static void SetDimensionActive(bool state = true); static void SetSnapMode(bool state = true); + static Vector SnapPointToGrid(Vector); protected: Vector position; // All objects have a position (doubles as reference point) @@ -66,6 +67,7 @@ class Object public: ObjectType type; ObjectState state; + unsigned int layer; protected: ObjectState oldState; bool needUpdate; @@ -73,7 +75,9 @@ class Object std::vector connected; // Class variables + public: static QFont * font; + protected: static bool fixedAngle; static bool fixedLength; static int viewportHeight; @@ -86,6 +90,8 @@ class Object public: static bool selectionInProgress; static QRectF selection; + static double gridSpacing; // Grid spacing in base units + static int currentLayer; }; #endif // __OBJECT_H__