Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv2143/src
Modified Files:
Project.cpp
Log Message:
-Beep on completion of longer activities
Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.327
retrieving revision 1.328
diff -u -d -r1.327 -r1.328
--- Project.cpp 16 Sep 2007 20:44:12 -0000 1.327
+++ Project.cpp 19 Sep 2007 07:11:48 -0000 1.328
@@ -3493,6 +3493,15 @@
void AudacityProject::ProgressHide()
{
if (mProgressDialog[mProgressCurrent]) {
+ if( wxIsBusy() )
+ {
+ bool bBeepOnCompletion;
+ gPrefs->Read(wxT("/GUI/BeepOnCompletion"), &bBeepOnCompletion, false);
+ if( bBeepOnCompletion )
+ {
+ wxBell();
+ }
+ }
mProgressDialog[mProgressCurrent]->Hide();
}
@@ -3520,6 +3529,7 @@
// We've just created the progress dialog.
// We want to be able to click its cancel button
// So we enable it, whilst disabling everything else.
+ mProgressDialog[mProgressCurrent]->Show();
SetEnabledWindow( mProgressDialog[mProgressCurrent] );
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs