# HG changeset patch # User Chris Cannam # Date 1141840078 0 # Node ID 7bf163161b88a2fda23a3d90e1347bdb05f61a61 # Parent 2b6412c1e724c202ccbde2c66766a4655b92fdc8 * more MainWindow/Document stuff diff -r 2b6412c1e724 -r 7bf163161b88 base/ViewManager.cpp --- a/base/ViewManager.cpp Wed Mar 08 12:38:28 2006 +0000 +++ b/base/ViewManager.cpp Wed Mar 08 17:47:58 2006 +0000 @@ -20,6 +20,7 @@ m_globalCentreFrame(0), m_globalZoom(1024), m_playbackFrame(0), + m_mainModelSampleRate(0), m_lastLeft(0), m_lastRight(0), m_inProgressExclusive(true), diff -r 2b6412c1e724 -r 7bf163161b88 base/ViewManager.h --- a/base/ViewManager.h Wed Mar 08 12:38:28 2006 +0000 +++ b/base/ViewManager.h Wed Mar 08 17:47:58 2006 +0000 @@ -84,6 +84,8 @@ void setPlaySelectionMode(bool on); size_t getPlaybackSampleRate() const; + size_t getMainModelSampleRate() const { return m_mainModelSampleRate; } + void setMainModelSampleRate(size_t sr) { m_mainModelSampleRate = sr; } signals: /** Emitted when a widget pans. The originator identifies the widget. */ @@ -124,6 +126,7 @@ unsigned long m_globalCentreFrame; unsigned long m_globalZoom; mutable unsigned long m_playbackFrame; + size_t m_mainModelSampleRate; float m_lastLeft; float m_lastRight;