4 // Global variable class. Note that all vars are class vars, so we don't have
5 // to do any instantiation shite.
15 enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot };
17 typedef std::vector<void *> VPVector;
18 typedef std::vector<void *>::iterator VPVectorIter;
19 typedef std::vector<bool> BVector;
20 typedef std::vector<std::string> SVector;
25 static double gridSpacing;
26 static bool selectionInProgress;
27 static QRectF selection;
29 static Point snapPoint;
30 static bool snapPointIsValid;
32 static bool fixedAngle;
33 static bool fixedLength;
34 static int viewportHeight;
35 static bool deleteActive;
36 static bool dimensionActive;
38 static bool snapToGrid;
39 static bool ignoreClicks;
41 static uint32_t objectID;
44 static bool toolSuppressCrosshair;
48 static Vector screenSize;
52 static float penWidth;
54 static uint32_t penColor;
56 static bool penDropper;
58 static Point intersectPoint[16]; // Overkill, yes
59 static double intersectParam[16]; // Ditto
60 static int numIntersectPoints;
61 static int numIntersectParams;
63 static int activeLayer;
65 static BVector layerHidden;
66 static BVector layerLocked;
67 static SVector layerName;
70 #endif // __GLOBALS_H__