]> Shamusworld >> Repos - architektonas/blobdiff - src/object.h
Fixed Container loading, informative display.
[architektonas] / src / object.h
index 72aaad644f29a79d96dba2d08a59e83118529509..b8fdd9db76f70b0a2cf8fbd5e797951c278183e3 100644 (file)
@@ -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,7 +74,9 @@ class Object
                std::vector<Connection> connected;
 
                // Class variables
+       public:
                static QFont * font;
+       protected:
                static bool fixedAngle;
                static bool fixedLength;
                static int viewportHeight;
@@ -86,6 +89,7 @@ class Object
        public:
                static bool selectionInProgress;
                static QRectF selection;
+               static double gridSpacing;                      // Grid spacing in base units
 };
 
 #endif // __OBJECT_H__