source: ntrip/trunk/BNC/src/app.cpp@ 6188

Last change on this file since 6188 was 5084, checked in by mervart, 12 years ago
File size: 1.1 KB
Line 
1/* -------------------------------------------------------------------------
2 * GnssCenter
3 * -------------------------------------------------------------------------
4 *
5 * Class: t_app
6 *
7 * Purpose: This class implements the main application
8 *
9 * Author: L. Mervart
10 *
11 * Created: 05-Jan-2013
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include "app.h"
18#include "bnccore.h"
19
20using namespace std;
21
22// Constructor
23////////////////////////////////////////////////////////////////////////////
24t_app::t_app(int& argc, char* argv[], bool GUIenabled) : QApplication(argc, argv, GUIenabled) {
25}
26
27// Destructor
28////////////////////////////////////////////////////////////////////////////
29t_app::~t_app() {
30}
31
32// Handling Events (virtual)
33////////////////////////////////////////////////////////////////////////////
34bool t_app::event(QEvent* ev) {
35
36 if (ev->type() == QEvent::FileOpen) { // currently happens on Mac only
37 QString fileName = static_cast<QFileOpenEvent*>(ev)->file();
38 BNC_CORE->setConfFileName(fileName);
39 return true;
40 }
41
42 return QApplication::event(ev);
43}
44
Note: See TracBrowser for help on using the repository browser.