]> Shamusworld >> Repos - architektonas/blobdiff - src/object.h
Beginning to make the Layer widget functional.
[architektonas] / src / object.h
index 39dbb9e4137633bf0483e7711ecb6df8fc3d8d81..0a72328cc6d8446b0804d1792c38240407a1b5af 100644 (file)
@@ -67,6 +67,7 @@ class Object
        public:
                ObjectType type;
                ObjectState state;
+               unsigned int layer;
        protected:
                ObjectState oldState;
                bool needUpdate;
@@ -74,7 +75,9 @@ class Object
                std::vector<Connection> connected;
 
                // Class variables
+       public:
                static QFont * font;
+       protected:
                static bool fixedAngle;
                static bool fixedLength;
                static int viewportHeight;
@@ -88,6 +91,7 @@ class Object
                static bool selectionInProgress;
                static QRectF selection;
                static double gridSpacing;                      // Grid spacing in base units
+               static int currentLayer;
 };
 
 #endif // __OBJECT_H__