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