Subversion Repositories svn1

Rev

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

Rev 129 Rev 130
Line 4... Line 4...
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
#include "QInputDialog"
-
 
9
#include "QTime"
-
 
10
#include "qmdialoglegstarttimes.h"
9
 
11
 
10
#include    "consts.h"
12
#include    "consts.h"
11
#include    "structs.h"
13
#include    "structs.h"
12
#include    "proto.h"
14
#include    "proto.h"
13
 
15
 
Line 116... Line 118...
116
    }
118
    }
117
}
119
}
118
 
120
 
119
void MainWindow::setCalcLegStart(void)
121
void MainWindow::setCalcLegStart(void)
120
{
122
{
121
    bool ok;
-
 
122
    int leg = QInputDialog::getInt(this, tr("Clear One Leg Start Time"),
123
    QmDialogLegStartTimes dialog("Calculate Leg Start Time",this);
123
                                              tr("Leg:"), 0, 0, config.num_legs, 1, &ok);
-
 
124
    if ( ok && leg)
124
    if ( QDialog::Accepted == dialog.exec() )
125
    {
125
    {
-
 
126
        if ( dialog.getLeg() )
-
 
127
        {
126
        tm_lgs(leg, FALSE, 6);
128
            tm_lgs(dialog.getLeg(),
-
 
129
                   dialog.getTime(),
-
 
130
                   dialog.getReport(),
-
 
131
                   dialog.getClear() );
-
 
132
        }
127
    }
133
    }
-
 
134
 
128
}
135
}
129
/*========================================================================
136
/*========================================================================
130
 *
137
 *
131
 *  Position the cursor on the screen
138
 *  Position the cursor on the screen
132
 *
139
 *