X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=39dbb9e4137633bf0483e7711ecb6df8fc3d8d81;hb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;hp=72aaad644f29a79d96dba2d08a59e83118529509;hpb=eb711912d64f17cf9c18c74c4d78d9867bd066ad;p=architektonas diff --git a/src/object.h b/src/object.h index 72aaad6..39dbb9e 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) @@ -86,6 +87,7 @@ class Object public: static bool selectionInProgress; static QRectF selection; + static double gridSpacing; // Grid spacing in base units }; #endif // __OBJECT_H__