Subversion Repositories svn1

Rev

Rev 236 | Rev 249 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 236 Rev 240
Line 60... Line 60...
60
    m1->addSeparator();
60
    m1->addSeparator();
61
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
61
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
62
    m1->addAction("Set ordered incremental leg start", this, SLOT(setOrderedIncLegStart()));
62
    m1->addAction("Set ordered incremental leg start", this, SLOT(setOrderedIncLegStart()));
63
    m1->addAction("Set staggered start time", this, SLOT(setStaggeredLegStart()));
63
    m1->addAction("Set staggered start time", this, SLOT(setStaggeredLegStart()));
64
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
64
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
-
 
65
    m1->addSeparator();
-
 
66
    m1->addAction("Recalculate elapsed times", this, SLOT(recalcLegTimes()));
65
 
67
 
66
    QMenu *m2 = new QMenu ("Upload");
68
    QMenu *m2 = new QMenu ("Upload");
67
    ui->menuBar->addMenu(m2);
69
    ui->menuBar->addMenu(m2);
68
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
70
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
69
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
71
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
Line 247... Line 249...
247
                   dialog.getClear() );
249
                   dialog.getClear() );
248
        }
250
        }
249
    }
251
    }
250
}
252
}
251
 
253
 
-
 
254
void MainWindow::recalcLegTimes(void)
-
 
255
{
-
 
256
    QmDialogLegStartTimes dialog("Recalc Elesped Times",this);
-
 
257
    dialog.setDescription("The elasped times for all teams is recaclulated. This should not be neeed.");
-
 
258
    if ( QDialog::Accepted == dialog.exec() )
-
 
259
    {
-
 
260
        if ( dialog.getLeg() )
-
 
261
        {
-
 
262
            tm_recalcElapsed(dialog.getLeg());
-
 
263
        }
-
 
264
    }
-
 
265
}
-
 
266
 
252
void MainWindow::loadExternalTeams(void)
267
void MainWindow::loadExternalTeams(void)
253
{
268
{
254
    QString fileName = QFileDialog::getOpenFileName(this, tr("Load File"),
269
    QString fileName = QFileDialog::getOpenFileName(this, tr("Load File"),
255
                                                     filepath,
270
                                                     filepath,
256
                                                     tr("Data (*.csv);;All (*.*)"),
271
                                                     tr("Data (*.csv);;All (*.*)"),