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 SheetView.h


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/sheetcanvas SheetView.cpp SheetView.h
Date: Wed, 04 Mar 2009 20:37:42 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       09/03/04 20:37:42

Modified files:
        src/sheetcanvas: SheetView.cpp SheetView.h 

Log message:
        When receiving the tranportPosSet signal from Sheet, do actually 
something usefull, like centering the playhead, but only if transport is not 
rolling (if it is, the playhead will be visible allready)
        @ Ben: does this change not get into the way of  update_follow_playhead 
thingies?

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/SheetView.cpp?cvsroot=traverso&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/SheetView.h?cvsroot=traverso&r1=1.3&r2=1.4

Patches:
Index: SheetView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/SheetView.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- SheetView.cpp       7 Feb 2009 17:41:26 -0000       1.11
+++ SheetView.cpp       4 Mar 2009 20:37:42 -0000       1.12
@@ -104,7 +104,7 @@
        
        connect(m_sheet, SIGNAL(workingPosChanged()), m_workCursor, 
SLOT(update_position()));
        connect(m_sheet, SIGNAL(transportStarted()), this, 
SLOT(follow_play_head()));
-       connect(m_sheet, SIGNAL(transportPosSet()), this, 
SLOT(follow_play_head()));
+       connect(m_sheet, SIGNAL(transportPosSet()), this, 
SLOT(transport_position_set()));
        connect(m_sheet, SIGNAL(workingPosChanged()), this, 
SLOT(stop_follow_play_head()));
        
        m_clipsViewPort->scene()->addItem(m_playCursor);
@@ -353,6 +353,13 @@
 }
 
 
+void SheetView::transport_position_set()
+{
+       if (!m_sheet->is_transport_rolling())
+               center_playhead();
+}
+
+
 void SheetView::stop_follow_play_head()
 {
        m_sheet->set_temp_follow_state(false);
@@ -719,4 +726,3 @@
        }
        
 }
-

Index: SheetView.h
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/SheetView.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- SheetView.h 29 Jan 2008 10:23:11 -0000      1.3
+++ SheetView.h 4 Mar 2009 20:37:42 -0000       1.4
@@ -131,6 +131,7 @@
        void stop_follow_play_head();
        void follow_play_head();
        void set_follow_state(bool state);
+       void transport_position_set();
 
        Command* touch();
        Command* touch_play_cursor();




reply via email to

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