Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 333:e74b56f07c73
* Some work on correct alignment when moving panes during playback
* Overhaul alignment for playback frame values (view manager now always
refers to reference-timeline values, only the play source deals in
playback model timeline values)
* When making a selection, ensure the selection regions shown in other
panes (and used for playback constraints if appropriate) are aligned
correctly. This may be the coolest feature ever implemented in any
program ever.
author | Chris Cannam |
---|---|
date | Thu, 22 Nov 2007 14:17:19 +0000 |
parents | 4f4f38a11cd2 |
children | 1b6879d03cb6 0895517bb2d1 |
comparison
equal
deleted
inserted
replaced
331:d2d2521a6c7e | 333:e74b56f07c73 |
---|---|
171 ViewManager::setPlaybackModel(Model *model) | 171 ViewManager::setPlaybackModel(Model *model) |
172 { | 172 { |
173 m_playbackModel = model; | 173 m_playbackModel = model; |
174 } | 174 } |
175 | 175 |
176 size_t | |
177 ViewManager::alignPlaybackFrameToReference(size_t frame) const | |
178 { | |
179 if (!m_playbackModel) return frame; | |
180 else return m_playbackModel->alignToReference(frame); | |
181 } | |
182 | |
183 size_t | |
184 ViewManager::alignReferenceToPlaybackFrame(size_t frame) const | |
185 { | |
186 if (!m_playbackModel) return frame; | |
187 else return m_playbackModel->alignFromReference(frame); | |
188 } | |
189 | |
176 bool | 190 bool |
177 ViewManager::haveInProgressSelection() const | 191 ViewManager::haveInProgressSelection() const |
178 { | 192 { |
179 return !m_inProgressSelection.isEmpty(); | 193 return !m_inProgressSelection.isEmpty(); |
180 } | 194 } |