Audacity  2.2.0
LabelTextHandle Class Referencefinal

#include <LabelTextHandle.h>

Inheritance diagram for LabelTextHandle:
LabelDefaultClickHandle UIHandle

Public Member Functions

LabelTextHandleoperator= (const LabelTextHandle &)=default
 
 LabelTextHandle (const std::shared_ptr< LabelTrack > &pLT, int labelNum)
 
virtual ~LabelTextHandle ()
 
std::shared_ptr< LabelTrackGetTrack () const
 
int GetLabelNum () 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
 
- Public Member Functions inherited from LabelDefaultClickHandle
 LabelDefaultClickHandle ()
 
virtual ~LabelDefaultClickHandle ()
 
LabelDefaultClickHandleoperator= (const LabelDefaultClickHandle &)=default
 
- 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 void DrawExtras (DrawingPass pass, wxDC *dc, const wxRegion &updateRegion, const wxRect &panelRect)
 
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< LabelTextHandle > &holder, const wxMouseState &state, const std::shared_ptr< LabelTrack > &pLT)
 
- Static Public Member Functions inherited from UIHandle
static UIHandle::Result NeedChangeHighlight (const UIHandle &, const UIHandle &)
 

Static Private Member Functions

static HitTestPreview HitPreview ()
 

Private Attributes

std::weak_ptr< LabelTrackmpLT {}
 
int mLabelNum { -1 }
 
int mLabelTrackStartXPos { -1 }
 
int mLabelTrackStartYPos { -1 }
 
SelectedRegion mSelectedRegion {}
 
std::shared_ptr
< SelectionStateChanger
mChanger
 

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

LabelTextHandle::LabelTextHandle ( const std::shared_ptr< LabelTrack > &  pLT,
int  labelNum 
)
explicit
LabelTextHandle::~LabelTextHandle ( )
virtual

Member Function Documentation

void LabelTextHandle::Enter ( bool  forward)
overridevirtual

Reimplemented from UIHandle.

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

int LabelTextHandle::GetLabelNum ( ) const
inline

References mLabelNum.

std::shared_ptr<LabelTrack> LabelTextHandle::GetTrack ( ) const
inline

References mpLT.

Referenced by LabelTrack::Draw().

HitTestPreview LabelTextHandle::HitPreview ( )
staticprivate

References _(), and MakeCursor().

UIHandlePtr LabelTextHandle::HitTest ( std::weak_ptr< LabelTextHandle > &  holder,
const wxMouseState &  state,
const std::shared_ptr< LabelTrack > &  pLT 
)
static
LabelTextHandle& LabelTextHandle::operator= ( const LabelTextHandle )
default
HitTestPreview LabelTextHandle::Preview ( const TrackPanelMouseState state,
const AudacityProject pProject 
)
overridevirtual

Implements UIHandle.

UIHandle::Result LabelTextHandle::Release ( const TrackPanelMouseEvent event,
AudacityProject pProject,
wxWindow *  pParent 
)
overridevirtual

Member Data Documentation

std::shared_ptr<SelectionStateChanger> LabelTextHandle::mChanger
private
int LabelTextHandle::mLabelNum { -1 }
private

Referenced by GetLabelNum().

int LabelTextHandle::mLabelTrackStartXPos { -1 }
private
int LabelTextHandle::mLabelTrackStartYPos { -1 }
private
std::weak_ptr<LabelTrack> LabelTextHandle::mpLT {}
private

Referenced by GetTrack().

SelectedRegion LabelTextHandle::mSelectedRegion {}
private

Referenced by Cancel().


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