]> Shamusworld >> Repos - ttedit/blob - src/global.cpp
Added preview window to file loading dialog. :-)
[ttedit] / 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 #include "toolwindow.h"
9
10 // Initialize static variables
11
12 bool Global::fixedAngle = false;
13 bool Global::fixedLength = false;
14 QFont * Global::font = 0;
15 int Global::viewportHeight = 0;
16
17 bool Global::deleteActive = false;
18 bool Global::dimensionActive = false;
19 bool Global::snapToGrid = true;
20
21 //snapToPoints all well here?
22 bool Global::ignoreClicks = false;
23 bool Global::dontMove = false;
24 bool Global::selectionInProgress = false;
25 QRectF Global::selection;
26
27 int Global::tool = TOOLSelect;
28 //int Global::toolState = TSNone;
29
30 double Global::gridSpacing;
31 int Global::currentLayer = 0;
32 Point Global::snapPoint;
33 bool Global::snapPointIsValid = false;
34 uint32_t Global::objectID = 1;
35
36 Vector Global::origin(-10.0, -10.0);
37 double Global::zoom = 1.0;
38 Vector Global::screenSize(200.0, 200.0);
39
40 float Global::scale = 0.5;
41
42 Point Global::intersectPoint[16]; // Overkill, yes
43 double Global::intersectParam[16]; // Ditto
44 int Global::numIntersectPoints = 0;
45 int Global::numIntersectParams = 0;
46
47 int Global::activeLayer = 0;
48 int Global::numLayers = 1;
49 std::vector<bool> Global::layerHidden;
50 std::vector<bool> Global::layerLocked;
51
52 CharWindow * Global::charWnd = 0;
53 MainWindow * Global::mainWindow = 0;
54