traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/sheetcanvas SheetView.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/sheetcanvas SheetView.cpp
Date: Tue, 12 Feb 2008 17:38:17 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/02/12 17:38:17

Modified files:
        src/sheetcanvas: SheetView.cpp 

Log message:
        * revert last change for now, it is still needed for e.g. the Gain 
command

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/SheetView.cpp?cvsroot=traverso&r1=1.7&r2=1.8

Patches:
Index: SheetView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/SheetView.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- SheetView.cpp       12 Feb 2008 17:31:49 -0000      1.7
+++ SheetView.cpp       12 Feb 2008 17:38:17 -0000      1.8
@@ -276,7 +276,18 @@
        // This slot is called when the hscrollbar value changes,
        // which can be due shuttling or playhead scrolling the page.
        // In that very case, we do NOT set the hscrollbar value AGAIN
-       if (!ie().is_holding()) {
+       // but in case of a non-shuttle command, we call ie().jog to give the 
+       // command the opportunity to update (Gain-cursor position for example) 
+       // itself for the changed viewport / mouse coordinates.
+       // FIXME This is NOT a solution to set hold-cursors at the correct
+       // position in the viewport when it's scrolled programatically !!!!!
+       if (ie().is_holding()) {
+               Shuttle* s = dynamic_cast<Shuttle*>(ie().get_holding_command());
+               Zoom* z = dynamic_cast<Zoom*>(ie().get_holding_command());
+               if (!(s || z)) {
+                       ie().jog();
+               }
+       } else {
                m_clipsViewPort->horizontalScrollBar()->setValue(value);
        }
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]