]> Shamusworld >> Repos - architektonas/blobdiff - src/global.h
Changes to make containers behave like a first-class object.
[architektonas] / src / global.h
index a98b9ac815436b270ed668fad87d3b4d7b5f581e..06c04e80d288c688e91826f473b648bf2a207e3d 100644 (file)
@@ -5,11 +5,16 @@
 // to do any instantiation shite.
 
 #include <stdint.h>
+#include <string>
+#include <vector>
 #include <QRectF>
 #include "vector.h"
 
 class QFont;
 
+enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot };
+
+
 class Global
 {
        public:
@@ -31,11 +36,30 @@ class Global
                static bool ignoreClicks;
                static bool dontMove;
                static uint32_t objectID;
+               static int tool;
+               static int toolState;
 
-               // Coming soon...
                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 Point intersectPoint[16]; // Overkill, yes
+               static double intersectParam[16]; // Ditto
+               static int numIntersectPoints;
+               static int numIntersectParams;
+
+               static int activeLayer;
+               static int numLayers;
+               static std::vector<bool> layerHidden;
+               static std::vector<bool> layerLocked;
+               static std::vector<std::string> layerName;
 };
 
 #endif // __GLOBALS_H__