Subversion Repositories svn1

Rev

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

Rev 127 Rev 128
Line 27... Line 27...
27
    QMenu *m1 = new QMenu ("Leg Time Setup");
27
    QMenu *m1 = new QMenu ("Leg Time Setup");
28
    ui->menuBar->addMenu(m1);
28
    ui->menuBar->addMenu(m1);
29
    m1->addAction("Set Start Times", this, SLOT(setStartTimes()));
29
    m1->addAction("Set Start Times", this, SLOT(setStartTimes()));
30
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
30
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
31
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
31
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
-
 
32
    m1->addAction("Generate dummy team names", this, SLOT(generateDummyTeamNames()));
32
 
33
 
33
 
34
 
34
 
35
 
35
}
36
}
36
 
37
 
Line 86... Line 87...
86
    {
87
    {
87
        tm_init();
88
        tm_init();
88
    }
89
    }
89
}
90
}
90
 
91
 
-
 
92
void MainWindow::generateDummyTeamNames(void)
-
 
93
{
-
 
94
    if ( QMessageBox::Ok == QMessageBox::warning(this, tr("Mara"),
-
 
95
                                    tr("This will generate DUMMY team names.\n"
-
 
96
                                       "Are you sure you want to do this?"),
-
 
97
                                    QMessageBox::Cancel,
-
 
98
                                    QMessageBox::Ok))
-
 
99
    {
-
 
100
        tm_gen();
-
 
101
    }
-
 
102
}
-
 
103
 
91
/*========================================================================
104
/*========================================================================
92
 *
105
 *
93
 *  Position the cursor on the screen
106
 *  Position the cursor on the screen
94
 *
107
 *
95
 *  Purpose:
108
 *  Purpose: