]> Shamusworld >> Repos - architektonas/blobdiff - src/object.h
Added gratuitous About screen.
[architektonas] / src / object.h
index deaa91f3604f923b16a805fd57ccc55e241ca749..1e6342290d629b6ff3bc29a42096632e1e457c09 100644 (file)
@@ -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
@@ -30,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)
@@ -39,14 +43,15 @@ class Object
                ObjectState state;
                ObjectState oldState;
                bool needUpdate;
-               Dimension * dimPoint1;
-               Dimension * dimPoint2;
+               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__