]> Shamusworld >> Repos - architektonas/blobdiff - src/object.cpp
Added gratuitous About screen.
[architektonas] / src / object.cpp
index eaef4d4484eb9d002d34777354554704cac985b7..3820d7ee374bafe8c860395fd046302615222d1f 100644 (file)
@@ -21,15 +21,17 @@ bool Object::fixedAngle = false;
 bool Object::fixedLength = false;
 QFont * Object::font = 0;
 int Object::viewportHeight = 0;
+bool Object::deleteActive = false;
+bool Object::dimensionActive = false;
 
 
 Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive),
-       needUpdate(false), dimPoint1(0), dimPoint2(0)
+       needUpdate(false), attachedDimension(0)
 {
 }
 
 Object::Object(Vector v,  Object * passedInParent/*= 0*/): position(v), parent(passedInParent),
-       state(OSInactive), oldState(OSInactive), needUpdate(false), dimPoint1(0), dimPoint2(0)
+       state(OSInactive), oldState(OSInactive), needUpdate(false), attachedDimension(0)
 {
 }
 
@@ -69,6 +71,15 @@ Object::~Object()
 {
 }
 
+/*virtual*/ Object * Object::GetParent(void)
+{
+       return parent;
+}
+
+/*virtual*/ void Object::Add(Object *)
+{
+}
+
 ObjectState Object::GetState(void)
 {
        return state;
@@ -95,3 +106,13 @@ void Object::SetViewportHeight(int height)
 {
        viewportHeight = height;
 }
+
+void Object::SetDeleteActive(bool state/*= true*/)
+{
+       deleteActive = state;
+}
+
+void Object::SetDimensionActive(bool state/*= true*/)
+{
+       dimensionActive = state;
+}