src/main.cpp

changeset 553
2418d5955421
parent 513
29eb671b34f6
equal deleted inserted replaced
552:454f8b730946 553:2418d5955421
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 "gui.h" 24 #include "gui.h"
25 #include "file.h" 25 #include "document.h"
26 #include "misc.h" 26 #include "misc.h"
27 #include "config.h" 27 #include "config.h"
28 #include "colors.h" 28 #include "colors.h"
29 #include "types.h" 29 #include "types.h"
30 #include "primitives.h" 30 #include "primitives.h"
31 #include "gldraw.h" 31 #include "gldraw.h"
32 #include "configDialog.h" 32 #include "configDialog.h"
33 #include "dialogs.h" 33 #include "dialogs.h"
34 #include "crashcatcher.h" 34 #include "crashcatcher.h"
35 35
36 QList<LDFile*> g_loadedFiles; 36 QList<LDDocument*> g_loadedFiles;
37 ForgeWindow* g_win = null; 37 ForgeWindow* g_win = null;
38 const QApplication* g_app = null; 38 const QApplication* g_app = null;
39 File g_file_stdout (stdout, File::Write); 39 File g_file_stdout (stdout, File::Write);
40 File g_file_stderr (stderr, File::Write); 40 File g_file_stderr (stderr, File::Write);
41 static str g_versionString, g_fullVersionString; 41 static str g_versionString, g_fullVersionString;
52 app.setOrganizationName (APPNAME); 52 app.setOrganizationName (APPNAME);
53 app.setApplicationName (APPNAME); 53 app.setApplicationName (APPNAME);
54 g_app = &app; 54 g_app = &app;
55 55
56 initCrashCatcher(); 56 initCrashCatcher();
57 LDFile::setCurrent (null); 57 LDDocument::setCurrent (null);
58 58
59 // Load or create the configuration 59 // Load or create the configuration
60 if (!Config::load()) 60 if (!Config::load())
61 { log ("Creating configuration file...\n"); 61 { log ("Creating configuration file...\n");
62 62

mercurial