1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-08 16:11:14 +02:00
audacity/src/tracks/ui/BackgroundCell.h
Paul Licameli 8e44827980 TrackPanelCell hit tests can return multiple results...
.. though only the first is used yet
2017-07-09 08:17:40 -04:00

49 lines
985 B
C++

/**********************************************************************
Audacity: A Digital Audio Editor
BackgroundCell.h
Paul Licameli split from TrackPanel.cpp
**********************************************************************/
#ifndef __AUDACITY_BACKGROUND_CELL__
#define __AUDACITY_BACKGROUND_CELL__
#include "CommonTrackPanelCell.h"
#include "../../MemoryX.h"
class AudacityProject;
class BackgroundHandle;
class ZoomHandle;
class BackgroundCell final : public CommonTrackPanelCell
{
public:
BackgroundCell(AudacityProject *pProject)
: mpProject(pProject)
{}
virtual ~BackgroundCell();
protected:
std::vector<UIHandlePtr> HitTest
(const TrackPanelMouseState &state,
const AudacityProject *) override;
std::shared_ptr<Track> FindTrack() override;
private:
AudacityProject *mpProject;
std::weak_ptr<BackgroundHandle> mHandle;
public:
// For want of a better place...
std::weak_ptr<ZoomHandle> mZoomHandle;
};
#endif