]> Shamusworld >> Repos - architektonas/blob - src/global.h
8143b8d0e10183ab5e735d94daf252ad27f7b3b8
[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
38                 static Point origin;
39                 static double zoom;
40                 static Vector screenSize;
41
42                 static float scale;
43 };
44
45 #endif  // __GLOBALS_H__
46