]> Shamusworld >> Repos - architektonas/blobdiff - src/object.h
Added new triangulation tool, ability to snap to endpoints/intersections.
[architektonas] / src / object.h
index f7d5d7c0a493b02c31d07070ef7bcdcc511e0baf..ff29e1f7618328b5fa7689efc95c4ec6a6221b51 100644 (file)
@@ -13,7 +13,7 @@ class Dimension;
 //class FILE;
 
 enum ObjectState { OSInactive, OSSelected };
-enum ObjectType { OTNone, OTObject, OTLine, OTCircle, OTArc, OTDimension, OTEllipse, OTContainer };
+enum ObjectType { OTNone, OTObject, OTLine, OTCircle, OTArc, OTDimension, OTEllipse, OTContainer, OTSpline };
 
 class Object
 {
@@ -97,6 +97,8 @@ class Object
                static QRectF selection;
                static double gridSpacing;                      // Grid spacing in base units
                static int currentLayer;
+               static Point snapPoint;
+               static bool snapPointIsValid;
 };
 
 #endif // __OBJECT_H__