Subversion Repositories svn1

Rev

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

Rev 188 Rev 189
Line 36... Line 36...
36
    setCentralWidget(tabWidget);
36
    setCentralWidget(tabWidget);
37
 
37
 
38
    tabWidget->addTab( new QmConfTeams,    "Configure");
38
    tabWidget->addTab( new QmConfTeams,    "Configure");
39
    tabWidget->addTab( new QmConfClass,    "Class");
39
    tabWidget->addTab( new QmConfClass,    "Class");
40
    tabWidget->addTab( new QmConfWinners,  "Winners");
40
    tabWidget->addTab( new QmConfWinners,  "Winners");
-
 
41
    tabWidget->addTab( new QmEventStatus,  "Status");
41
    tabWidget->addTab( new qmTeamDisplay,  "Team Data");
42
    tabWidget->addTab( new qmTeamDisplay,  "Team Data");
42
    tabWidget->addTab( new qmDisqualified, "Disqual");
43
    tabWidget->addTab( new qmDisqualified, "Disqual");
43
    tabWidget->addTab( new qmDataCheck,    "Data Check");
44
    tabWidget->addTab( new qmDataCheck,    "Data Check");
44
    tabWidget->addTab( new QmReportWindow, "Reports");
45
    tabWidget->addTab( new QmReportWindow, "Reports");
45
 
46
 
Line 66... Line 67...
66
    m2->addAction("Create external leg data file", this, SLOT(storeLegData()));
67
    m2->addAction("Create external leg data file", this, SLOT(storeLegData()));
67
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
68
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
68
 
69
 
69
    QMenu *m3 = new QMenu ("Reports");
70
    QMenu *m3 = new QMenu ("Reports");
70
    ui->menuBar->addMenu(m3);
71
    ui->menuBar->addMenu(m3);
71
    m3->addAction("Update event and class placings", this, SLOT(updatePlacings()));
-
 
72
    m3->addAction("Show event summary", this, SLOT(showPlacings()));
-
 
73
    m3->addAction("Generate All Reports", this, SLOT(generateReports()));
72
    m3->addAction("Generate All Reports", this, SLOT(generateReports()));
74
    m3->addAction("Display Summary Results", this, SLOT(displaySummary()));
73
    m3->addAction("Display Summary Results", this, SLOT(displaySummary()));
75
}
74
}
76
 
75
 
77
MainWindow::~MainWindow()
76
MainWindow::~MainWindow()
Line 288... Line 287...
288
{
287
{
289
    QmDialogUploadLegTimes  dialog(this);
288
    QmDialogUploadLegTimes  dialog(this);
290
    dialog.exec();
289
    dialog.exec();
291
}
290
}
292
 
291
 
293
void MainWindow::updatePlacings(void)
-
 
294
{
-
 
295
    if( load_report_data() )
-
 
296
    {
-
 
297
        srt_place();
-
 
298
    }
-
 
299
}
-
 
300
void MainWindow::showPlacings(void)
-
 
301
{
-
 
302
    if( load_report_data() )
-
 
303
    {
-
 
304
        srt_place();
-
 
305
        QmEventStatus dialog(this);
-
 
306
        dialog.exec();
-
 
307
    }
-
 
308
}
-
 
309
 
-
 
310
void MainWindow::generateReports(void)
292
void MainWindow::generateReports(void)
311
{
293
{
312
    if( load_report_data() )
294
    if( load_report_data() )
313
    {
295
    {
314
        pri_all_reports();
296
        pri_all_reports();