18#include "../../TrackArtist.h"
19#include "../../TrackPanelDrawingContext.h"
24#include <wx/translation.h>
27 const std::shared_ptr<ChannelView> &pChannelView
29 , mwChannelView{ pChannelView }
53 return pView->DoFindTrack();
60 return std::vector<UIHandlePtr>{};
65 int zoomStart,
int zoomEnd)
69 auto &dc = context.
dc;
71 dc.SetBrush(*wxTRANSPARENT_BRUSH);
72 dc.SetPen(*wxBLACK_DASHED_PEN);
78 1 + abs( zoomEnd - zoomStart)
81 dc.DrawRectangle(rect);
85 const wxRect &rect,
const wxRect &panelRect)
102 const wxRect &rect,
const wxRect &,
unsigned iPass)
107 return { rect.x, rect.y, rect.width, rect.height + 1 };
declares abstract base class Track, TrackList, and iterators over TrackList
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
std::weak_ptr< ChannelView > mwChannelView
ChannelVRulerControls(const std::shared_ptr< ChannelView > &pChannelView)
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *pProject) override
static ChannelVRulerControls & Get(ChannelView &)
virtual ~ChannelVRulerControls()=0
static wxRect ZoomingArea(const wxRect &rect, const wxRect &panelRect)
std::shared_ptr< Track > DoFindTrack() override
static void DrawZooming(TrackPanelDrawingContext &context, const wxRect &rect, int zoomStart, int zoomEnd)
wxRect DrawingArea(TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override
std::shared_ptr< ChannelVRulerControls > GetVRulerControls()