X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fobject.h;h=b8fdd9db76f70b0a2cf8fbd5e797951c278183e3;hb=143b369c0308a8cd524cb0ed51c5d67d6be69603;hp=513b677fba566421b6999859b705a8d051e76fba;hpb=70297ac8ec7453e4196f4b58056bcfe4b04f2aca;p=architektonas diff --git a/src/object.h b/src/object.h index 513b677..b8fdd9d 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) @@ -73,18 +74,22 @@ class Object std::vector connected; // Class variables + public: static QFont * font; + protected: static bool fixedAngle; static bool fixedLength; static int viewportHeight; static bool deleteActive; static bool dimensionActive; + public: static bool snapToGrid; static bool ignoreClicks; static bool dontMove; public: static bool selectionInProgress; static QRectF selection; + static double gridSpacing; // Grid spacing in base units }; #endif // __OBJECT_H__