]> Shamusworld >> Repos - architektonas/blob - src/global.cpp
c52a1ee66474772336d5f29403266b23b66577a5
[architektonas] / src / global.cpp
1 //
2 // This page intentionally left (mostly) blank
3 //
4
5 #include "global.h"
6 #include <QFont>
7 #include "structs.h"
8
9 // Initialize static variables
10
11 bool Global::fixedAngle = false;
12 bool Global::fixedLength = false;
13 QFont * Global::font = 0;
14 int Global::viewportHeight = 0;
15
16 bool Global::deleteActive = false;
17 bool Global::dimensionActive = false;
18 bool Global::snapToGrid = true;
19
20 //snapToPoints all well here?
21 bool Global::ignoreClicks = false;
22 bool Global::dontMove = false;
23 bool Global::selectionInProgress = false;
24 QRectF Global::selection;
25
26 int Global::tool = TTNone;
27
28 double Global::gridSpacing;
29 int Global::currentLayer = 0;
30 Point Global::snapPoint;
31 bool Global::snapPointIsValid = false;
32 uint32_t Global::objectID = 1;
33
34 Vector Global::origin(-10.0, -10.0);
35 double Global::zoom = 1.0;
36 Vector Global::screenSize(200.0, 200.0);
37
38 float Global::scale = 0.5;