diff main/MainWindow.cpp @ 333:faff9cd8f663

* Offer the user a chance to answer our survey (only once, and only after several runs of the program, and only if the survey is known to be live on the website)
author Chris Cannam
date Thu, 27 Aug 2009 16:31:45 +0000
parents b168df820681
children f50fa43143ae
line wrap: on
line diff
--- a/main/MainWindow.cpp	Fri Aug 14 14:01:09 2009 +0000
+++ b/main/MainWindow.cpp	Thu Aug 27 16:31:45 2009 +0000
@@ -78,6 +78,8 @@
 #include "rdf/PluginRDFIndexer.h"
 #include "rdf/RDFExporter.h"
 
+#include "Surveyer.h"
+
 // For version information
 #include <vamp/vamp.h>
 #include <vamp-hostsdk/PluginBase.h>
@@ -347,6 +349,8 @@
     setupTransformsMenu();
 
     m_mainMenusCreated = true;
+
+    Surveyer *surveyer = new Surveyer(this);
 }
 
 void
@@ -4000,4 +4004,12 @@
     m_keyReference->show();
 }
 
-
+void
+MainWindow::newerVersionAvailable(QString version)
+{
+    QString title(tr("Newer version available"));
+    QString text(tr("<h3>Newer version available</h3><p>You are using version %1 of Sonic Visualiser.  Version %3 is now available.</p><p>Please consult the <a href=\"http://sonicvisualiser.org/\">Sonic Visualiser website</a> for more information.</p>").arg(SV_VERSION).arg(version));
+    QMessageBox::information(this, title, text);
+}
+
+