Subversion Repositories svn1

Rev

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

Rev 151 Rev 152
Line 52... Line 52...
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
    m2->addAction("Store team information to external file", this, SLOT(storeExternalTeams()));
-
 
57
    m2->addAction("Create external team information file", this, SLOT(storeTeamInfo()));
57
 
58
 
58
}
59
}
59
 
60
 
60
MainWindow::~MainWindow()
61
MainWindow::~MainWindow()
61
{
62
{
Line 244... Line 245...
244
    MainWindow::showMessage("Writing external data");
245
    MainWindow::showMessage("Writing external data");
245
    QmDialogLoadExternalTeams::storeData(fileName);
246
    QmDialogLoadExternalTeams::storeData(fileName);
246
    MainWindow::showMessage("Writing external data completed");
247
    MainWindow::showMessage("Writing external data completed");
247
}
248
}
248
 
249
 
-
 
250
void MainWindow::storeTeamInfo(void)
-
 
251
{
-
 
252
    QString fileName = QFileDialog::getSaveFileName(this, tr("Store Team Info File"),
-
 
253
                                                     QDir::currentPath(),
-
 
254
                                                     tr("Data (*.txt);;All (*.*)"),
-
 
255
                                                     0
-
 
256
                                                     );
-
 
257
    if ( fileName.isEmpty() )
-
 
258
    {
-
 
259
        return;
-
 
260
    }
-
 
261
    MainWindow::showMessage("Writing team info");
-
 
262
    QmDialogLoadExternalTeams::storeTeamInfo(fileName);
-
 
263
    MainWindow::showMessage("Writing team info completed");
-
 
264
}
-
 
265
 
249
/*========================================================================
266
/*========================================================================
250
 *
267
 *
251
 *  Position the cursor on the screen
268
 *  Position the cursor on the screen
252
 *
269
 *
253
 *  Purpose:
270
 *  Purpose: