Audacity  2.2.0
NoteTrackVZoomHandle Class Reference

#include <NoteTrackVZoomHandle.h>

Inheritance diagram for NoteTrackVZoomHandle:
UIHandle

Public Member Functions

 NoteTrackVZoomHandle (const std::shared_ptr< NoteTrack > &pTrack, const wxRect &rect, int y)
 
NoteTrackVZoomHandleoperator= (const NoteTrackVZoomHandle &)=default
 
virtual ~NoteTrackVZoomHandle ()
 
std::shared_ptr< NoteTrackGetTrack () const
 
void Enter (bool forward) override
 
Result Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 
Result Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 
HitTestPreview Preview (const TrackPanelMouseState &state, const AudacityProject *pProject) override
 
Result Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
 
Result Cancel (AudacityProject *pProject) override
 
void DrawExtras (DrawingPass pass, wxDC *dc, const wxRegion &updateRegion, const wxRect &panelRect) override
 
- Public Member Functions inherited from UIHandle
virtual ~UIHandle ()=0
 
virtual bool HasRotation () const
 
virtual bool Rotate (bool forward)
 
virtual bool HasEscape () const
 
virtual bool Escape ()
 
virtual bool StopsOnKeystroke ()
 
virtual void OnProjectChange (AudacityProject *pProject)
 
Result GetChangeHighlight () const
 
void SetChangeHighlight (Result val)
 

Static Public Member Functions

static UIHandlePtr HitTest (std::weak_ptr< NoteTrackVZoomHandle > &holder, const wxMouseState &state, const std::shared_ptr< NoteTrack > &pTrack, const wxRect &rect)
 
- Static Public Member Functions inherited from UIHandle
static UIHandle::Result NeedChangeHighlight (const UIHandle &, const UIHandle &)
 

Private Member Functions

 NoteTrackVZoomHandle (const NoteTrackVZoomHandle &)
 

Static Private Member Functions

static HitTestPreview HitPreview (const wxMouseState &state)
 

Private Attributes

std::weak_ptr< NoteTrackmpTrack
 
int mZoomStart
 
int mZoomEnd
 
wxRect mRect
 

Additional Inherited Members

- Public Types inherited from UIHandle
enum  DrawingPass { Cells, Panel }
 
using Result = unsigned
 
using Cell = TrackPanelCell
 
- Protected Attributes inherited from UIHandle
Result mChangeHighlight { 0 }
 

Constructor & Destructor Documentation

NoteTrackVZoomHandle::NoteTrackVZoomHandle ( const NoteTrackVZoomHandle )
private
NoteTrackVZoomHandle::NoteTrackVZoomHandle ( const std::shared_ptr< NoteTrack > &  pTrack,
const wxRect &  rect,
int  y 
)
explicit
NoteTrackVZoomHandle::~NoteTrackVZoomHandle ( )
virtual

Member Function Documentation

UIHandle::Result NoteTrackVZoomHandle::Cancel ( AudacityProject pProject)
overridevirtual

Implements UIHandle.

References RefreshCode::RefreshAll.

UIHandle::Result NoteTrackVZoomHandle::Click ( const TrackPanelMouseEvent event,
AudacityProject pProject 
)
overridevirtual

Implements UIHandle.

References RefreshCode::RefreshNone.

void NoteTrackVZoomHandle::DrawExtras ( DrawingPass  pass,
wxDC *  dc,
const wxRegion &  updateRegion,
const wxRect &  panelRect 
)
overridevirtual
void NoteTrackVZoomHandle::Enter ( bool  forward)
overridevirtual

Reimplemented from UIHandle.

References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.

std::shared_ptr<NoteTrack> NoteTrackVZoomHandle::GetTrack ( ) const
inline

References mpTrack.

HitTestPreview NoteTrackVZoomHandle::HitPreview ( const wxMouseState &  state)
staticprivate

References _(), HitTest(), and MakeCursor().

Referenced by Preview().

UIHandlePtr NoteTrackVZoomHandle::HitTest ( std::weak_ptr< NoteTrackVZoomHandle > &  holder,
const wxMouseState &  state,
const std::shared_ptr< NoteTrack > &  pTrack,
const wxRect &  rect 
)
static

References AssignUIHandlePtr().

Referenced by HitPreview().

NoteTrackVZoomHandle& NoteTrackVZoomHandle::operator= ( const NoteTrackVZoomHandle )
default
HitTestPreview NoteTrackVZoomHandle::Preview ( const TrackPanelMouseState state,
const AudacityProject pProject 
)
overridevirtual

Implements UIHandle.

References HitPreview(), and TrackPanelMouseState::state.

Member Data Documentation

std::weak_ptr<NoteTrack> NoteTrackVZoomHandle::mpTrack
private

Referenced by Drag(), DrawExtras(), GetTrack(), and Release().

wxRect NoteTrackVZoomHandle::mRect
private

Referenced by DrawExtras().

int NoteTrackVZoomHandle::mZoomEnd
private

Referenced by Drag(), DrawExtras(), and Release().

int NoteTrackVZoomHandle::mZoomStart
private

Referenced by Drag(), DrawExtras(), and Release().


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