# HG changeset patch # User Chris Cannam # Date 1569415782 -3600 # Node ID a2162fd2e8eb8e685d5bad7fb8c282a6f716b1cf # Parent 61295186a887c65f4536a9189789f63714502b95# Parent 2721030c939fcce21b5977b0cf9f3424501330bf Merge from branch time-frequency-boxes diff -r 61295186a887 -r a2162fd2e8eb .hgtags --- a/.hgtags Thu Sep 19 13:25:37 2019 +0100 +++ b/.hgtags Wed Sep 25 13:49:42 2019 +0100 @@ -91,3 +91,4 @@ 1d87a709fe1a8ba900e470d2b34a264352e612cd sv_v3.3pre2 1d87a709fe1a8ba900e470d2b34a264352e612cd sv_v3.3pre2 efea4a6a909a372460de1d21bf7d473c50bfeaac sv_v3.3pre2 +44d0b0fc4d04ebafa4660dba29ba437b34c621ba sv_v4.0pre1 diff -r 61295186a887 -r a2162fd2e8eb CHANGELOG --- a/CHANGELOG Thu Sep 19 13:25:37 2019 +0100 +++ b/CHANGELOG Wed Sep 25 13:49:42 2019 +0100 @@ -1,5 +1,14 @@ -Changes in Sonic Visualiser v3.3 (Apr 2019) since the previous release 3.2.1: +Changes in Sonic Visualiser v4.0 since the previous release 3.3: + + - Add Time-Frequency Box annotation layer type. Because this + introduces a new layer type into the session file format, the major + version number has been bumped to v4.0. (Sessions saved from v4.0 + can be opened in earlier versions of Sonic Visualiser, but any + Time-Frequency Box layers will not be loaded.) + + +Changes in Sonic Visualiser v3.3 (May 2019) since the previous release 3.2.1: - Add support for reading the Opus audio codec on all platforms diff -r 61295186a887 -r a2162fd2e8eb main/MainWindow.cpp --- a/main/MainWindow.cpp Thu Sep 19 13:25:37 2019 +0100 +++ b/main/MainWindow.cpp Wed Sep 25 13:49:42 2019 +0100 @@ -357,9 +357,7 @@ startOSCQueue(false); } -/* QTimer::singleShot(500, this, SLOT(betaReleaseWarning())); -*/ QString warning = PluginScan::getInstance()->getStartupFailureReport(); if (warning != "") { @@ -4022,16 +4020,13 @@ Layer *newLayer = nullptr; + bool isNewEmptyLayer = false; + if (emptyTypes.find(type) != emptyTypes.end()) { newLayer = m_document->createEmptyLayer(type); if (newLayer) { - for (auto &a : m_toolActions) { - if (a.first == ViewManager::DrawMode) { - a.second->trigger(); - break; - } - } + isNewEmptyLayer = true; } } else { @@ -4070,6 +4065,23 @@ } } + if (isNewEmptyLayer) { + + double vmin, vmax, dmin, dmax; + QString unit; + if (pane->getTopLayerDisplayExtents + (vmin, vmax, dmin, dmax, &unit)) { + newLayer->adoptExtents(vmin, vmax, unit); + } + + for (auto &a : m_toolActions) { + if (a.first == ViewManager::DrawMode) { + a.second->trigger(); + break; + } + } + } + if (newLayer) { m_document->addLayerToView(pane, newLayer); m_paneStack->setCurrentLayer(pane, newLayer); @@ -4540,7 +4552,6 @@ shownOnce = true; } -/* void MainWindow::betaReleaseWarning() { @@ -4548,7 +4559,6 @@ (this, tr("Beta release"), tr("This is a beta release of Sonic Visualiser
Please see the \"What's New\" option in the Help menu for a list of changes since the last proper release.
")); } -*/ void MainWindow::pluginPopulationWarning() diff -r 61295186a887 -r a2162fd2e8eb main/MainWindow.h --- a/main/MainWindow.h Thu Sep 19 13:25:37 2019 +0100 +++ b/main/MainWindow.h Wed Sep 25 13:49:42 2019 +0100 @@ -155,9 +155,7 @@ virtual void midiEventsAvailable(); virtual void playStatusChanged(bool); -/* virtual void betaReleaseWarning(); -*/ virtual void pluginPopulationWarning(); virtual void saveSessionAsTemplate(); diff -r 61295186a887 -r a2162fd2e8eb repoint-lock.json --- a/repoint-lock.json Thu Sep 19 13:25:37 2019 +0100 +++ b/repoint-lock.json Wed Sep 25 13:49:42 2019 +0100 @@ -4,13 +4,13 @@ "pin": "0b6802e3b755" }, "svcore": { - "pin": "4eac4bf35b45" + "pin": "f0ffc88a36b3" }, "svgui": { - "pin": "872873aa6463" + "pin": "d3ef60b6ae93" }, "svapp": { - "pin": "721eb532840d" + "pin": "3e930ea94db6" }, "checker": { "pin": "c8c17e51aab0" @@ -46,7 +46,7 @@ "pin": "f3731af47c4b" }, "icons/scalable": { - "pin": "69063e69d044" + "pin": "be45984f7915" } } } diff -r 61295186a887 -r a2162fd2e8eb sonic-visualiser.qrc --- a/sonic-visualiser.qrc Thu Sep 19 13:25:37 2019 +0100 +++ b/sonic-visualiser.qrc Wed Sep 25 13:49:42 2019 +0100 @@ -61,6 +61,7 @@