]> Shamusworld >> Repos - architektonas/blobdiff - src/global.h
More miscellaneous changes.
[architektonas] / src / global.h
index d59155e5a0c0d1e8c8b74c124ef75859e435b202..18faa979093537e3a42e03201362220fa5ed3e56 100644 (file)
@@ -5,6 +5,8 @@
 // to do any instantiation shite.
 
 #include <stdint.h>
+#include <string>
+#include <vector>
 #include <QRectF>
 #include "vector.h"
 
@@ -12,6 +14,10 @@ class QFont;
 
 enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot };
 
+typedef std::vector<void *> VPVector;
+typedef std::vector<void *>::iterator VPVectorIter;
+typedef std::vector<bool> BVector;
+typedef std::vector<std::string> SVector;
 
 class Global
 {
@@ -19,7 +25,6 @@ class Global
                static double gridSpacing;
                static bool selectionInProgress;
                static QRectF selection;
-               static int currentLayer;
                static QFont * font;
                static Point snapPoint;
                static bool snapPointIsValid;
@@ -36,13 +41,30 @@ class Global
                static uint32_t objectID;
                static int tool;
                static int toolState;
+               static bool toolSuppressCrosshair;
 
                static Point origin;
                static double zoom;
                static Vector screenSize;
 
                static float scale;
+
+               static float penWidth;
+               static int penStyle;
+               static uint32_t penColor;
+               static bool penStamp;
+               static bool penDropper;
+
+               static Point intersectPoint[16]; // Overkill, yes
+               static double intersectParam[16]; // Ditto
+               static int numIntersectPoints;
+               static int numIntersectParams;
+
+               static int activeLayer;
+               static int numLayers;
+               static BVector layerHidden;
+               static BVector layerLocked;
+               static SVector layerName;
 };
 
 #endif // __GLOBALS_H__
-