Subversion Repositories svn1-original

Rev

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

Rev 130 Rev 140
Line 59... Line 59...
59
    ui->name->setText( team_buf.name );
59
    ui->name->setText( team_buf.name );
60
    ui->category_abr->setText( config.team_class[team_buf.teamclass - 1].abr );
60
    ui->category_abr->setText( config.team_class[team_buf.teamclass - 1].abr );
61
    ui->category->setCurrentIndex(team_buf.teamclass - 1);
61
    ui->category->setCurrentIndex(team_buf.teamclass - 1);
62
    //TODO: Link update of combo box to the abreviation display
62
    //TODO: Link update of combo box to the abreviation display
63
 
63
 
-
 
64
    ui->disqualified->setCheckState(team_buf.flags.disqualified ? Qt::Checked : Qt::Unchecked);
-
 
65
    ui->nonEquestrian->setCheckState(team_buf.flags.non_equestrian ? Qt::Checked : Qt::Unchecked);
-
 
66
 
64
    /*
67
    /*
65
    ** Team Member data
68
    ** Team Member data
66
    */
69
    */
67
    for ( int ii = 0; ii < config.num_legs; ii ++)
70
    for ( int ii = 0; ii < config.num_legs; ii ++)
68
    {
71
    {
Line 116... Line 119...
116
    ** The time stuff is done on the fly as it changes
119
    ** The time stuff is done on the fly as it changes
117
    */
120
    */
118
    strncpy(team_buf.name , qPrintable(ui->name->text()), sizeof(team_buf.name));
121
    strncpy(team_buf.name , qPrintable(ui->name->text()), sizeof(team_buf.name));
119
    team_buf.teamclass = ui->category->currentIndex() + 1;
122
    team_buf.teamclass = ui->category->currentIndex() + 1;
120
 
123
 
-
 
124
    team_buf.flags.disqualified =  ( ui->disqualified->checkState () == Qt::Checked);
-
 
125
    team_buf.flags.non_equestrian =  ( ui->nonEquestrian->checkState () == Qt::Checked);
-
 
126
 
121
    /*
127
    /*
122
    ** Extract Team Member Data
128
    ** Extract Team Member Data
123
    */
129
    */
124
    for ( int ii = 0; ii < config.num_legs; ii ++)
130
    for ( int ii = 0; ii < config.num_legs; ii ++)
125
    {
131
    {