Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 830:8bb9320f78a4
Debug output stuff
author | Chris Cannam |
---|---|
date | Fri, 25 Jul 2014 17:02:29 +0100 |
parents | d974ed657176 |
children | d4446f267e12 |
comparison
equal
deleted
inserted
replaced
829:5acfb11e8aef | 830:8bb9320f78a4 |
---|---|
188 } | 188 } |
189 | 189 |
190 int | 190 int |
191 ViewManager::alignPlaybackFrameToReference(int frame) const | 191 ViewManager::alignPlaybackFrameToReference(int frame) const |
192 { | 192 { |
193 if (!m_playbackModel) return frame; | 193 #ifdef DEBUG_VIEW_MANAGER |
194 else return m_playbackModel->alignToReference(frame); | 194 cerr << "ViewManager::alignPlaybackFrameToReference(" << frame << "): playback model is " << m_playbackModel << endl; |
195 #endif | |
196 if (!m_playbackModel) { | |
197 return frame; | |
198 } else { | |
199 int f = m_playbackModel->alignToReference(frame); | |
200 #ifdef DEBUG_VIEW_MANAGER | |
201 cerr << "aligned frame = " << f << endl; | |
202 #endif | |
203 return f; | |
204 } | |
195 } | 205 } |
196 | 206 |
197 int | 207 int |
198 ViewManager::alignReferenceToPlaybackFrame(int frame) const | 208 ViewManager::alignReferenceToPlaybackFrame(int frame) const |
199 { | 209 { |
200 if (!m_playbackModel) return frame; | 210 #ifdef DEBUG_VIEW_MANAGER |
201 else return m_playbackModel->alignFromReference(frame); | 211 cerr << "ViewManager::alignReferenceToPlaybackFrame(" << frame << "): playback model is " << m_playbackModel << endl; |
212 #endif | |
213 if (!m_playbackModel) { | |
214 return frame; | |
215 } else { | |
216 int f = m_playbackModel->alignFromReference(frame); | |
217 #ifdef DEBUG_VIEW_MANAGER | |
218 cerr << "aligned frame = " << f << endl; | |
219 #endif | |
220 return f; | |
221 } | |
202 } | 222 } |
203 | 223 |
204 bool | 224 bool |
205 ViewManager::haveInProgressSelection() const | 225 ViewManager::haveInProgressSelection() const |
206 { | 226 { |