Mercurial > hg > svgui
diff view/ViewManager.cpp @ 301:5636eeacc467
* Merge from sv-match-alignment branch (excluding alignment-specific document).
- add aggregate wave model (not yet complete enough to be added as a true
model in a layer, but there's potential)
- add play solo mode
- add alignment model -- unused in plain SV
- fix two plugin leaks
- add m3u playlist support (opens all files at once, potentially hazardous)
- fix retrieval of pre-encoded URLs
- add ability to resample audio files on import, so as to match rates with
other files previously loaded; add preference for same
- add preliminary support in transform code for range and rate of transform
input
- reorganise preferences dialog, move dark-background option to preferences,
add option for temporary directory location
author | Chris Cannam |
---|---|
date | Fri, 28 Sep 2007 13:56:38 +0000 |
parents | 15b8a4bfe855 |
children | 7b96a3261e1c |
line wrap: on
line diff
--- a/view/ViewManager.cpp Thu Sep 06 15:17:35 2007 +0000 +++ b/view/ViewManager.cpp Fri Sep 28 13:56:38 2007 +0000 @@ -31,6 +31,7 @@ m_globalCentreFrame(0), m_globalZoom(1024), m_playbackFrame(0), + m_playbackModel(0), m_mainModelSampleRate(0), m_lastLeft(0), m_lastRight(0), @@ -38,6 +39,7 @@ m_toolMode(NavigateMode), m_playLoopMode(false), m_playSelectionMode(false), + m_playSoloMode(false), m_overlayMode(StandardOverlays), m_zoomWheelsEnabled(true), m_lightPalette(QApplication::palette()), @@ -156,6 +158,18 @@ } } +Model * +ViewManager::getPlaybackModel() const +{ + return m_playbackModel; +} + +void +ViewManager::setPlaybackModel(Model *model) +{ + m_playbackModel = model; +} + bool ViewManager::haveInProgressSelection() const { @@ -332,6 +346,18 @@ } } +void +ViewManager::setPlaySoloMode(bool mode) +{ + if (m_playSoloMode != mode) { + + m_playSoloMode = mode; + + emit playSoloModeChanged(); + emit playSoloModeChanged(mode); + } +} + size_t ViewManager::getPlaybackSampleRate() const {