11#ifndef __AUDACITY_NOTE_TRACK_VZOOM_HANDLE__
12#define __AUDACITY_NOTE_TRACK_VZOOM_HANDLE__
17#include "../../../../UIHandle.h"
26 (
const std::shared_ptr<NoteTrack> &pTrack,
const wxRect &rect,
int y);
31 (std::weak_ptr<NoteTrackVZoomHandle> &holder,
32 const wxMouseState &state,
33 const std::shared_ptr<NoteTrack> &pTrack,
const wxRect &rect);
37 std::shared_ptr<const Track>
FindTrack()
const override;
55 wxWindow *pParent)
override;
63 const wxRect &rect,
unsigned iPass )
override;
67 const wxRect &rect,
const wxRect &panelRect,
unsigned iPass )
override;
std::shared_ptr< UIHandle > UIHandlePtr
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
A Track that is used for Midi notes. (Somewhat old code).
std::shared_ptr< const Track > FindTrack() const override
Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
NoteTrackVZoomHandle(const NoteTrackVZoomHandle &)
std::weak_ptr< NoteTrack > mpTrack
wxRect DrawingArea(TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override
static HitTestPreview HitPreview(const wxMouseState &state)
virtual ~NoteTrackVZoomHandle()
Result Cancel(AudacityProject *pProject) override
bool HandlesRightClick() override
Whether the handle has any special right-button handling.
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
NoteTrackVZoomHandle & operator=(const NoteTrackVZoomHandle &)=default
Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
void Enter(bool forward, AudacityProject *) override
static UIHandlePtr HitTest(std::weak_ptr< NoteTrackVZoomHandle > &holder, const wxMouseState &state, const std::shared_ptr< NoteTrack > &pTrack, const wxRect &rect)
HitTestPreview Preview(const TrackPanelMouseState &state, AudacityProject *pProject) override
Short-lived drawing and event-handling object associated with a TrackPanelCell.