1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Fix 9c75ebe, which caused TrackPanel not to get the message

This commit is contained in:
Paul Licameli 2019-05-21 20:22:28 -04:00
parent ad0580c3de
commit 441763cabd
5 changed files with 9 additions and 6 deletions

View File

@ -185,8 +185,6 @@ BEGIN_EVENT_TABLE(TrackPanel, CellularPanel)
EVT_TIMER(wxID_ANY, TrackPanel::OnTimer)
EVT_COMMAND(wxID_ANY, EVT_ODTASK_UPDATE, TrackPanel::OnODTask)
EVT_COMMAND(wxID_ANY, EVT_ODTASK_COMPLETE, TrackPanel::OnODTask)
END_EVENT_TABLE()
/// Makes a cursor from an XPM, uses CursorId as a fallback.
@ -317,6 +315,9 @@ TrackPanel::TrackPanel(wxWindow * parent, wxWindowID id,
&TrackPanel::OnPlayback,
this);
GetProject()->Bind(EVT_ODTASK_UPDATE, &TrackPanel::OnODTask, this);
GetProject()->Bind(EVT_ODTASK_COMPLETE, &TrackPanel::OnODTask, this);
UpdatePrefs();
}

View File

@ -145,7 +145,7 @@ pfodman ODManager::Instance = &(ODManager::InstanceFirstTime);
//libsndfile is not threadsafe - this deals with it
static ODLock sLibSndFileMutex;
DEFINE_EVENT_TYPE(EVT_ODTASK_UPDATE)
wxDEFINE_EVENT(EVT_ODTASK_UPDATE, wxCommandEvent);
//using this with wxStringArray::Sort will give you a list that
//is alphabetical, without depending on case. If you use the

View File

@ -30,7 +30,8 @@ number of threads.
#include <time.h>
#endif //__WXMAC__
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_ODTASK_UPDATE, -1)
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_ODTASK_UPDATE, wxCommandEvent);
///wxstring compare function for sorting case, which is needed to load correctly.
int CompareNoCaseFileName(const wxString& first, const wxString& second);

View File

@ -29,7 +29,7 @@ in a background thread.
//#include "../Profiler.h"
DEFINE_EVENT_TYPE(EVT_ODTASK_COMPLETE)
wxDEFINE_EVENT(EVT_ODTASK_COMPLETE, wxCommandEvent);
/// Constructs an ODTask
ODTask::ODTask()

View File

@ -32,7 +32,8 @@ class Track;
class WaveTrack;
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_ODTASK_COMPLETE, -1)
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_ODTASK_COMPLETE, wxCommandEvent);
/// A class representing a modular task to be used with the On-Demand structures.
class ODTask /* not final */