Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv17793
Modified Files:
LabelTrack.cpp
Log Message:
Allows you to press TAB/Shift+TAB to get to the first or last labels and to
cycle back out again.
Index: LabelTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/LabelTrack.cpp,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- LabelTrack.cpp 29 Aug 2006 23:40:28 -0000 1.68
+++ LabelTrack.cpp 17 Sep 2006 04:06:24 -0000 1.69
@@ -1403,13 +1403,38 @@
case WXK_TAB:
if (event.ShiftDown()) {
- if (mSelIndex > 0)
mSelIndex--;
} else {
- if (mSelIndex < (int)mLabels.Count() - 1)
mSelIndex++;
}
+ if (mSelIndex >= 0 && mSelIndex < (int)mLabels.Count()) {
+ mCurrentCursorPos = mLabels[mSelIndex]->title.Length();
+ //Set the selection region to be equal to the selection bounds of
the tabbed-to label.
+ newSel0 = mLabels[mSelIndex]->t;
+ newSel1 = mLabels[mSelIndex]->t1;
+ }
+ else {
+ mSelIndex = -1;
+ }
+ break;
+
+ default:
+ event.Skip();
+ break;
+ }
+ }
+ else
+ {
+ switch (keyCode) {
+
+ case WXK_TAB:
+ if (event.ShiftDown()) {
+ mSelIndex = (int)mLabels.Count() - 1;
+ } else {
+ mSelIndex = 0;
+ }
+
mCurrentCursorPos = mLabels[mSelIndex]->title.Length();
//Set the selection region to be equal to the selection bounds of the
tabbed-to label.
newSel0 = mLabels[mSelIndex]->t;
@@ -1421,10 +1446,6 @@
break;
}
}
- else
- {
- event.Skip();
- }
// Make sure the caret is visible
mDrawCursor = true;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs