X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=1e6342290d629b6ff3bc29a42096632e1e457c09;hb=746443089f76c115245d1500b780d7d189b9b2af;hp=e0ea740460bbb83b71bece85b2272e303b82afa1;hpb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;p=architektonas diff --git a/src/object.h b/src/object.h index e0ea740..1e63422 100644 --- a/src/object.h +++ b/src/object.h @@ -5,6 +5,7 @@ class QPainter; class QFont; +class Dimension; enum ObjectState { OSInactive, OSSelected }; @@ -21,7 +22,9 @@ class Object virtual void PointerMoved(Vector); 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 @@ -29,6 +32,8 @@ class Object static void SetFixedLength(bool state = true); 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) @@ -38,12 +43,15 @@ class Object ObjectState state; ObjectState oldState; bool needUpdate; + Dimension * attachedDimension; // Class variables static QFont * font; static bool fixedAngle; static bool fixedLength; static int viewportHeight; + static bool deleteActive; + static bool dimensionActive; }; #endif // __OBJECT_H__