X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fglobal.h;h=597ceadf0fa5762cef44c0cb7ff33adb8a68548c;hb=b8bab716d9302fbb04d97679ee499eac781f1b22;hp=a98b9ac815436b270ed668fad87d3b4d7b5f581e;hpb=84afe881653a02a16b19d4da37435b8701b1a826;p=architektonas diff --git a/src/global.h b/src/global.h index a98b9ac..597cead 100644 --- a/src/global.h +++ b/src/global.h @@ -5,18 +5,26 @@ // to do any instantiation shite. #include +#include +#include #include #include "vector.h" 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 { public: static double gridSpacing; static bool selectionInProgress; static QRectF selection; - static int currentLayer; static QFont * font; static Point snapPoint; static bool snapPointIsValid; @@ -31,12 +39,35 @@ class Global static bool ignoreClicks; static bool dontMove; static uint32_t objectID; + static int tool; + static int toolState; + static bool toolSuppressCrosshair; + static double parallelDist; + static int parallelNum; + static int parallelBU; - // 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 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__ -