]> vaikene.ee Git - evaf/blob - src/main/CLI/main.cpp
More work on the common library and the main GUI application.
[evaf] / src / main / CLI / main.cpp
1 /**
2 * @file main/gui/main.cpp
3 * @brief The main eVaf GUI application class
4 *
5 * Copyright (c) 2011 Enar Vaikene
6 *
7 * This file is part of the eVaf C++ cross-platform application development framework.
8 *
9 * This file can be used under the terms of the GNU General Public License
10 * version 3.0 as published by the Free Software Foundation and appearing in
11 * the file LICENSE included in the packaging of this file. Please review the
12 * the following information to ensure the GNU General Public License version
13 * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14 *
15 * Alternatively, this file may be used in accordance with the Commercial License
16 * Agreement provided with the Software.
17 */
18
19 #include "main.h"
20 #include "exithandler.h"
21 #include "fatalerr.h"
22 #include "version_p.h"
23 #include "version.h"
24
25 #ifdef Q_OS_WIN32
26 #include "winconsole.h"
27 #endif
28
29 #include <QtGui>
30
31
32 //-------------------------------------------------------------------
33
34 using namespace eVafGUI;
35
36 Application::Application(int & argc, char ** argv)
37 : QApplication(argc, argv)
38 {
39 setObjectName(QString("%1-%2").arg(VER_MODULENAME_STR).arg(__FUNCTION__));
40
41 setWindowIcon(QIcon(":/eVafGUI/Icon"));
42 }
43
44 Application::~Application()
45 {
46 }
47
48
49 //-------------------------------------------------------------------
50
51 int main(int argc, char ** argv)
52 {
53 Application app(argc, argv);
54
55 return rval;
56 }