source: pacpussensors/trunk/Gps/main_gpsComponent.cpp

Last change on this file was 59, checked in by DHERBOMEZ Gérald, 10 years ago

Integration of new modules:

  • GPS NMEA0183 decoder
  • Span CPT Decoder

Update of:

File size: 694 bytes
Line 
1//////////////////////////////////////////////////////////////////////////
2// main.cpp
3//////////////////////////////////////////////////////////////////////////
4
5#include <qapplication.h>
6#include "ui/gpsmainwindowimpl.h"
7#include "kernel/componentManager.h"
8
9
10int main(int argc, char** argv )
11{
12 QApplication app( argc, argv );
13
14 ComponentManager* mgr = ComponentManager::create();
15
16 if (argc > 1)
17 {
18 QString fileName = argv[1];
19 mgr->loadComponents(fileName);
20 }
21
22 GpsMainWindowImpl window;
23 app.setMainWidget(&window);
24 QApplication::connect( &app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()) );
25 window.show();
26
27 return app.exec();
28
29}
Note: See TracBrowser for help on using the repository browser.