]> Shamusworld >> Repos - architektonas/blob - src/global.h
Fix grouping on layers other than 0 from disappearing.
[architektonas] / src / global.h
1 #ifndef __GLOBALS_H__
2 #define __GLOBALS_H__
3
4 // Global variable class. Note that all vars are class vars, so we don't have
5 // to do any instantiation shite.
6
7 #include <stdint.h>
8 #include <string>
9 #include <vector>
10 #include <QRectF>
11 #include "vector.h"
12
13 class QFont;
14
15 enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot };
16
17
18 class Global
19 {
20         public:
21                 static double gridSpacing;
22                 static bool selectionInProgress;
23                 static QRectF selection;
24                 static QFont * font;
25                 static Point snapPoint;
26                 static bool snapPointIsValid;
27
28                 static bool fixedAngle;
29                 static bool fixedLength;
30                 static int viewportHeight;
31                 static bool deleteActive;
32                 static bool dimensionActive;
33
34                 static bool snapToGrid;
35                 static bool ignoreClicks;
36                 static bool dontMove;
37                 static uint32_t objectID;
38                 static int tool;
39                 static int toolState;
40
41                 static Point origin;
42                 static double zoom;
43                 static Vector screenSize;
44
45                 static float scale;
46
47                 static float penWidth;
48                 static int penStyle;
49                 static uint32_t penColor;
50                 static bool penStamp;
51
52                 static Point intersectPoint[16]; // Overkill, yes
53                 static double intersectParam[16]; // Ditto
54                 static int numIntersectPoints;
55                 static int numIntersectParams;
56
57                 static int activeLayer;
58                 static int numLayers;
59                 static std::vector<bool> layerHidden;
60                 static std::vector<bool> layerLocked;
61                 static std::vector<std::string> layerName;
62 };
63
64 #endif  // __GLOBALS_H__
65