X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fglobal.h;h=3a18272ccf01dba0d1a0df682af0785ce8f052ed;hb=eb39f1bb5e6518c5dc4f4dbd3c88912a97192e95;hp=8143b8d0e10183ab5e735d94daf252ad27f7b3b8;hpb=f507d97c1b1118834a70332f5f79d8479a6964c0;p=architektonas diff --git a/src/global.h b/src/global.h index 8143b8d..3a18272 100644 --- a/src/global.h +++ b/src/global.h @@ -5,6 +5,8 @@ // to do any instantiation shite. #include +#include +#include #include #include "vector.h" @@ -12,6 +14,10 @@ class QFont; enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot }; +typedef std::vector VPVector; +typedef std::vector::iterator VPVectorIter; +typedef std::vector BVector; +typedef std::vector 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; @@ -34,12 +39,31 @@ class Global static bool ignoreClicks; static bool dontMove; static uint32_t objectID; + static int tool; + static int toolState; 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__