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
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)
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__