Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 571:5369359351cb 3.0-integration
Add record update timer (very crude this)
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 13:23:18 +0000 |
parents | 6f54789f3127 |
children | 4c1ab4f9e116 |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Wed Jan 04 11:48:03 2017 +0000 +++ b/framework/MainWindowBase.cpp Wed Jan 04 13:23:18 2017 +0000 @@ -158,6 +158,7 @@ m_initialDarkBackground(false), m_defaultFfwdRwdStep(2, 0), m_audioRecordMode(RecordCreateAdditionalModel), + m_audioRecordUpdateTimer(this), m_statusLabel(0), m_iconsVisibleInMenus(true), m_menuShortcutMapper(0) @@ -231,6 +232,9 @@ connect(m_paneStack, SIGNAL(paneDeleteButtonClicked(Pane *)), this, SLOT(paneDeleteButtonClicked(Pane *))); + connect(&m_audioRecordUpdateTimer, SIGNAL(timeout()), + m_paneStack, SLOT(update())); + m_playSource = new AudioCallbackPlaySource(m_viewManager, QApplication::applicationName()); if (m_soundOptions & WithAudioInput) { @@ -480,7 +484,7 @@ QTimer *oscTimer = new QTimer(this); connect(oscTimer, SIGNAL(timeout()), this, SLOT(pollOSC())); oscTimer->start(1000); - cerr << "Finished setting up OSC interface" << endl; + SVCERR << "Finished setting up OSC interface" << endl; } } @@ -3014,6 +3018,8 @@ currentPaneChanged(m_paneStack->getCurrentPane()); emit audioFileLoaded(); + + m_audioRecordUpdateTimer.start(1000); } void @@ -3262,6 +3268,8 @@ m_myStatusMessage = ""; getStatusLabel()->setText(""); } + + m_audioRecordUpdateTimer.stop(); } MainWindowBase::AddPaneCommand::AddPaneCommand(MainWindowBase *mw) :