11#ifndef __AUDACITY_SPECTRUM_VZOOM_HANDLE__
12#define __AUDACITY_SPECTRUM_VZOOM_HANDLE__
14#include "../../../../UIHandle.h"
26 const std::shared_ptr<WaveChannel> &pChannel,
const wxRect &rect,
int y);
33 const wxRect &rect,
int zoomStart,
int zoomEnd,
34 bool fixedMousePoint);
38 std::shared_ptr<const Track>
FindTrack()
const override;
57 wxWindow *pParent)
override;
66 const wxRect &rect,
unsigned iPass )
override;
70 const wxRect &rect,
const wxRect &panelRect,
unsigned iPass )
override;
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static void DoZoom(AudacityProject *pProject, WaveChannel &wc, WaveChannelViewConstants::ZoomActions ZoomKind, const wxRect &rect, int zoomStart, int zoomEnd, bool fixedMousePoint)
SpectrumVZoomHandle(const SpectrumVZoomHandle &)
Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
std::shared_ptr< WaveChannel > FindWaveChannel()
bool HandlesRightClick() override
Whether the handle has any special right-button handling.
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
std::shared_ptr< const Track > FindTrack() const override
Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
std::weak_ptr< WaveChannel > mpChannel
void Enter(bool forward, AudacityProject *) override
wxRect DrawingArea(TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override
~SpectrumVZoomHandle() override
Result Cancel(AudacityProject *pProject) override
SpectrumVZoomHandle & operator=(const SpectrumVZoomHandle &)=default
HitTestPreview Preview(const TrackPanelMouseState &state, AudacityProject *pProject) override
Short-lived drawing and event-handling object associated with a TrackPanelCell.
A Track that contains audio waveform data.