src/main.cpp

changeset 1217
314e12e23c3a
parent 1215
77a0270352a3
child 1218
e0b59d183f96
equal deleted inserted replaced
1216:12f9ea615cbc 1217:314e12e23c3a
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; 38 ConfigurationValueBag config;
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
44 // ============================================================================= 44 // =============================================================================
45 // 45 //
46 int main (int argc, char* argv[]) 46 int main(int argc, char* argv[])
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 LDPaths* paths = new LDPaths; 52 LDPaths* paths = new LDPaths;
53 paths->checkPaths(); 53 paths->checkPaths();
54 paths->deleteLater(); 54 paths->deleteLater();
55 55
59 LoadPrimitives(); 59 LoadPrimitives();
60 win->show(); 60 win->show();
61 61
62 // Process the command line 62 // Process the command line
63 for (int arg = 1; arg < argc; ++arg) 63 for (int arg = 1; arg < argc; ++arg)
64 win->documents()->openMainModel (QString::fromLocal8Bit (argv[arg])); 64 win->documents()->openMainModel(QString::fromLocal8Bit(argv[arg]));
65 65
66 return app.exec(); 66 return app.exec();
67 } 67 }

mercurial