Subversion Repositories svn1-original

Rev

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

Rev 207 Rev 215
Line 16... Line 16...
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
#include "qmeventstatus.h"
-
 
21
#include "qmdownloadlegtimes.h"
21
 
22
 
22
#include    "consts.h"
23
#include    "consts.h"
23
#include    "structs.h"
24
#include    "structs.h"
24
#include    "proto.h"
25
#include    "proto.h"
25
 
26
 
Line 62... Line 63...
62
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
63
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
63
 
64
 
64
    QMenu *m2 = new QMenu ("Upload");
65
    QMenu *m2 = new QMenu ("Upload");
65
    ui->menuBar->addMenu(m2);
66
    ui->menuBar->addMenu(m2);
66
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
67
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
67
    m2->addAction("Store team information to external file", this, SLOT(storeExternalTeams()));
-
 
68
    m2->addAction("Create external leg data file", this, SLOT(storeLegData()));
-
 
69
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
68
    m2->addAction("Upload time information", this, SLOT(uploadLegData()));
70
 
69
 
71
    QMenu *m3 = new QMenu ("Reports");
70
    QMenu *m3 = new QMenu ("Export");
72
    ui->menuBar->addMenu(m3);
71
    ui->menuBar->addMenu(m3);
-
 
72
    m3->addAction("Store team information to external file", this, SLOT(storeExternalTeams()));
-
 
73
    m3->addAction("Create external leg data file", this, SLOT(storeLegData()));
-
 
74
 
-
 
75
    QMenu *m4 = new QMenu ("Reports");
-
 
76
    ui->menuBar->addMenu(m4);
73
    m3->addAction("Generate All Reports", this, SLOT(generateReports()));
77
    m4->addAction("Generate All Reports", this, SLOT(generateReports()));
74
    m3->addAction("Display Summary", this, SLOT(displaySummary()));
78
    m4->addAction("Display Summary", this, SLOT(displaySummary()));
75
}
79
}
76
 
80
 
77
MainWindow::~MainWindow()
81
MainWindow::~MainWindow()
78
{
82
{
79
    delete ui;
83
    delete ui;
Line 290... Line 294...
290
    MainWindow::showMessage("Writing team info completed");
294
    MainWindow::showMessage("Writing team info completed");
291
}
295
}
292
 
296
 
293
void MainWindow::storeLegData(void)
297
void MainWindow::storeLegData(void)
294
{
298
{
295
    MainWindow::showMessage("Store Leg Data: Not yet implemented");
299
    QmDownloadLegTimes dialog(this);
-
 
300
    dialog.exec();
296
}
301
}
297
 
302
 
298
void MainWindow::uploadLegData(void)
303
void MainWindow::uploadLegData(void)
299
{
304
{
300
    QmDialogUploadLegTimes  dialog(this);
305
    QmDialogUploadLegTimes  dialog(this);