X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.cpp;h=3820d7ee374bafe8c860395fd046302615222d1f;hb=746443089f76c115245d1500b780d7d189b9b2af;hp=4be11f55fa0961ceb78202881bcc3b2bc0ce577c;hpb=fa8da664bfb749497b1b2d2991077af0554cc369;p=architektonas diff --git a/src/object.cpp b/src/object.cpp index 4be11f5..3820d7e 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -22,15 +22,16 @@ 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) { } @@ -70,6 +71,15 @@ Object::~Object() { } +/*virtual*/ Object * Object::GetParent(void) +{ + return parent; +} + +/*virtual*/ void Object::Add(Object *) +{ +} + ObjectState Object::GetState(void) { return state; @@ -101,3 +111,8 @@ void Object::SetDeleteActive(bool state/*= true*/) { deleteActive = state; } + +void Object::SetDimensionActive(bool state/*= true*/) +{ + dimensionActive = state; +}