src/main.cpp

changeset 1018
49358df9495b
parent 1017
fc1c13db9618
child 1028
5877e49e9a28
equal deleted inserted replaced
1017:fc1c13db9618 1018:49358df9495b
20 #include <QMessageBox> 20 #include <QMessageBox>
21 #include <QAbstractButton> 21 #include <QAbstractButton>
22 #include <QFile> 22 #include <QFile>
23 #include <QTextStream> 23 #include <QTextStream>
24 #include <QDir> 24 #include <QDir>
25 #include "mainwindow.h"
26 #include "ldDocument.h" 25 #include "ldDocument.h"
27 #include "miscallenous.h" 26 #include "miscallenous.h"
28 #include "colors.h" 27 #include "colors.h"
29 #include "basics.h" 28 #include "basics.h"
30 #include "primitives.h"
31 #include "glRenderer.h" 29 #include "glRenderer.h"
32 #include "dialogs.h" 30 #include "dialogs.h"
33 #include "crashCatcher.h" 31 #include "crashCatcher.h"
34 #include "ldpaths.h" 32 #include "ldpaths.h"
35 #include "documentmanager.h" 33 #include "documentmanager.h"
34 #include "mainwindow.h"
36 35
37 MainWindow* g_win = nullptr; 36 MainWindow* g_win = nullptr;
38 Configuration* Config = nullptr; 37 Configuration* Config = nullptr;
39 const Vertex Origin (0.0f, 0.0f, 0.0f); 38 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}); 39 const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f});
57 paths->deleteLater(); 56 paths->deleteLater();
58 57
59 initCrashCatcher(); 58 initCrashCatcher();
60 initColors(); 59 initColors();
61 MainWindow* win = new MainWindow(configObject); 60 MainWindow* win = new MainWindow(configObject);
62 LoadPrimitives();
63 win->show(); 61 win->show();
64 62
65 // Process the command line 63 // Process the command line
66 for (int arg = 1; arg < argc; ++arg) 64 for (int arg = 1; arg < argc; ++arg)
67 win->documents()->openMainModel (QString::fromLocal8Bit (argv[arg])); 65 win->documents()->openMainModel (QString::fromLocal8Bit (argv[arg]));

mercurial