Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
332:b168df820681 | 333:faff9cd8f663 |
---|---|
76 #include "layer/ColourDatabase.h" | 76 #include "layer/ColourDatabase.h" |
77 #include "widgets/ModelDataTableDialog.h" | 77 #include "widgets/ModelDataTableDialog.h" |
78 #include "rdf/PluginRDFIndexer.h" | 78 #include "rdf/PluginRDFIndexer.h" |
79 #include "rdf/RDFExporter.h" | 79 #include "rdf/RDFExporter.h" |
80 | 80 |
81 #include "Surveyer.h" | |
82 | |
81 // For version information | 83 // For version information |
82 #include <vamp/vamp.h> | 84 #include <vamp/vamp.h> |
83 #include <vamp-hostsdk/PluginBase.h> | 85 #include <vamp-hostsdk/PluginBase.h> |
84 #include "plugin/api/ladspa.h" | 86 #include "plugin/api/ladspa.h" |
85 #include "plugin/api/dssi.h" | 87 #include "plugin/api/dssi.h" |
345 setupViewMenu(); | 347 setupViewMenu(); |
346 setupPaneAndLayerMenus(); | 348 setupPaneAndLayerMenus(); |
347 setupTransformsMenu(); | 349 setupTransformsMenu(); |
348 | 350 |
349 m_mainMenusCreated = true; | 351 m_mainMenusCreated = true; |
352 | |
353 Surveyer *surveyer = new Surveyer(this); | |
350 } | 354 } |
351 | 355 |
352 void | 356 void |
353 MainWindow::setupFileMenu() | 357 MainWindow::setupFileMenu() |
354 { | 358 { |
3998 MainWindow::keyReference() | 4002 MainWindow::keyReference() |
3999 { | 4003 { |
4000 m_keyReference->show(); | 4004 m_keyReference->show(); |
4001 } | 4005 } |
4002 | 4006 |
4003 | 4007 void |
4008 MainWindow::newerVersionAvailable(QString version) | |
4009 { | |
4010 QString title(tr("Newer version available")); | |
4011 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)); | |
4012 QMessageBox::information(this, title, text); | |
4013 } | |
4014 | |
4015 |