#include "location.h"
#include "gpscontroller.h"
#include "ytv.h"
-#include "messagehandler.h"
#include "messagetable.h"
+#include "messagehandler.h"
#include <QDebug>
#include <QObject>
int main(int argc, char *argv[] )
{
- qInstallMsgHandler( messageHandler );
+ //qInstallMsgHandler( messageHandler );
QApplication app(argc, argv);
QMainWindow *mainWindow = new QMainWindow;
- Ui ui;
- ui.setupUi(mainWindow);
+ Ui *ui = new Ui;;
+ ui->setupUi(mainWindow);
- UiController *uiController = new UiController( &ui );
+ UiController *uiController = new UiController( ui );
Route *route = new Route();
GpsController *gpsController = new GpsController();
gpsController, SLOT( getGps() )
);
+ QObject::connect(
+ ui, SIGNAL( fakeGpsPressed( const QString & ) ),
+ gpsController, SLOT( useFakeGps( const QString & ) )
+ );
+
+ QObject::connect(
+ ui, SIGNAL( liveGpsPressed() ),
+ gpsController, SLOT( useLiveGps() )
+ );
+
mainWindow->show();
return app.exec();