X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=ec775d16fbf42fd1443bec267375bddb3d984f63;hb=921bf050ffe5fc81a9ab377e634180e659ee5d5d;hp=39dbb9e4137633bf0483e7711ecb6df8fc3d8d81;hpb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;p=architektonas diff --git a/src/object.h b/src/object.h index 39dbb9e..ec775d1 100644 --- a/src/object.h +++ b/src/object.h @@ -42,8 +42,11 @@ class Object virtual QRectF Extents(void); // virtual ObjectType Type(void);// = 0; // Pure virtual, must be implemented virtual void Translate(Vector); - virtual void Rotate(Vector, double); - virtual void Scale(Vector, double); + virtual void Rotate(Point, double); + virtual void Scale(Point, double); + virtual void Mirror(Point, Point); + virtual void Save(void); + virtual void Restore(void); ObjectState GetState(void); void Reparent(Object *); // Dimension * GetAttachedDimension(void); @@ -64,9 +67,11 @@ class Object Object * parent; // Pen pen; // Fill fill; + Point oldPosition; public: ObjectType type; ObjectState state; + unsigned int layer; protected: ObjectState oldState; bool needUpdate; @@ -74,7 +79,9 @@ class Object std::vector connected; // Class variables + public: static QFont * font; + protected: static bool fixedAngle; static bool fixedLength; static int viewportHeight; @@ -88,6 +95,7 @@ class Object static bool selectionInProgress; static QRectF selection; static double gridSpacing; // Grid spacing in base units + static int currentLayer; }; #endif // __OBJECT_H__