+ routeSaveDialog = new RouteSaveDialog;
+ routeDialog = new RouteDialog;
+ connect(routeDialog,SIGNAL(sendroute()),this,SLOT(clientSendRoute()));
+ settingsDialog = new SettingsDialog;
+ connect(settingsDialog,SIGNAL(sendregistration()),this,SLOT(clientRegUserToServer()));
+ connect(settingsDialog,SIGNAL(userNameChanged()),this,SLOT(clientUserLogin()));
+ topResultDialog = new TopResultDialog;
+ connect(topResultDialog, SIGNAL(refreshCategoryList()), this, SLOT(clientRequestCategoryList()));
+ connect(topResultDialog, SIGNAL(refreshTopList(int)), this, SLOT(clientRequestTopList(int)));
+ httpClient = new HttpClient(this);
+ connect(httpClient->myXmlreader, SIGNAL(receivedCategoryList()), this, SLOT(setCategoryCompoBox()));
+ connect(httpClient->myXmlreader, SIGNAL(receivedTop10List()), this, SLOT(showTop10()));
+ resultDialog = new ResultDialog;
+ connect(resultDialog, SIGNAL(sendResult(double)), this, SLOT(clientSendResult(double)));
+
+ welcomeDialog = new WelcomeDialog;
+ welcomeDialog->show();
+
+ //Button settings
+ ui->pushButtonAccelerate->setAutoFillBackground(true);
+ ui->pushButtonAccelerate->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->pushButtonRoute->setAutoFillBackground(true);
+ ui->pushButtonRoute->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->pushButtonResults->setAutoFillBackground(true);
+ ui->pushButtonResults->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->pushButtonSettings->setAutoFillBackground(true);
+ ui->pushButtonSettings->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->pushButtonWWW->setAutoFillBackground(true);
+ ui->pushButtonWWW->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+ ui->pushButtonCredits->setAutoFillBackground(true);
+ ui->pushButtonCredits->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");