routeDialog = new RouteDialog;
connect(routeDialog,SIGNAL(sendroute()),this,SLOT(clientSendRoute()));
- routeSaveDialog = new RouteSaveDialog;
helpDialog = NULL;
+ routeSaveDialog = NULL;
settingsDialog = new SettingsDialog;
connect(settingsDialog,SIGNAL(sendregistration()),this,SLOT(clientRegUserToServer()));
connect(httpClient->myXmlreader, SIGNAL(receivedCategoryList()), this, SLOT(setCategoryCompoBox()));
connect(httpClient->myXmlreader, SIGNAL(receivedTop10List()), this, SLOT(showTop10()));
- resultDialog = new ResultDialog;
-
accstart = NULL;
//creditsDialog = new CreditsDialog;
*/
void MainWindow::on_pushButtonRoute_clicked()
{
+ if(!routeSaveDialog)
+ routeSaveDialog = new RouteSaveDialog;
+ connect(routeSaveDialog, SIGNAL(sendroute()), this, SLOT(clientSendRoute()));
routeSaveDialog->show();
}
topResultDialog->showTopList(topList);
}
+/**
+ * This function
+ */
void MainWindow::clientRegUserToServer()
{
httpClient->requestRegistration();
*/
void MainWindow::clientSendResult(QString category, double result)
{
- /*QMessageBox msgBox;
- msgBox.setWindowTitle("client send result!");
- msgBox.setText("client send result!");
- msgBox.setDefaultButton(QMessageBox::Ok);
- msgBox.exec();*/
-
qDebug() << "__clientSendResult";
if(accstart) {
qDebug() << "_clientSendResult, calling server";
httpClient->sendResultXml(category, result);
- //httpClient->sendResultXml(accstart->getMeasureCategory(), resultDialog->getResult());
}
}