Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv21362/widgets
Modified Files:
TimeTextCtrl.cpp TimeTextCtrl.h
Log Message:
+ Per Gale's suggestion, 5/20/07
Set initial focus to "0" of "05m" in Duration TimeTextCtrl, instead of
OK button.
+ Changed the check for completion time from < to <=, so now it's ~always some
fraction of kTimerInterval too long, rather than too short.
+ Always call UNow() instead of Now(), for better accuracy.
Index: TimeTextCtrl.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/TimeTextCtrl.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- TimeTextCtrl.h 17 Sep 2006 17:46:27 -0000 1.13
+++ TimeTextCtrl.h 30 May 2007 00:22:38 -0000 1.14
@@ -58,6 +58,7 @@
virtual bool Layout();
virtual void Fit();
+ void SetFieldFocus(int digit);
void SetFormatString(wxString formatString);
void SetSampleRate(double sampleRate);
void SetTimeValue(double newTime);
@@ -90,7 +91,6 @@
void PrintDebugInfo();
- void SetFieldFocus(int digit);
void Updated();
void Increase(int steps);
void Decrease(int steps);
Index: TimeTextCtrl.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/TimeTextCtrl.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- TimeTextCtrl.cpp 19 Feb 2007 06:25:51 -0000 1.47
+++ TimeTextCtrl.cpp 30 May 2007 00:22:38 -0000 1.48
@@ -1016,6 +1016,7 @@
mLastField);
}
+ mFocusedDigit = digit;
mLastField = mDigits[mFocusedDigit].field + 1;
GetAccessible()->NotifyEvent(wxACC_EVENT_OBJECT_FOCUS,
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs