Audacity 3.2.0
Public Member Functions | List of all members
TrackPanelCell Class Referenceabstract

#include <TrackPanelCell.h>

Inheritance diagram for TrackPanelCell:
[legend]
Collaboration diagram for TrackPanelCell:
[legend]

Public Member Functions

 TrackPanelCell ()=default
 
 TrackPanelCell (const TrackPanelCell &)=delete
 
TrackPanelCelloperator= (const TrackPanelCell &)=delete
 
virtual ~TrackPanelCell ()=0
 
virtual HitTestPreview DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject)
 
virtual std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
 
virtual unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject)
 
virtual std::shared_ptr< TrackPanelCellContextMenuDelegate ()
 
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)
 
- Public Member Functions inherited from TrackPanelNode
 TrackPanelNode ()
 
virtual ~TrackPanelNode ()=0
 
- Public Member Functions inherited from TrackPanelDrawable
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from TrackPanelDrawable
static wxRect MaximizeWidth (const wxRect &rect, const wxRect &panelRect)
 
static wxRect MaximizeHeight (const wxRect &rect, const wxRect &panelRect)
 

Detailed Description

Abstract base class defining TrackPanel's access to specialist classes that implement drawing and user interactions

Definition at line 73 of file TrackPanelCell.h.

Constructor & Destructor Documentation

◆ TrackPanelCell() [1/2]

TrackPanelCell::TrackPanelCell ( )
default

◆ TrackPanelCell() [2/2]

TrackPanelCell::TrackPanelCell ( const TrackPanelCell )
delete

◆ ~TrackPanelCell()

TrackPanelCell::~TrackPanelCell ( )
pure virtual

Definition at line 33 of file TrackPanelCell.cpp.

34{
35}

Member Function Documentation

◆ CaptureKey()

unsigned TrackPanelCell::CaptureKey ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
virtual

Reimplemented in LabelTrackView, SpectrumView, WaveChannelView, and WaveTrackAffordanceControls.

Definition at line 55 of file TrackPanelCell.cpp.

57{
58 event.Skip();
60}

References RefreshCode::RefreshNone.

Referenced by WaveChannelView::CaptureKey().

Here is the caller graph for this function:

◆ Char()

unsigned TrackPanelCell::Char ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
virtual

Reimplemented in LabelTrackView, SpectrumView, WaveChannelView, and WaveTrackAffordanceControls.

Definition at line 76 of file TrackPanelCell.cpp.

78{
79 event.Skip();
81}

References RefreshCode::RefreshNone.

◆ ContextMenuDelegate()

virtual std::shared_ptr< TrackPanelCell > TrackPanelCell::ContextMenuDelegate ( )
inlinevirtual

Reimplemented in AdornedRulerPanel::QPCell, AdornedRulerPanel::ScrubbingCell, and CommonChannelView.

Definition at line 104 of file TrackPanelCell.h.

105 { return {}; }

◆ DefaultPreview()

HitTestPreview TrackPanelCell::DefaultPreview ( const TrackPanelMouseState state,
const AudacityProject pProject 
)
virtual

Reimplemented in AdornedRulerPanel::CommonCell, and CommonTrackPanelCell.

Definition at line 37 of file TrackPanelCell.cpp.

39{
40 return {};
41}

◆ DoContextMenu()

unsigned TrackPanelCell::DoContextMenu ( const wxRect &  rect,
wxWindow *  pParent,
const wxPoint *  pPosition,
AudacityProject pProject 
)
virtual

Reimplemented in AdornedRulerPanel::CommonCell, CommonTrackControls, and CommonTrackPanelCell.

Definition at line 49 of file TrackPanelCell.cpp.

51{
53}

References RefreshCode::RefreshNone.

◆ HandleWheelRotation()

unsigned TrackPanelCell::HandleWheelRotation ( const TrackPanelMouseEvent event,
AudacityProject pProject 
)
virtual

◆ HitTest()

virtual std::vector< UIHandlePtr > TrackPanelCell::HitTest ( const TrackPanelMouseState state,
const AudacityProject pProject 
)
pure virtual

◆ KeyDown()

unsigned TrackPanelCell::KeyDown ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
virtual

Reimplemented in LabelTrackView, SpectrumView, WaveChannelView, and WaveTrackAffordanceControls.

Definition at line 62 of file TrackPanelCell.cpp.

64{
65 event.Skip();
67}

References RefreshCode::RefreshNone.

◆ KeyUp()

unsigned TrackPanelCell::KeyUp ( wxKeyEvent &  event,
ViewInfo viewInfo,
wxWindow *  pParent,
AudacityProject project 
)
virtual

Definition at line 69 of file TrackPanelCell.cpp.

71{
72 event.Skip();
74}

References RefreshCode::RefreshNone.

◆ LoseFocus()

unsigned TrackPanelCell::LoseFocus ( AudacityProject project)
virtual

Reimplemented in WaveChannelView, and WaveTrackAffordanceControls.

Definition at line 83 of file TrackPanelCell.cpp.

84{
86}

References RefreshCode::RefreshNone.

◆ operator=()

TrackPanelCell & TrackPanelCell::operator= ( const TrackPanelCell )
delete

The documentation for this class was generated from the following files: