]> Shamusworld >> Repos - architektonas/blob - src/global.h
d66f93badd104b65bdc02cba8a1967e479665769
[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 <QRectF>
9 #include "vector.h"
10
11 class QFont;
12
13 enum LineStyle { LSNone, LSSolid, LSDash, LSDot, LSDashDot, LSDashDotDot };
14
15
16 class Global
17 {
18         public:
19                 static double gridSpacing;
20                 static bool selectionInProgress;
21                 static QRectF selection;
22                 static int currentLayer;
23                 static QFont * font;
24                 static Point snapPoint;
25                 static bool snapPointIsValid;
26
27                 static bool fixedAngle;
28                 static bool fixedLength;
29                 static int viewportHeight;
30                 static bool deleteActive;
31                 static bool dimensionActive;
32
33                 static bool snapToGrid;
34                 static bool ignoreClicks;
35                 static bool dontMove;
36                 static uint32_t objectID;
37                 static int tool;
38                 static int toolState;
39
40                 static Point origin;
41                 static double zoom;
42                 static Vector screenSize;
43
44                 static float scale;
45
46                 static int activeLayer;
47                 static bool layerIsLocked;
48 };
49
50 #endif  // __GLOBALS_H__
51