Subversion Repositories svn1-original

Rev

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

Rev 180 Rev 184
Line 11... Line 11...
11
{
11
{
12
    ui->setupUi(this);
12
    ui->setupUi(this);
13
    connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(save()) );
13
    connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(save()) );
14
    connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(cancel()) );
14
    connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(cancel()) );
15
 
15
 
-
 
16
    ui->spinBox_NeLeg->setMaximum(5);
-
 
17
    ui->spinBox_NeLeg->setMinimum(0);
-
 
18
    connect(ui->spinBox_NeLeg, SIGNAL(valueChanged(int)), this,SLOT(updateNe()));
-
 
19
    connect(ui->legNe1,SIGNAL(clicked()), this,SLOT(calcNe1()));
-
 
20
    connect(ui->legNe2,SIGNAL(clicked()), this,SLOT(calcNe2()));
-
 
21
    connect(ui->legNe3,SIGNAL(clicked()), this,SLOT(calcNe3()));
-
 
22
    connect(ui->legNe4,SIGNAL(clicked()), this,SLOT(calcNe4()));
-
 
23
    connect(ui->legNe5,SIGNAL(clicked()), this,SLOT(calcNe5()));
-
 
24
 
16
    populate();
25
    populate();
17
 
26
 
18
 
27
 
19
}
28
}
20
void QmConfTeams::populate(void)
29
void QmConfTeams::populate(void)
Line 55... Line 64...
55
    ui->spinBox_7u->setValue( config.t_def[6].end);
64
    ui->spinBox_7u->setValue( config.t_def[6].end);
56
    ui->spinBox_8l->setValue( config.t_def[7].start);
65
    ui->spinBox_8l->setValue( config.t_def[7].start);
57
    ui->spinBox_8u->setValue( config.t_def[7].end);
66
    ui->spinBox_8u->setValue( config.t_def[7].end);
58
 
67
 
59
    ui->spinBox_NeLeg->setValue(config.equestrian_leg);
68
    ui->spinBox_NeLeg->setValue(config.equestrian_leg);
-
 
69
    updateNe();
60
    ui->ne_leg_abr->setText(config.nonequestrian_class_abr);
70
    ui->ne_leg_abr->setText(config.nonequestrian_class_abr);
61
    ui->ne_leg_abr->setMaxLength(sizeof(config.nonequestrian_class_abr)-1);
71
    ui->ne_leg_abr->setMaxLength(sizeof(config.nonequestrian_class_abr)-1);
62
 
72
 
63
     ui->spinBox_LinesPerPage->setValue(config.lines_per_page);
73
     ui->spinBox_LinesPerPage->setValue(config.lines_per_page);
64
     ui->perfSkip->setChecked( config.perf_skip );
74
     ui->perfSkip->setChecked( config.perf_skip );
65
 
75
 
66
   }
76
   }
67
 
77
 
-
 
78
void QmConfTeams::updateNe(void)
-
 
79
{
-
 
80
    int value = ui->spinBox_NeLeg->value();
-
 
81
    ui->legNe1->setChecked(value == 1);
-
 
82
    ui->legNe2->setChecked(value == 2);
-
 
83
    ui->legNe3->setChecked(value == 3);
-
 
84
    ui->legNe4->setChecked(value == 4);
-
 
85
    ui->legNe5->setChecked(value == 5);
-
 
86
}
-
 
87
 
-
 
88
void QmConfTeams::calcNe1(void){ui->spinBox_NeLeg->setValue(1); updateNe(); }
-
 
89
void QmConfTeams::calcNe2(void){ui->spinBox_NeLeg->setValue(2); updateNe(); }
-
 
90
void QmConfTeams::calcNe3(void){ui->spinBox_NeLeg->setValue(3); updateNe(); }
-
 
91
void QmConfTeams::calcNe4(void){ui->spinBox_NeLeg->setValue(4); updateNe(); }
-
 
92
void QmConfTeams::calcNe5(void){ui->spinBox_NeLeg->setValue(5); updateNe(); }
-
 
93
 
68
void QmConfTeams::save(void)
94
void QmConfTeams::save(void)
69
{
95
{
70
    int error = 0;
96
    int error = 0;
71
    int num_teams = 0;
97
    int num_teams = 0;
72
 
98