comparison view/Pane.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 29fcf125f98b
children 2f83b6e3b8ca
comparison
equal deleted inserted replaced
331:d2d2521a6c7e 333:e74b56f07c73
1274 } 1274 }
1275 1275
1276 if (snapFrame < 0) snapFrame = 0; 1276 if (snapFrame < 0) snapFrame = 0;
1277 m_selectionStartFrame = snapFrame; 1277 m_selectionStartFrame = snapFrame;
1278 if (m_manager) { 1278 if (m_manager) {
1279 m_manager->setInProgressSelection(Selection(snapFrame, 1279 m_manager->setInProgressSelection
1280 snapFrame + resolution), 1280 (Selection(alignToReference(snapFrame),
1281 !m_ctrlPressed); 1281 alignToReference(snapFrame + resolution)),
1282 !m_ctrlPressed);
1282 } 1283 }
1283 1284
1284 m_resizing = false; 1285 m_resizing = false;
1285 } 1286 }
1286 1287
1725 min = snapFrameLeft; 1726 min = snapFrameLeft;
1726 max = snapFrameRight; 1727 max = snapFrameRight;
1727 } 1728 }
1728 1729
1729 if (m_manager) { 1730 if (m_manager) {
1730 m_manager->setInProgressSelection(Selection(min, max), 1731 m_manager->setInProgressSelection(Selection(alignToReference(min),
1732 alignToReference(max)),
1731 !m_resizing && !m_ctrlPressed); 1733 !m_resizing && !m_ctrlPressed);
1732 } 1734 }
1733 1735
1734 edgeScrollMaybe(e->x()); 1736 edgeScrollMaybe(e->x());
1735 1737