Subversion Repositories svn1

Rev

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

Rev 145 Rev 149
Line 51... Line 51...
51
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
51
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
52
 
52
 
53
    QMenu *m2 = new QMenu ("Upload");
53
    QMenu *m2 = new QMenu ("Upload");
54
    ui->menuBar->addMenu(m2);
54
    ui->menuBar->addMenu(m2);
55
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
55
    m2->addAction("Load team information from external file", this, SLOT(loadExternalTeams()));
-
 
56
    m2->addAction("Store team information to external file", this, SLOT(storeExternalTeams()));
56
 
57
 
57
}
58
}
58
 
59
 
59
MainWindow::~MainWindow()
60
MainWindow::~MainWindow()
60
{
61
{
Line 227... Line 228...
227
 
228
 
228
    QmDialogLoadExternalTeams dialog(fileName,this);
229
    QmDialogLoadExternalTeams dialog(fileName,this);
229
    dialog.exec();
230
    dialog.exec();
230
}
231
}
231
 
232
 
-
 
233
void MainWindow::storeExternalTeams(void)
-
 
234
{
-
 
235
    QString fileName = QFileDialog::getSaveFileName(this, tr("Store File"),
-
 
236
                                                     QDir::currentPath(),
-
 
237
                                                     tr("Data (*.csv);;All (*.*)"),
-
 
238
                                                     0
-
 
239
                                                     );
-
 
240
    if ( fileName.isEmpty() )
-
 
241
    {
-
 
242
        return;
-
 
243
    }
-
 
244
    MainWindow::showMessage("Writing external data");
-
 
245
    QmDialogLoadExternalTeams::storeData(fileName);
-
 
246
 
-
 
247
}
-
 
248
 
232
/*========================================================================
249
/*========================================================================
233
 *
250
 *
234
 *  Position the cursor on the screen
251
 *  Position the cursor on the screen
235
 *
252
 *
236
 *  Purpose:
253
 *  Purpose: