Beispiel #1
0
/**
  * This slot function opens the route save dialog
  */
void MainWindow::OpenRouteDialog()
{
    if(!routeSaveDialog)
        routeSaveDialog = new RouteSaveDialog;

    connect(routeSaveDialog, SIGNAL(sendroute()), this, SLOT(clientSendRoute()));
    connect(routeSaveDialog, SIGNAL(rejected()), this, SLOT(killDialog()));
    routeSaveDialog->show();
}
Beispiel #2
0
/**
  * This slot function is called when routeDialog emit sendroute (sendPushButton).
  *
  * @param QString new name
  * @param int i
  */
void RouteSaveDialog::sendRoute(QString newName, int i)
{
    emit sendroute(fileName, newName, i); //Emit mainwindow clientSendRoute
}