33 #include "crashCatcher.h" |
33 #include "crashCatcher.h" |
34 #include "ldpaths.h" |
34 #include "ldpaths.h" |
35 #include "documentmanager.h" |
35 #include "documentmanager.h" |
36 |
36 |
37 MainWindow* g_win = nullptr; |
37 MainWindow* g_win = nullptr; |
38 ConfigurationValueBag* Config = nullptr; |
38 Configuration* Config = nullptr; |
39 const Vertex Origin (0.0f, 0.0f, 0.0f); |
39 const Vertex Origin (0.0f, 0.0f, 0.0f); |
40 const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
40 const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
41 |
41 |
42 ConfigOption (bool FirstStart = true) |
42 ConfigOption (bool FirstStart = true) |
43 |
43 |
47 { |
47 { |
48 QApplication app (argc, argv); |
48 QApplication app (argc, argv); |
49 app.setOrganizationName (APPNAME); |
49 app.setOrganizationName (APPNAME); |
50 app.setApplicationName (APPNAME); |
50 app.setApplicationName (APPNAME); |
51 |
51 |
52 static ConfigurationValueBag configObject; |
52 static Configuration configObject; |
53 Config = &configObject; |
53 Config = &configObject; |
54 |
54 |
55 LDPaths* paths = new LDPaths; |
55 LDPaths* paths = new LDPaths; |
56 paths->checkPaths(); |
56 paths->checkPaths(); |
57 paths->deleteLater(); |
57 paths->deleteLater(); |
58 |
58 |
59 initCrashCatcher(); |
59 initCrashCatcher(); |
60 initColors(); |
60 initColors(); |
61 MainWindow* win = new MainWindow; |
61 MainWindow* win = new MainWindow(configObject); |
62 LoadPrimitives(); |
62 LoadPrimitives(); |
63 win->show(); |
63 win->show(); |
64 |
64 |
65 // Process the command line |
65 // Process the command line |
66 for (int arg = 1; arg < argc; ++arg) |
66 for (int arg = 1; arg < argc; ++arg) |