Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
300:0824a754a8eb | 301:5636eeacc467 |
---|---|
29 ViewManager::ViewManager() : | 29 ViewManager::ViewManager() : |
30 m_playSource(0), | 30 m_playSource(0), |
31 m_globalCentreFrame(0), | 31 m_globalCentreFrame(0), |
32 m_globalZoom(1024), | 32 m_globalZoom(1024), |
33 m_playbackFrame(0), | 33 m_playbackFrame(0), |
34 m_playbackModel(0), | |
34 m_mainModelSampleRate(0), | 35 m_mainModelSampleRate(0), |
35 m_lastLeft(0), | 36 m_lastLeft(0), |
36 m_lastRight(0), | 37 m_lastRight(0), |
37 m_inProgressExclusive(true), | 38 m_inProgressExclusive(true), |
38 m_toolMode(NavigateMode), | 39 m_toolMode(NavigateMode), |
39 m_playLoopMode(false), | 40 m_playLoopMode(false), |
40 m_playSelectionMode(false), | 41 m_playSelectionMode(false), |
42 m_playSoloMode(false), | |
41 m_overlayMode(StandardOverlays), | 43 m_overlayMode(StandardOverlays), |
42 m_zoomWheelsEnabled(true), | 44 m_zoomWheelsEnabled(true), |
43 m_lightPalette(QApplication::palette()), | 45 m_lightPalette(QApplication::palette()), |
44 m_darkPalette(QApplication::palette()) | 46 m_darkPalette(QApplication::palette()) |
45 { | 47 { |
154 m_playSource->play(f); | 156 m_playSource->play(f); |
155 } | 157 } |
156 } | 158 } |
157 } | 159 } |
158 | 160 |
161 Model * | |
162 ViewManager::getPlaybackModel() const | |
163 { | |
164 return m_playbackModel; | |
165 } | |
166 | |
167 void | |
168 ViewManager::setPlaybackModel(Model *model) | |
169 { | |
170 m_playbackModel = model; | |
171 } | |
172 | |
159 bool | 173 bool |
160 ViewManager::haveInProgressSelection() const | 174 ViewManager::haveInProgressSelection() const |
161 { | 175 { |
162 return !m_inProgressSelection.isEmpty(); | 176 return !m_inProgressSelection.isEmpty(); |
163 } | 177 } |
327 | 341 |
328 m_playSelectionMode = mode; | 342 m_playSelectionMode = mode; |
329 | 343 |
330 emit playSelectionModeChanged(); | 344 emit playSelectionModeChanged(); |
331 emit playSelectionModeChanged(mode); | 345 emit playSelectionModeChanged(mode); |
346 } | |
347 } | |
348 | |
349 void | |
350 ViewManager::setPlaySoloMode(bool mode) | |
351 { | |
352 if (m_playSoloMode != mode) { | |
353 | |
354 m_playSoloMode = mode; | |
355 | |
356 emit playSoloModeChanged(); | |
357 emit playSoloModeChanged(mode); | |
332 } | 358 } |
333 } | 359 } |
334 | 360 |
335 size_t | 361 size_t |
336 ViewManager::getPlaybackSampleRate() const | 362 ViewManager::getPlaybackSampleRate() const |