]> Shamusworld >> Repos - architektonas/blobdiff - src/global.h
Preliminary support for Polylines.
[architektonas] / src / global.h
index c0f019aa839ab9cba999ad0b72e3911785af9a80..6418b7f92587bdcec5730ed0fc811f73a38d7dff 100644 (file)
@@ -5,22 +5,26 @@
 // to do any instantiation shite.
 
 #include <stdint.h>
+#include <string>
 #include <vector>
-#include <QRectF>
+#include "rect.h"
 #include "vector.h"
 
 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
 {
        public:
                static double gridSpacing;
                static bool selectionInProgress;
-               static QRectF selection;
-               static int currentLayer;
+               static Rect selection;
                static QFont * font;
                static Point snapPoint;
                static bool snapPointIsValid;
@@ -37,6 +41,10 @@ class Global
                static uint32_t objectID;
                static int tool;
                static int toolState;
+               static bool toolSuppressCrosshair;
+               static double parallelDist;
+               static int parallelNum;
+               static int parallelBU;
 
                static Point origin;
                static double zoom;
@@ -44,6 +52,12 @@ class Global
 
                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;
@@ -51,9 +65,9 @@ class Global
 
                static int activeLayer;
                static int numLayers;
-               static std::vector<bool> layerHidden;
-               static std::vector<bool> layerLocked;
+               static BVector layerHidden;
+               static BVector layerLocked;
+               static SVector layerName;
 };
 
 #endif // __GLOBALS_H__
-