]> Shamusworld >> Repos - architektonas/blobdiff - src/object.cpp
Added 1st stab at grouping capability.
[architektonas] / src / object.cpp
index 925d9b4ceeeae7f6ef816da797d697bbf1327887..197fa8d0f63c202d07f0a9c38183d65cb01eab92 100644 (file)
@@ -26,10 +26,14 @@ int Object::viewportHeight = 0;
 bool Object::deleteActive = false;
 bool Object::dimensionActive = false;
 bool Object::snapToGrid = true;
+//snapToPoints all well here?
+bool Object::ignoreClicks = false;
+bool Object::dontMove = false;
 
 
-Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive),
-       needUpdate(false)//, attachedDimension(0)
+Object::Object(): position(Vector(0, 0)), parent(0), type(OTObject),
+       state(OSInactive), oldState(OSInactive), needUpdate(false)
+       //, attachedDimension(0)
 {
 }
 
@@ -162,6 +166,21 @@ printf("Object: Destroyed!\n");
 }
 
 
+/*virtual*/ QRectF Object::Extents(void)
+{
+       // Generic object returns an empty rect...
+       return QRectF();
+}
+
+
+#if 0
+/*virtual*/ ObjectType Object::Type(void)
+{
+       return OTObject;
+}
+#endif
+
+
 ObjectState Object::GetState(void)
 {
        return state;