mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 16:11:14 +02:00
49 lines
985 B
C++
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
|