Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 314:7b96a3261e1c
* "Align mode"
author | Chris Cannam |
---|---|
date | Tue, 16 Oct 2007 18:42:51 +0000 |
parents | 5636eeacc467 |
children | 4f4f38a11cd2 |
comparison
equal
deleted
inserted
replaced
313:1517c76cd678 | 314:7b96a3261e1c |
---|---|
38 m_inProgressExclusive(true), | 38 m_inProgressExclusive(true), |
39 m_toolMode(NavigateMode), | 39 m_toolMode(NavigateMode), |
40 m_playLoopMode(false), | 40 m_playLoopMode(false), |
41 m_playSelectionMode(false), | 41 m_playSelectionMode(false), |
42 m_playSoloMode(false), | 42 m_playSoloMode(false), |
43 m_alignMode(false), | |
43 m_overlayMode(StandardOverlays), | 44 m_overlayMode(StandardOverlays), |
44 m_zoomWheelsEnabled(true), | 45 m_zoomWheelsEnabled(true), |
45 m_lightPalette(QApplication::palette()), | 46 m_lightPalette(QApplication::palette()), |
46 m_darkPalette(QApplication::palette()) | 47 m_darkPalette(QApplication::palette()) |
47 { | 48 { |
356 emit playSoloModeChanged(); | 357 emit playSoloModeChanged(); |
357 emit playSoloModeChanged(mode); | 358 emit playSoloModeChanged(mode); |
358 } | 359 } |
359 } | 360 } |
360 | 361 |
362 void | |
363 ViewManager::setAlignMode(bool mode) | |
364 { | |
365 if (m_alignMode != mode) { | |
366 | |
367 m_alignMode = mode; | |
368 | |
369 emit alignModeChanged(); | |
370 emit alignModeChanged(mode); | |
371 } | |
372 } | |
373 | |
361 size_t | 374 size_t |
362 ViewManager::getPlaybackSampleRate() const | 375 ViewManager::getPlaybackSampleRate() const |
363 { | 376 { |
364 if (m_playSource) { | 377 if (m_playSource) { |
365 return m_playSource->getSourceSampleRate(); | 378 return m_playSource->getSourceSampleRate(); |