![]() |
Audacity 3.2.0
|
#include <ChannelVRulerControls.h>
Public Member Functions | |
ChannelVRulerControls (const std::shared_ptr< ChannelView > &pChannelView) | |
virtual | ~ChannelVRulerControls ()=0 |
std::vector< UIHandlePtr > | HitTest (const TrackPanelMouseState &state, const AudacityProject *pProject) override |
virtual void | UpdateRuler (const wxRect &rect)=0 |
std::shared_ptr< const ChannelView > | GetChannelView () const |
![]() | |
CommonTrackPanelCell () | |
virtual | ~CommonTrackPanelCell ()=0 |
HitTestPreview | DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override |
std::shared_ptr< Track > | FindTrack () |
std::shared_ptr< const Track > | FindTrack () const |
virtual std::vector< MenuItem > | GetMenuItems (const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject) |
Return a list of items for DoContextMenu() (empties for separators) More... | |
![]() | |
TrackPanelCell ()=default | |
TrackPanelCell (const TrackPanelCell &)=delete | |
TrackPanelCell & | operator= (const TrackPanelCell &)=delete |
virtual | ~TrackPanelCell ()=0 |
virtual HitTestPreview | DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject) |
virtual std::vector< UIHandlePtr > | HitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0 |
virtual unsigned | HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) |
virtual std::shared_ptr< TrackPanelCell > | ContextMenuDelegate () |
virtual unsigned | DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) |
virtual unsigned | CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | LoseFocus (AudacityProject *project) |
![]() | |
TrackPanelNode () | |
virtual | ~TrackPanelNode ()=0 |
![]() | |
virtual | ~TrackPanelDrawable ()=0 |
virtual void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) |
virtual wxRect | DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass) |
Static Public Member Functions | |
static ChannelVRulerControls & | Get (ChannelView &) |
static const ChannelVRulerControls & | Get (const ChannelView &) |
static void | DrawZooming (TrackPanelDrawingContext &context, const wxRect &rect, int zoomStart, int zoomEnd) |
static wxRect | ZoomingArea (const wxRect &rect, const wxRect &panelRect) |
![]() | |
static wxRect | MaximizeWidth (const wxRect &rect, const wxRect &panelRect) |
static wxRect | MaximizeHeight (const wxRect &rect, const wxRect &panelRect) |
Protected Member Functions | |
std::shared_ptr< Track > | DoFindTrack () override |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
wxRect | DrawingArea (TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override |
Track * | GetTrack () const |
![]() | |
virtual std::shared_ptr< Track > | DoFindTrack ()=0 |
unsigned | DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) override |
unsigned | HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Protected Attributes | |
std::weak_ptr< ChannelView > | mwChannelView |
Definition at line 22 of file ChannelVRulerControls.h.
|
explicit |
Definition at line 26 of file ChannelVRulerControls.cpp.
|
pure virtual |
Definition at line 32 of file ChannelVRulerControls.cpp.
|
overrideprotectedvirtual |
Implements CommonTrackPanelCell.
Definition at line 47 of file ChannelVRulerControls.cpp.
References mwChannelView.
|
overrideprotectedvirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 98 of file ChannelVRulerControls.cpp.
References TrackPanelDrawingContext::dc, CommonTrackPanelCell::FindTrack(), AColor::Line(), AColor::MediumTrackInfo(), and TrackArtist::PassMargins.
Referenced by LabelTrackVRulerControls::Draw(), NoteTrackVRulerControls::Draw(), SpectrumVRulerControls::Draw(), WaveformVRulerControls::Draw(), and TimeTrackVRulerControls::Draw().
|
overrideprotectedvirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 124 of file ChannelVRulerControls.cpp.
References TrackArtist::PassControls.
|
static |
Definition at line 61 of file ChannelVRulerControls.cpp.
References TrackPanelDrawingContext::dc, and min().
Referenced by WaveChannelVZoomHandle::DoDraw(), and NoteTrackVZoomHandle::Draw().
|
static |
Definition at line 36 of file ChannelVRulerControls.cpp.
References ChannelView::GetVRulerControls().
Referenced by anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::Children(), and TrackPanel::UpdateTrackVRuler().
|
static |
Definition at line 41 of file ChannelVRulerControls.cpp.
References ChannelView::GetVRulerControls().
|
inline |
Definition at line 50 of file ChannelVRulerControls.h.
|
protected |
|
overridevirtual |
Implements TrackPanelCell.
Definition at line 55 of file ChannelVRulerControls.cpp.
Referenced by SpectrumVRulerControls::HitTest(), WaveformVRulerControls::HitTest(), TimeTrackVRulerControls::HitTest(), and NoteTrackVRulerControls::HitTest().
|
pure virtual |
Implemented in LabelTrackVRulerControls, NoteTrackVRulerControls, SpectrumVRulerControls, WaveformVRulerControls, and TimeTrackVRulerControls.
Referenced by WaveChannelVRulerControls::DoDraw(), and TrackPanel::UpdateTrackVRuler().
|
static |
Definition at line 82 of file ChannelVRulerControls.cpp.
References kBorderThickness, and kRightMargin.
Referenced by WaveChannelVZoomHandle::DoDrawingArea(), and NoteTrackVZoomHandle::DrawingArea().
|
protected |
Definition at line 69 of file ChannelVRulerControls.h.
Referenced by DoFindTrack().