X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=1e6342290d629b6ff3bc29a42096632e1e457c09;hb=a14390c31519388a3e4f01bc53c0e4572708940c;hp=e4bbe781c7c2a0bcb86ee8179d03f100faf0cd48;hpb=fa8da664bfb749497b1b2d2991077af0554cc369;p=architektonas diff --git a/src/object.h b/src/object.h index e4bbe78..1e63422 100644 --- a/src/object.h +++ b/src/object.h @@ -23,6 +23,8 @@ class Object virtual void PointerReleased(void); virtual bool NeedsUpdate(void); virtual void Transmute(Object *, Object *); + virtual Object * GetParent(void); + virtual void Add(Object *); ObjectState GetState(void); // Class methods @@ -31,6 +33,7 @@ class Object static void SetFont(QFont *); static void SetViewportHeight(int); static void SetDeleteActive(bool state = true); + static void SetDimensionActive(bool state = true); protected: Vector position; // All objects have a position (doubles as reference point) @@ -40,8 +43,7 @@ class Object ObjectState state; ObjectState oldState; bool needUpdate; - Dimension * dimPoint1; - Dimension * dimPoint2; + Dimension * attachedDimension; // Class variables static QFont * font; @@ -49,6 +51,7 @@ class Object static bool fixedLength; static int viewportHeight; static bool deleteActive; + static bool dimensionActive; }; #endif // __OBJECT_H__