11#ifndef __AUDACITY_BUTTON_HANDLE__
12#define __AUDACITY_BUTTON_HANDLE__
14#include "../../UIHandle.h"
30 std::shared_ptr<Track>
GetTrack()
const {
return mpTrack.lock(); }
35 (
const std::shared_ptr<Track> &pTrack,
const wxRect &rect );
41 std::shared_ptr<const Track>
FindTrack()
const override;
48 (
const wxMouseEvent &event,
AudacityProject *pProject, wxWindow *pParent) = 0;
70 wxWindow *pParent)
final override;
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Abstract base class for an object holding data associated with points on a time axis.
Holds a msgid for the translation catalog; may also bind format arguments.
Short-lived drawing and event-handling object associated with a TrackPanelCell.
virtual void Enter(bool forward, AudacityProject *pProject)
virtual Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject)=0
virtual Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0
virtual std::shared_ptr< const Track > FindTrack() const =0
virtual bool IsDragging() const
virtual HitTestPreview Preview(const TrackPanelMouseState &state, AudacityProject *pProject)=0
virtual Result Cancel(AudacityProject *pProject)=0
virtual Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject)=0