comparison main/MainWindow.cpp @ 764:91d821455fa5 2.4beta1

Beta release dialog
author Chris Cannam
date Wed, 13 Aug 2014 21:37:25 +0100
parents 902756b8d8b1
children e927e43e428e
comparison
equal deleted inserted replaced
763:7374badd5f9e 764:91d821455fa5
160 m_playControlsWidth(0), 160 m_playControlsWidth(0),
161 m_preferencesDialog(0), 161 m_preferencesDialog(0),
162 m_layerTreeDialog(0), 162 m_layerTreeDialog(0),
163 m_activityLog(new ActivityLog()), 163 m_activityLog(new ActivityLog()),
164 m_keyReference(new KeyReference()), 164 m_keyReference(new KeyReference()),
165 m_templateWatcher(0) 165 m_templateWatcher(0),
166 m_surveyer(0),
167 m_versionTester(0)
166 { 168 {
167 Profiler profiler("MainWindow::MainWindow"); 169 Profiler profiler("MainWindow::MainWindow");
168 170
169 setWindowTitle(QApplication::applicationName()); 171 setWindowTitle(QApplication::applicationName());
170 172
299 newSession(); 301 newSession();
300 302
301 connect(m_midiInput, SIGNAL(eventsAvailable()), 303 connect(m_midiInput, SIGNAL(eventsAvailable()),
302 this, SLOT(midiEventsAvailable())); 304 this, SLOT(midiEventsAvailable()));
303 305
306 #ifdef BETA_RELEASE
307 QMessageBox::information
308 (this, tr("Test release"),
309 tr("<p>This is a test release of %1.</p>"
310 "<p>See the <a href=\"http://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG\">changelog</a> for details of what has changed since the last release.</p>"
311 "<p>Please let us know if you have any problems with this test release, and especially if it crashes. Use the <a href=\"http://sourceforge.net/p/sv1/bugs/\">bug tracker</a> or <a href=\"mailto:cannam+sv@all-day-breakfast.com\">email</a> to report bugs.</p><p>Please do not use this software for real work, and do not distribute it to other people who have real work to do! Use it only if you are prepared to report any bugs you find.</p>")
312 .arg(QApplication::applicationName()));
313
314 (void)withOSCSupport; // avoid warning
315 #else
304 NetworkPermissionTester tester; 316 NetworkPermissionTester tester;
305 bool networkPermission = tester.havePermission(); 317 bool networkPermission = tester.havePermission();
306 if (networkPermission) { 318 if (networkPermission) {
307 if (withOSCSupport) { 319 if (withOSCSupport) {
308 startOSCQueue(); 320 startOSCQueue();
312 ("sonicvisualiser.org", "survey23-present.txt", "survey23.php"); 324 ("sonicvisualiser.org", "survey23-present.txt", "survey23.php");
313 m_versionTester = new VersionTester 325 m_versionTester = new VersionTester
314 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION); 326 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION);
315 connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)), 327 connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)),
316 this, SLOT(newerVersionAvailable(QString))); 328 this, SLOT(newerVersionAvailable(QString)));
317 } else { 329 }
318 m_surveyer = 0; 330 #endif
319 m_versionTester = 0;
320 }
321 } 331 }
322 332
323 MainWindow::~MainWindow() 333 MainWindow::~MainWindow()
324 { 334 {
325 // SVDEBUG << "MainWindow::~MainWindow" << endl; 335 // SVDEBUG << "MainWindow::~MainWindow" << endl;