Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv23649
Modified Files:
SmartRecordDialog.cpp
Log Message:
Use the general progress dialog for the "other" waiting period too... :-)
Index: SmartRecordDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/SmartRecordDialog.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- SmartRecordDialog.cpp 7 Sep 2006 06:25:29 -0000 1.4
+++ SmartRecordDialog.cpp 7 Sep 2006 06:48:36 -0000 1.5
@@ -363,16 +363,10 @@
bool SmartRecordDialog::WaitForStart()
{
+ AudacityProject* pProject = GetActiveProject();
wxString strMsg = _("Waiting to start recording at ") +
m_DateTime_Start.Format() + wxT(".\n");
- wxProgressDialog* progDlg =
- new wxProgressDialog(
- _("Audacity Smart Record - Waiting for Start"), // const wxString&
title,
- strMsg, // const wxString& message,
- MAX_PROG, // int maximum = 100,
- NULL, // wxWindow * parent = NULL,
- wxPD_AUTO_HIDE | wxPD_APP_MODAL |
- wxPD_CAN_ABORT | wxPD_ELAPSED_TIME | wxPD_REMAINING_TIME); //
int style = wxPD_AUTO_HIDE | wxPD_APP_MODAL
- progDlg->Show();
+ pProject->ProgressShow(_("Audacity Smart Record - Waiting for Start"),
+ strMsg);
wxDateTime startWait_DateTime = wxDateTime::Now();
wxTimeSpan waitDuration = m_DateTime_Start - startWait_DateTime;
@@ -389,10 +383,10 @@
(wxLongLong)((done_TimeSpan.GetSeconds() * (double)MAX_PROG) /
waitDuration.GetSeconds());
nProgValue = llProgValue.ToLong(); //vvv ToLong truncates, so may fail
ASSERT.
- bDidCancel = !progDlg->Update(nProgValue);
+ bDidCancel = !pProject->ProgressUpdate(nProgValue);
bIsRecording = (m_DateTime_Start <= wxDateTime::UNow());
}
- delete progDlg;
+ pProject->ProgressHide();
return !bDidCancel;
}
-------------------------------------------------------------------------
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