Audacity  3.0.3
Public Member Functions | Private Attributes | List of all members
CommonTrackCell Class Reference

#include <CommonTrackPanelCell.h>

Inheritance diagram for CommonTrackCell:
Collaboration diagram for CommonTrackCell:

Public Member Functions

 CommonTrackCell (const std::shared_ptr< Track > &pTrack)
 ~CommonTrackCell ()
virtual void CopyTo (Track &track) const
std::shared_ptr< TrackDoFindTrack () override
virtual void Reparent (const std::shared_ptr< Track > &parent)
virtual void WriteXMLAttributes (XMLWriter &) const
virtual bool HandleXMLAttribute (const wxChar *attr, const wxChar *value)
- Public Member Functions inherited from CommonTrackPanelCell
 CommonTrackPanelCell ()
virtual ~CommonTrackPanelCell ()=0
HitTestPreview DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override
std::shared_ptr< TrackFindTrack ()
std::shared_ptr< const TrackFindTrack () const
- Public Member Functions inherited from TrackPanelCell
 TrackPanelCell ()=default
 TrackPanelCell (const TrackPanelCell &) PROHIBITED
TrackPanelCelloperator= (const TrackPanelCell &) PROHIBITED
virtual ~TrackPanelCell ()=0
virtual std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
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)

Private Attributes

std::weak_ptr< TrackmwTrack

Additional Inherited Members

- Public Types inherited from CommonTrackPanelCell
using Hook = std::function< unsigned(const TrackPanelMouseEvent &evt, AudacityProject *pProject) >
- Static Public Member Functions inherited from CommonTrackPanelCell
static Hook InstallMouseWheelHook (const Hook &hook)
- 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)
- Protected Member Functions inherited from CommonTrackPanelCell
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override

Detailed Description

Definition at line 57 of file CommonTrackPanelCell.h.

Constructor & Destructor Documentation

◆ CommonTrackCell()

CommonTrackCell::CommonTrackCell ( const std::shared_ptr< Track > &  pTrack)

Definition at line 54 of file CommonTrackPanelCell.cpp.

55  : mwTrack { parent }
56 {}

◆ ~CommonTrackCell()

CommonTrackCell::~CommonTrackCell ( )

Member Function Documentation

◆ CopyTo()

void CommonTrackCell::CopyTo ( Track track) const

Reimplemented in TrackView, WaveTrackView, and LabelTrackView.

Definition at line 60 of file CommonTrackPanelCell.cpp.

61 {
62 }

◆ DoFindTrack()

std::shared_ptr< Track > CommonTrackCell::DoFindTrack ( )

Implements CommonTrackPanelCell.

Definition at line 69 of file CommonTrackPanelCell.cpp.

70 {
71  return mwTrack.lock();
72 }

References mwTrack.

◆ HandleXMLAttribute()

bool CommonTrackCell::HandleXMLAttribute ( const wxChar *  attr,
const wxChar *  value 

Reimplemented in TrackView.

Definition at line 78 of file CommonTrackPanelCell.cpp.

79 {
80  return false;
81 }

◆ Reparent()

void CommonTrackCell::Reparent ( const std::shared_ptr< Track > &  parent)

Reimplemented in WaveTrackView, and LabelTrackView.

Definition at line 64 of file CommonTrackPanelCell.cpp.

65 {
66  mwTrack = parent;
67 }

References mwTrack.

Referenced by LabelTrackView::Reparent(), and WaveTrackView::Reparent().

Here is the caller graph for this function:

◆ WriteXMLAttributes()

void CommonTrackCell::WriteXMLAttributes ( XMLWriter ) const

Reimplemented in TrackView.

Definition at line 74 of file CommonTrackPanelCell.cpp.

75 {
76 }

Member Data Documentation

◆ mwTrack

std::weak_ptr< Track > CommonTrackCell::mwTrack

Definition at line 80 of file CommonTrackPanelCell.h.

Referenced by DoFindTrack(), and Reparent().

The documentation for this class was generated from the following files:
std::weak_ptr< Track > mwTrack
Definition: CommonTrackPanelCell.h:80