Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 528:e5e6625deb85 qt5
Update for Qt5 compatibility; use subrepo for dataquay
author | Chris Cannam |
---|---|
date | Mon, 11 Mar 2013 15:21:35 +0000 |
parents | a740e96d7fec |
children | 0b094b0fdcc4 |
comparison
equal
deleted
inserted
replaced
527:2e56d7390150 | 528:e5e6625deb85 |
---|---|
80 #include "layer/ColourDatabase.h" | 80 #include "layer/ColourDatabase.h" |
81 #include "widgets/ModelDataTableDialog.h" | 81 #include "widgets/ModelDataTableDialog.h" |
82 #include "rdf/PluginRDFIndexer.h" | 82 #include "rdf/PluginRDFIndexer.h" |
83 #include "rdf/RDFExporter.h" | 83 #include "rdf/RDFExporter.h" |
84 | 84 |
85 #include "Surveyer.h" | |
86 #include "framework/VersionTester.h" | 85 #include "framework/VersionTester.h" |
87 | 86 |
88 // For version information | 87 // For version information |
89 #include <vamp/vamp.h> | 88 #include <vamp/vamp.h> |
90 #include <vamp-hostsdk/PluginBase.h> | 89 #include <vamp-hostsdk/PluginBase.h> |
305 connect(m_midiInput, SIGNAL(eventsAvailable()), | 304 connect(m_midiInput, SIGNAL(eventsAvailable()), |
306 this, SLOT(midiEventsAvailable())); | 305 this, SLOT(midiEventsAvailable())); |
307 | 306 |
308 TransformFactory::getInstance()->startPopulationThread(); | 307 TransformFactory::getInstance()->startPopulationThread(); |
309 | 308 |
310 Surveyer *surveyer = new Surveyer(this); | |
311 VersionTester *vt = new VersionTester | 309 VersionTester *vt = new VersionTester |
312 ("sonicvisualiser.org", "/latest-version.txt", SV_VERSION); | 310 ("sonicvisualiser.org", "/latest-version.txt", SV_VERSION); |
313 connect(vt, SIGNAL(newerVersionAvailable(QString)), | 311 connect(vt, SIGNAL(newerVersionAvailable(QString)), |
314 this, SLOT(newerVersionAvailable(QString))); | 312 this, SLOT(newerVersionAvailable(QString))); |
315 } | 313 } |
1694 connect(action, SIGNAL(triggered()), this, SLOT(openRecentFile())); | 1692 connect(action, SIGNAL(triggered()), this, SLOT(openRecentFile())); |
1695 if (i == 0) { | 1693 if (i == 0) { |
1696 action->setShortcut(tr("Ctrl+R")); | 1694 action->setShortcut(tr("Ctrl+R")); |
1697 m_keyReference->registerShortcut | 1695 m_keyReference->registerShortcut |
1698 (tr("Re-open"), | 1696 (tr("Re-open"), |
1699 action->shortcut(), | 1697 action->shortcut().toString(), |
1700 tr("Re-open the current or most recently opened file")); | 1698 tr("Re-open the current or most recently opened file")); |
1701 } | 1699 } |
1702 m_recentFilesMenu->addAction(action); | 1700 m_recentFilesMenu->addAction(action); |
1703 } | 1701 } |
1704 } | 1702 } |
1770 } | 1768 } |
1771 if (i == 0) { | 1769 if (i == 0) { |
1772 ti->second->setShortcut(tr("Ctrl+T")); | 1770 ti->second->setShortcut(tr("Ctrl+T")); |
1773 m_keyReference->registerShortcut | 1771 m_keyReference->registerShortcut |
1774 (tr("Repeat Transform"), | 1772 (tr("Repeat Transform"), |
1775 ti->second->shortcut(), | 1773 ti->second->shortcut().toString(), |
1776 tr("Re-select the most recently run transform")); | 1774 tr("Re-select the most recently run transform")); |
1777 } else { | 1775 } else { |
1778 ti->second->setShortcut(QString("")); | 1776 ti->second->setShortcut(QString("")); |
1779 } | 1777 } |
1780 m_recentTransformsMenu->addAction(ti->second); | 1778 m_recentTransformsMenu->addAction(ti->second); |