1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Publicize that all cells in TrackPanel inherit CommonTrackPanelCell

(cherry picked from audacity commit f8e5bb9128b8cbc49eef983d633c365a60f86077)

Signed-off-by: akleja <storspov@gmail.com>
This commit is contained in:
Paul Licameli 2021-08-08 10:57:27 -04:00 committed by akleja
parent b4787b119b
commit 5f2e0fa213
2 changed files with 9 additions and 5 deletions

View File

@ -52,6 +52,7 @@ is time to refresh some aspect of the screen.
#include <wx/setup.h> // for wxUSE_* macros
#include "AdornedRulerPanel.h"
#include "tracks/ui/CommonTrackPanelCell.h"
#include "KeyboardCapture.h"
#include "Project.h"
#include "ProjectAudioIO.h"
@ -861,12 +862,12 @@ void TrackPanel::DrawTracks(wxDC * dc)
}
void TrackPanel::SetBackgroundCell
(const std::shared_ptr< TrackPanelCell > &pCell)
(const std::shared_ptr< CommonTrackPanelCell > &pCell)
{
mpBackground = pCell;
}
std::shared_ptr< TrackPanelCell > TrackPanel::GetBackgroundCell()
std::shared_ptr< CommonTrackPanelCell > TrackPanel::GetBackgroundCell()
{
return mpBackground;
}

View File

@ -31,6 +31,9 @@
class wxRect;
// All cells of the TrackPanel are subclasses of this
class CommonTrackPanelCell;
class SpectrumAnalyst;
class Track;
class TrackList;
@ -177,8 +180,8 @@ public:
// Set the object that performs catch-all event handling when the pointer
// is not in any track or ruler or control panel.
void SetBackgroundCell
(const std::shared_ptr< TrackPanelCell > &pCell);
std::shared_ptr< TrackPanelCell > GetBackgroundCell();
(const std::shared_ptr< CommonTrackPanelCell > &pCell);
std::shared_ptr< CommonTrackPanelCell > GetBackgroundCell();
public:
@ -218,7 +221,7 @@ protected:
protected:
std::shared_ptr<TrackPanelCell> mpBackground;
std::shared_ptr<CommonTrackPanelCell> mpBackground;
DECLARE_EVENT_TABLE()