]> Shamusworld >> Repos - warehouse-man-deluxe/blob - src/app.cpp
Added level editor.
[warehouse-man-deluxe] / src / app.cpp
1 //
2 // app.cpp: Implementation of the application
3 //
4 // Part of the Warehouse Man Deluxe Project
5 // (C) 2014 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -------------------------------------------------------------
12 // JLH  03/01/2014  Created this file
13 //
14
15 #include "app.h"
16
17 #include <QApplication>
18 #include "mainwin.h"
19
20 // Main app constructor--we stick globally accessible stuff here...
21
22 App::App(int & argc, char * argv[]): QApplication(argc, argv)
23 {
24         mainWindow = new MainWin;
25         mainWindow->show();
26 }
27
28
29 App::~App()
30 {
31         delete mainWindow;
32 }
33
34
35 // Here's the main application loop--short and simple...
36 int main(int argc, char * argv[])
37 {
38         // This must the same name as the .qrc filename
39         Q_INIT_RESOURCE(resources);
40
41         App app(argc, argv);
42
43         return app.exec();
44 }
45