Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 1063:1f92fc7a6b05 3.0-integration
Merge from branch "recording"
author | Chris Cannam |
---|---|
date | Thu, 17 Sep 2015 13:46:20 +0100 |
parents | 40ff7c801fc2 25e1cc4f34eb |
children | 6fcb632384ba |
line wrap: on
line diff
--- a/main/MainWindow.cpp Thu Sep 17 13:29:31 2015 +0100 +++ b/main/MainWindow.cpp Thu Sep 17 13:46:20 2015 +0100 @@ -303,6 +303,8 @@ m_activityLog->hide(); m_unitConverter->hide(); + + setAudioRecordMode(RecordCreateAdditionalModel); newSession(); @@ -585,6 +587,13 @@ menu->addSeparator(); + action = new QAction(tr("Browse Recorded Audio Folder"), this); + action->setStatusTip(tr("Open the Recorded Audio folder in the system file browser")); + connect(action, SIGNAL(triggered()), this, SLOT(browseRecordedAudio())); + menu->addAction(action); + + menu->addSeparator(); + QString templatesMenuLabel = tr("Apply Session Template"); m_templatesMenu = menu->addMenu(templatesMenuLabel); m_templatesMenu->setTearOffEnabled(true); @@ -2057,6 +2066,7 @@ m_keyReference->registerShortcut(m_ffwdEndAction); menu->addAction(m_playAction); + menu->addAction(m_recordAction); menu->addAction(m_playSelectionAction); menu->addAction(m_playLoopAction); menu->addAction(m_soloAction); @@ -2075,6 +2085,7 @@ menu->addSeparator(); m_rightButtonPlaybackMenu->addAction(m_playAction); + m_rightButtonPlaybackMenu->addAction(m_recordAction); m_rightButtonPlaybackMenu->addAction(m_playSelectionAction); m_rightButtonPlaybackMenu->addAction(m_playLoopAction); m_rightButtonPlaybackMenu->addAction(m_soloAction); @@ -2896,6 +2907,17 @@ } void +MainWindow::browseRecordedAudio() +{ + if (!m_recordTarget) return; + + QString path = m_recordTarget->getRecordFolder(); + if (path == "") return; + + openLocalFolder(path); +} + +void MainWindow::newSession() { if (!checkSaveModified()) return;