Subversion Repositories svn1

Rev

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

Rev 128 Rev 129
Line 3... Line 3...
3
#include "qmconfigure.h"
3
#include "qmconfigure.h"
4
#include "qmconfclass.h"
4
#include "qmconfclass.h"
5
#include "qmconfwinners.h"
5
#include "qmconfwinners.h"
6
#include "qmteamdisplay.h"
6
#include "qmteamdisplay.h"
7
#include "QMessageBox"
7
#include "QMessageBox"
-
 
8
#include "QInputDialog"
8
 
9
 
9
#include    "consts.h"
10
#include    "consts.h"
10
#include    "structs.h"
11
#include    "structs.h"
11
#include    "proto.h"
12
#include    "proto.h"
12
 
13
 
Line 28... Line 29...
28
    ui->menuBar->addMenu(m1);
29
    ui->menuBar->addMenu(m1);
29
    m1->addAction("Set Start Times", this, SLOT(setStartTimes()));
30
    m1->addAction("Set Start Times", this, SLOT(setStartTimes()));
30
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
31
    m1->addAction("Clear ALL Leg Times", this, SLOT(clearLegTimes()));
31
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
32
    m1->addAction("Reset All Team Data", this, SLOT(resetTeamData()));
32
    m1->addAction("Generate dummy team names", this, SLOT(generateDummyTeamNames()));
33
    m1->addAction("Generate dummy team names", this, SLOT(generateDummyTeamNames()));
-
 
34
    m1->addAction("Clear single leg start times", this, SLOT(ClearOneLegTimes()));
-
 
35
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
-
 
36
 
33
 
37
 
34
 
38
 
35
 
39
 
36
}
40
}
37
 
41
 
Line 99... Line 103...
99
    {
103
    {
100
        tm_gen();
104
        tm_gen();
101
    }
105
    }
102
}
106
}
103
 
107
 
-
 
108
void MainWindow::ClearOneLegTimes(void)
-
 
109
{
-
 
110
    bool ok;
-
 
111
    int leg = QInputDialog::getInt(this, tr("Clear One Leg Start Time"),
-
 
112
                                              tr("Leg:"), 0, 0, config.num_legs, 1, &ok);
-
 
113
    if ( ok && leg)
-
 
114
    {
-
 
115
        tm_clearleg_specified(leg, FALSE, 6);
-
 
116
    }
-
 
117
}
-
 
118
 
-
 
119
void MainWindow::setCalcLegStart(void)
-
 
120
{
-
 
121
    bool ok;
-
 
122
    int leg = QInputDialog::getInt(this, tr("Clear One Leg Start Time"),
-
 
123
                                              tr("Leg:"), 0, 0, config.num_legs, 1, &ok);
-
 
124
    if ( ok && leg)
-
 
125
    {
-
 
126
        tm_lgs(leg, FALSE, 6);
-
 
127
    }
-
 
128
}
104
/*========================================================================
129
/*========================================================================
105
 *
130
 *
106
 *  Position the cursor on the screen
131
 *  Position the cursor on the screen
107
 *
132
 *
108
 *  Purpose:
133
 *  Purpose: