comparison main/MainWindow.cpp @ 609:ef0778016c88

Version and beta warning
author Chris Cannam
date Wed, 09 Oct 2019 14:58:10 +0100
parents fd86f443678a
children 41e221cd740e
comparison
equal deleted inserted replaced
608:d3abe983e1c0 609:ef0778016c88
1262 connect(this, SIGNAL(canPlay(bool)), m_showSpect, SLOT(setEnabled(bool))); 1262 connect(this, SIGNAL(canPlay(bool)), m_showSpect, SLOT(setEnabled(bool)));
1263 1263
1264 Pane::registerShortcuts(*m_keyReference); 1264 Pane::registerShortcuts(*m_keyReference);
1265 1265
1266 updateLayerStatuses(); 1266 updateLayerStatuses();
1267
1268 QTimer::singleShot(500, this, SLOT(betaReleaseWarning()));
1267 } 1269 }
1268 1270
1269 1271
1270 void 1272 void
1271 MainWindow::moveOneNoteRight() 1273 MainWindow::moveOneNoteRight()
3199 { 3201 {
3200 contextHelpChanged(""); 3202 contextHelpChanged("");
3201 } 3203 }
3202 3204
3203 void 3205 void
3206 MainWindow::betaReleaseWarning()
3207 {
3208 QMessageBox::information
3209 (this, tr("Beta release"),
3210 tr("<b>This is a beta release of %1</b><p>Please see the \"What's New\" option in the Help menu for a list of changes since the last proper release.</p>").arg(QApplication::applicationName()));
3211 }
3212
3213 void
3204 MainWindow::help() 3214 MainWindow::help()
3205 { 3215 {
3206 //!!! todo: help URL! 3216 //!!! todo: help URL!
3207 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/wiki/Reference")); 3217 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/wiki/Reference"));
3208 } 3218 }
3291 } 3301 }
3292 3302
3293 void 3303 void
3294 MainWindow::about() 3304 MainWindow::about()
3295 { 3305 {
3296 bool debug = false;
3297 QString version = "(unknown version)";
3298
3299 #ifdef BUILD_DEBUG
3300 debug = true;
3301 #endif
3302 version = tr("Release %1").arg(TONY_VERSION);
3303
3304 QString aboutText; 3306 QString aboutText;
3305 3307
3306 aboutText += tr("<h3>About Tony</h3>"); 3308 aboutText += tr("<h3>About Tony</h3>");
3307 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>"); 3309 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>");
3308 aboutText += QString("<p><small>%1</small></p>").arg(getReleaseText()); 3310 aboutText += QString("<p><small>%1</small></p>").arg(getReleaseText());