Audacity  3.0.3
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 &) PROHIBITED
 
TrackPanelCelloperator= (const TrackPanelCell &) PROHIBITED
 
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, 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)
 
- 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 )

◆ ~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.

Definition at line 55 of file TrackPanelCell.cpp.

57 {
58  event.Skip();
60 }

References RefreshCode::RefreshNone.

◆ Char()

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

Reimplemented in LabelTrackView.

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 CommonTrackView.

Definition at line 104 of file TrackPanelCell.h.

105  { return {}; }

Referenced by CellularPanel::DoContextMenu().

Here is the caller graph for this function:

◆ DefaultPreview()

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

Reimplemented in CommonTrackPanelCell.

Definition at line 37 of file TrackPanelCell.cpp.

39 {
40  return {};
41 }

◆ DoContextMenu()

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

Reimplemented in CommonTrackControls.

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.

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.

◆ operator=()

TrackPanelCell& TrackPanelCell::operator= ( const TrackPanelCell )

The documentation for this class was generated from the following files:
RefreshCode::RefreshNone
@ RefreshNone
Definition: RefreshCode.h:21
RefreshCode::Cancelled
@ Cancelled
Definition: RefreshCode.h:23