Subversion Repositories svn1

Rev

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

Rev 130 Rev 131
Line 33... Line 33...
33
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
33
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
34
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
34
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
35
    m1->addAction("Generate dummy team names", this, SLOT(generateDummyTeamNames()));
35
    m1->addAction("Generate dummy team names", this, SLOT(generateDummyTeamNames()));
36
    m1->addAction("Clear single leg start times", this, SLOT(ClearOneLegTimes()));
36
    m1->addAction("Clear single leg start times", this, SLOT(ClearOneLegTimes()));
37
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
37
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
-
 
38
    m1->addAction("Set ordered incremental leg start", this, SLOT(setOrderedIncLegStart()));
-
 
39
    m1->addAction("Set staggered start time", this, SLOT(setStaggeredLegStart()));
-
 
40
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
38
 
41
 
39
 
42
 
40
 
43
 
41
 
44
 
42
}
45
}
Line 59... Line 62...
59
}
62
}
60
 
63
 
61
void MainWindow::setStartTimes(void)
64
void MainWindow::setStartTimes(void)
62
{
65
{
63
    if ( QMessageBox::Ok == QMessageBox::warning(this, tr("Mara"),
66
    if ( QMessageBox::Ok == QMessageBox::warning(this, tr("Mara"),
64
                                    tr("This will reset the start times for all teams.\n"
67
                                    tr("This will reset the start times for all teams based on the Category configuration.\n"
65
                                       "Are you sure you want to do this?"),
68
                                       "Are you sure you want to do this?"),
66
                                    QMessageBox::Cancel,
69
                                    QMessageBox::Cancel,
67
                                    QMessageBox::Ok))
70
                                    QMessageBox::Ok))
68
    {
71
    {
69
        leg_start();
72
        leg_start();
Line 119... Line 122...
119
}
122
}
120
 
123
 
121
void MainWindow::setCalcLegStart(void)
124
void MainWindow::setCalcLegStart(void)
122
{
125
{
123
    QmDialogLegStartTimes dialog("Calculate Leg Start Time",this);
126
    QmDialogLegStartTimes dialog("Calculate Leg Start Time",this);
-
 
127
    dialog.setDeltaTimeLabel("Delta Time");
-
 
128
qDebug ("Must disable stuff");
124
    if ( QDialog::Accepted == dialog.exec() )
129
    if ( QDialog::Accepted == dialog.exec() )
125
    {
130
    {
126
        if ( dialog.getLeg() )
131
        if ( dialog.getLeg() )
127
        {
132
        {
128
            tm_lgs(dialog.getLeg(),
133
            tm_lgs(dialog.getLeg(),
-
 
134
                   dialog.getDeltaTime(),
-
 
135
                   dialog.getReport(),
-
 
136
                   dialog.getClear() );
-
 
137
        }
-
 
138
    }
-
 
139
}
-
 
140
 
-
 
141
void MainWindow::setOrderedIncLegStart(void)
-
 
142
{
-
 
143
    QmDialogLegStartTimes dialog("Ordered Incremental Leg Start Time",this);
-
 
144
    dialog.setTimeLabel("Start Time");
-
 
145
    dialog.setDeltaTimeLabel("Delta Time");
-
 
146
    if ( QDialog::Accepted == dialog.exec() )
-
 
147
    {
-
 
148
        if ( dialog.getLeg() )
-
 
149
        {
-
 
150
            tm_lgs1(dialog.getLeg(),
-
 
151
                   dialog.getTime(),
-
 
152
                   dialog.getDeltaTime(),
-
 
153
                   dialog.getReport(),
-
 
154
                   dialog.getClear() );
-
 
155
        }
-
 
156
    }
-
 
157
}
-
 
158
 
-
 
159
void MainWindow::setStaggeredLegStart(void)
-
 
160
{
-
 
161
    QmDialogLegStartTimes dialog("Staggered Leg Start Time",this);
-
 
162
    dialog.setTimeLabel("Start Time");
-
 
163
    dialog.setDeltaTimeLabel("Stagger Time");
-
 
164
    if ( QDialog::Accepted == dialog.exec() )
-
 
165
    {
-
 
166
        if ( dialog.getLeg() )
-
 
167
        {
-
 
168
            tm_staggered(dialog.getLeg(),
129
                   dialog.getTime(),
169
                   dialog.getTime(),
-
 
170
                   dialog.getDeltaTime(),
130
                   dialog.getReport(),
171
                   dialog.getReport(),
131
                   dialog.getClear() );
172
                   dialog.getClear() );
132
        }
173
        }
133
    }
174
    }
-
 
175
}
134
 
176
 
-
 
177
void MainWindow::setFixedLegStart(void)
-
 
178
{
-
 
179
    QmDialogLegStartTimes dialog("Fixed Leg Start Time",this);
-
 
180
    dialog.setTimeLabel("Start Time");
-
 
181
    //dialog.setDeltaTimeLabel("Stagger Time");
-
 
182
qDebug ("Must Hide stagger time");
-
 
183
    if ( QDialog::Accepted == dialog.exec() )
-
 
184
    {
-
 
185
        if ( dialog.getLeg() )
-
 
186
        {
-
 
187
            tm_fixedstart(dialog.getLeg(),
-
 
188
                   dialog.getTime(),
-
 
189
                   //dialog.getDeltaTime(),
-
 
190
                   dialog.getReport(),
-
 
191
                   dialog.getClear() );
-
 
192
        }
-
 
193
    }
135
}
194
}
136
/*========================================================================
195
/*========================================================================
137
 *
196
 *
138
 *  Position the cursor on the screen
197
 *  Position the cursor on the screen
139
 *
198
 *