Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv3204/audacity/src
The patch thus introduces keyboard shortcuts for making short/long jumps while paused and while playing.
However,it doesnt affect any of the current functionality (using (shift+)arrow to jump while playing).
Keyboard prefs are bound to , and . for short jumps, and with shift (i.e. <,>) for long jumps.
Also added new function to adjust boundaries, so that keyboard
shortcuts for this can be assigned more flexibly. E.g. the new preference
allows the same key to be used for setting the left boundary
while playing, and extending that boundary while stopped.
Changes contained in two functions in TrackPanel.cpp, and some keyboard
preferences in Menus.cpp. This present code just uses one function for both
left and right movements, and is less tied to keyboard shortcuts than the older
code. At the moment, it just duplicated functionality of older code, but it could
replace older code in future releases.
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.h,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- TrackPanel.h 23 Aug 2007 11:24:08 -0000 1.120
+++ TrackPanel.h 30 Sep 2007 18:58:35 -0000 1.121
@@ -194,6 +194,8 @@
void OnCursorLeft(bool shift, bool ctrl);
void OnCursorRight(bool shift, bool ctrl);
+ void OnCursorMove(bool forward, bool jump, bool longjump);
+ void OnBoundaryMove(bool left, bool boundaryContract);
void ScrollIntoView(double pos);
void ScrollIntoView(int x);