Audacity  2.2.2
Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
BackgroundCell Class Referencefinal

#include <BackgroundCell.h>

Inheritance diagram for BackgroundCell:
CommonTrackPanelCell TrackPanelCell

Public Member Functions

 BackgroundCell (AudacityProject *pProject)
virtual ~BackgroundCell ()
- Public Member Functions inherited from CommonTrackPanelCell
 CommonTrackPanelCell ()
virtual ~CommonTrackPanelCell ()=0
- Public Member Functions inherited from TrackPanelCell
virtual ~TrackPanelCell ()=0
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, wxPoint *pPosition)
virtual unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)

Public Attributes

std::weak_ptr< ZoomHandlemZoomHandle

Protected Member Functions

std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *) override
std::shared_ptr< TrackFindTrack () override
- Protected Member Functions inherited from CommonTrackPanelCell
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override

Private Attributes

std::weak_ptr< BackgroundHandlemHandle

Detailed Description

Definition at line 22 of file BackgroundCell.h.

Constructor & Destructor Documentation

BackgroundCell::BackgroundCell ( AudacityProject pProject)

Definition at line 25 of file BackgroundCell.h.

26  : mpProject(pProject)
27  {}
AudacityProject * mpProject
BackgroundCell::~BackgroundCell ( )

Definition at line 78 of file BackgroundCell.cpp.

79 {
80 }

Member Function Documentation

std::shared_ptr< Track > BackgroundCell::FindTrack ( )

Implements CommonTrackPanelCell.

Definition at line 94 of file BackgroundCell.cpp.

95 {
96  return {};
97 }
std::vector< UIHandlePtr > BackgroundCell::HitTest ( const TrackPanelMouseState state,
const AudacityProject  

Implements TrackPanelCell.

Definition at line 83 of file BackgroundCell.cpp.

85 {
86  std::vector<UIHandlePtr> results;
87  auto result = mHandle.lock();
88  if (!result)
89  result = std::make_shared<BackgroundHandle>();
90  results.push_back(result);
91  return results;
92 }
std::weak_ptr< BackgroundHandle > mHandle

Member Data Documentation

std::weak_ptr<BackgroundHandle> BackgroundCell::mHandle

Definition at line 41 of file BackgroundCell.h.

AudacityProject* BackgroundCell::mpProject

Definition at line 39 of file BackgroundCell.h.

std::weak_ptr<ZoomHandle> BackgroundCell::mZoomHandle

Definition at line 45 of file BackgroundCell.h.

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