Mercurial > hg > svgui
diff view/ViewManager.cpp @ 180:29f01de27db4
* Add vertical zooming and snap-to-selection for OSC control;
add a demo script
author | Chris Cannam |
---|---|
date | Wed, 15 Nov 2006 18:22:26 +0000 |
parents | dbd34ff746c7 |
children | 42118892f428 |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Nov 14 16:06:00 2006 +0000 +++ b/view/ViewManager.cpp Wed Nov 15 18:22:26 2006 +0000 @@ -22,7 +22,7 @@ #include <iostream> -// #define DEBUG_VIEW_MANAGER 1 +//#define DEBUG_VIEW_MANAGER 1 ViewManager::ViewManager() : m_playSource(0), @@ -69,6 +69,15 @@ return m_globalCentreFrame; } +void +ViewManager::setGlobalCentreFrame(unsigned long f) +{ +#ifdef DEBUG_VIEW_MANAGER + std::cout << "ViewManager::setGlobalCentreFrame to " << f << std::endl; +#endif + m_globalCentreFrame = f; +} + unsigned long ViewManager::getGlobalZoom() const {