Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 160:64b09e5bda21
* rtmidi & activity updates
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 17:25:55 +0000 |
parents | ae56bf90cdf9 |
children | f90e277d2876 |
comparison
equal
deleted
inserted
replaced
159:06fc6fc21739 | 160:64b09e5bda21 |
---|---|
711 } | 711 } |
712 | 712 |
713 void | 713 void |
714 MainWindowBase::insertInstant() | 714 MainWindowBase::insertInstant() |
715 { | 715 { |
716 int frame = m_viewManager->getPlaybackFrame(); | 716 if (m_playSource && m_playSource->isPlaying()) { |
717 insertInstantAt(frame); | 717 insertInstantAt(m_playSource->getCurrentPlayingFrame()); |
718 } else { | |
719 insertInstantAt(m_viewManager->getPlaybackFrame()); | |
720 } | |
718 } | 721 } |
719 | 722 |
720 void | 723 void |
721 MainWindowBase::insertInstantsAtBoundaries() | 724 MainWindowBase::insertInstantsAtBoundaries() |
722 { | 725 { |
1712 this, SLOT(modelGenerationFailed(QString, QString))); | 1715 this, SLOT(modelGenerationFailed(QString, QString))); |
1713 connect(m_document, SIGNAL(modelRegenerationWarning(QString, QString, QString)), | 1716 connect(m_document, SIGNAL(modelRegenerationWarning(QString, QString, QString)), |
1714 this, SLOT(modelRegenerationWarning(QString, QString, QString))); | 1717 this, SLOT(modelRegenerationWarning(QString, QString, QString))); |
1715 connect(m_document, SIGNAL(alignmentFailed(QString, QString)), | 1718 connect(m_document, SIGNAL(alignmentFailed(QString, QString)), |
1716 this, SLOT(alignmentFailed(QString, QString))); | 1719 this, SLOT(alignmentFailed(QString, QString))); |
1720 | |
1721 emit replacedDocument(); | |
1717 } | 1722 } |
1718 | 1723 |
1719 bool | 1724 bool |
1720 MainWindowBase::saveSessionFile(QString path) | 1725 MainWindowBase::saveSessionFile(QString path) |
1721 { | 1726 { |