]> Shamusworld >> Repos - architektonas/blob - src/global.h
a98b9ac815436b270ed668fad87d3b4d7b5f581e
[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 class Global
14 {
15         public:
16                 static double gridSpacing;
17                 static bool selectionInProgress;
18                 static QRectF selection;
19                 static int currentLayer;
20                 static QFont * font;
21                 static Point snapPoint;
22                 static bool snapPointIsValid;
23
24                 static bool fixedAngle;
25                 static bool fixedLength;
26                 static int viewportHeight;
27                 static bool deleteActive;
28                 static bool dimensionActive;
29
30                 static bool snapToGrid;
31                 static bool ignoreClicks;
32                 static bool dontMove;
33                 static uint32_t objectID;
34
35                 // Coming soon...
36                 static Point origin;
37                 static double zoom;
38                 static Vector screenSize;
39 };
40
41 #endif  // __GLOBALS_H__
42