Subversion Repositories svn1-original

Rev

Rev 103 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 103 Rev 104
Line 58... Line 58...
58
 
58
 
59
    ui->spinBox_NeLeg->setValue(config.equestrian_leg);
59
    ui->spinBox_NeLeg->setValue(config.equestrian_leg);
60
    ui->ne_leg_abr->setText(config.nonequestrian_class_abr);
60
    ui->ne_leg_abr->setText(config.nonequestrian_class_abr);
61
    ui->ne_leg_abr->setMaxLength(sizeof(config.nonequestrian_class_abr)-1);
61
    ui->ne_leg_abr->setMaxLength(sizeof(config.nonequestrian_class_abr)-1);
62
 
62
 
-
 
63
     ui->spinBox_LinesPerPage->setValue(config.lines_per_page);
-
 
64
     ui->perfSkip->setChecked( config.perf_skip );
63
}
65
 
-
 
66
   }
64
 
67
 
65
void QmConfigure::save(void)
68
void QmConfigure::save(void)
66
{
69
{
67
    int error = 0;
70
    int error = 0;
68
    int num_teams = 0;
71
    int num_teams = 0;
Line 110... Line 113...
110
    newcfg.t_def[7].end   = ui->spinBox_8u->value();
113
    newcfg.t_def[7].end   = ui->spinBox_8u->value();
111
 
114
 
112
    newcfg.equestrian_leg = ui->spinBox_NeLeg->value();
115
    newcfg.equestrian_leg = ui->spinBox_NeLeg->value();
113
    strncpy(newcfg.nonequestrian_class_abr, qPrintable(ui->ne_leg_abr->text()), sizeof(newcfg.nonequestrian_class_abr)-1) ;
116
    strncpy(newcfg.nonequestrian_class_abr, qPrintable(ui->ne_leg_abr->text()), sizeof(newcfg.nonequestrian_class_abr)-1) ;
114
 
117
 
-
 
118
    newcfg.lines_per_page = ui->spinBox_LinesPerPage->value();
-
 
119
    newcfg.perf_skip = ui->perfSkip->isChecked();
-
 
120
 
115
       compact( newcfg.event_name );               /* Rip of leading white_space */
121
       compact( newcfg.event_name );               /* Rip of leading white_space */
116
    for( int i = 0; i < MAX_LEGS; i++ )
122
    for( int i = 0; i < MAX_LEGS; i++ )
117
        compact( newcfg.leg_name[i] );
123
        compact( newcfg.leg_name[i] );
118
    compact( newcfg.addendum );
124
    compact( newcfg.addendum );
119
    compact( newcfg.datafilename );
125
    compact( newcfg.datafilename );