mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
TrackPanelAx does not depend on TrackPanel...
... TrackPanelAx now sends an event to the project when track focus changes, and TrackPanel listens for it. TrackPanel also initializes TrackPanelAx with a callback to do the details of rectangle calculation.
This commit is contained in:
@@ -100,6 +100,7 @@ class AUDACITY_DLL_API TrackPanel final
|
||||
void OnTimer(wxTimerEvent& event);
|
||||
void OnODTask(wxCommandEvent &event);
|
||||
void OnProjectSettingsChange(wxCommandEvent &event);
|
||||
void OnTrackFocusChange( wxCommandEvent &event );
|
||||
|
||||
int GetLeftOffset() const { return GetLabelWidth() + 1;}
|
||||
|
||||
@@ -148,7 +149,6 @@ class AUDACITY_DLL_API TrackPanel final
|
||||
bool IsAudioActive();
|
||||
|
||||
public:
|
||||
size_t GetTrackCount() const;
|
||||
size_t GetSelectedTrackCount() const;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user