Subversion Repositories svn1

Rev

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

Rev 181 Rev 188
Line 15... Line 15...
15
#include "qmdialoguploadlegtimes.h"
15
#include "qmdialoguploadlegtimes.h"
16
#include "qmdialogstatus.h"
16
#include "qmdialogstatus.h"
17
#include "qmreportwindow.h"
17
#include "qmreportwindow.h"
18
#include "QTabWidget"
18
#include "QTabWidget"
19
#include "QLayout"
19
#include "QLayout"
-
 
20
#include "qmeventstatus.h"
20
 
21
 
21
#include    "consts.h"
22
#include    "consts.h"
22
#include    "structs.h"
23
#include    "structs.h"
23
#include    "proto.h"
24
#include    "proto.h"
24
 
25
 
Line 66... Line 67...
66
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
67
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
67
 
68
 
68
    QMenu *m3 = new QMenu ("Reports");
69
    QMenu *m3 = new QMenu ("Reports");
69
    ui->menuBar->addMenu(m3);
70
    ui->menuBar->addMenu(m3);
70
    m3->addAction("Update event and class placings", this, SLOT(updatePlacings()));
71
    m3->addAction("Update event and class placings", this, SLOT(updatePlacings()));
-
 
72
    m3->addAction("Show event summary", this, SLOT(showPlacings()));
71
    m3->addAction("Generate All Reports", this, SLOT(generateReports()));
73
    m3->addAction("Generate All Reports", this, SLOT(generateReports()));
72
    m3->addAction("Display Summary Results", this, SLOT(displaySummary()));
74
    m3->addAction("Display Summary Results", this, SLOT(displaySummary()));
73
}
75
}
74
 
76
 
75
MainWindow::~MainWindow()
77
MainWindow::~MainWindow()
Line 293... Line 295...
293
    if( load_report_data() )
295
    if( load_report_data() )
294
    {
296
    {
295
        srt_place();
297
        srt_place();
296
    }
298
    }
297
}
299
}
-
 
300
void MainWindow::showPlacings(void)
-
 
301
{
-
 
302
    if( load_report_data() )
-
 
303
    {
-
 
304
        srt_place();
-
 
305
        QmEventStatus dialog(this);
-
 
306
        dialog.exec();
-
 
307
    }
-
 
308
}
298
 
309
 
299
void MainWindow::generateReports(void)
310
void MainWindow::generateReports(void)
300
{
311
{
301
    if( load_report_data() )
312
    if( load_report_data() )
302
    {
313
    {