]> Shamusworld >> Repos - architektonas/blob - src/main.cpp
Major refactor of Architektonas: Jettisoning old cruft.
[architektonas] / src / main.cpp
1 //
2 // main.cpp: Architektonas implementation of the application
3 //
4 // Part of the Architektonas Project
5 // (C) 2011 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James L. Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -------------------------------------------------------------
12 // JLH  03/22/2011  Created this file
13 //
14
15 #include "main.h"
16
17 #include <QApplication>
18 #include "applicationwindow.h"
19
20 // Main app constructor--we stick globally accessible stuff here...
21
22 Architektonas::Architektonas(int argc, char * argv[]): QApplication(argc, argv)//, charWnd(NULL)
23 {
24 }
25
26
27 // Here's the main application loop--short and simple...
28 int main(int argc, char * argv[])
29 {
30         Q_INIT_RESOURCE(architektonas); // This must the same name as the exe filename
31
32 //      QApplication app(argc, argv);
33 //printf("TTEdit app(argc, argv);\n");
34         Architektonas app(argc, argv);
35 //printf("TTEMainWindow mainWindow;\n");
36         ApplicationWindow mainWindow;
37 //printf("mainWindow.show();\n");
38         mainWindow.show();
39 //OK, it gets to here at least...
40 //printf("return app.exec();\n");
41
42         return app.exec();
43 }