Audacity  2.2.0
LabelDefaultClickHandle Class Reference

#include <LabelDefaultClickHandle.h>

Inheritance diagram for LabelDefaultClickHandle:
UIHandle LabelGlyphHandle LabelTextHandle


struct  LabelState

Public Member Functions

 LabelDefaultClickHandle ()
virtual ~LabelDefaultClickHandle ()
LabelDefaultClickHandleoperator= (const LabelDefaultClickHandle &)=default
Result Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
Result Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
Result Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
Result Cancel (AudacityProject *pProject) override
- Public Member Functions inherited from UIHandle
virtual ~UIHandle ()=0
virtual void Enter (bool forward)
virtual bool HasRotation () const
virtual bool Rotate (bool forward)
virtual bool HasEscape () const
virtual bool Escape ()
virtual HitTestPreview Preview (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
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)

Private Member Functions

void SaveState (AudacityProject *pProject)
void RestoreState (AudacityProject *pProject)

Private Attributes

std::shared_ptr< LabelStatemLabelState

Additional Inherited Members

- Public Types inherited from UIHandle
enum  DrawingPass { Cells, Panel }
using Result = unsigned
using Cell = TrackPanelCell
- Static Public Member Functions inherited from UIHandle
static UIHandle::Result NeedChangeHighlight (const UIHandle &, const UIHandle &)
- Protected Attributes inherited from UIHandle
Result mChangeHighlight { 0 }

Constructor & Destructor Documentation

LabelDefaultClickHandle::LabelDefaultClickHandle ( )
LabelDefaultClickHandle::~LabelDefaultClickHandle ( )

Member Function Documentation

UIHandle::Result LabelDefaultClickHandle::Cancel ( AudacityProject pProject)
UIHandle::Result LabelDefaultClickHandle::Drag ( const TrackPanelMouseEvent event,
AudacityProject pProject 

Implements UIHandle.

Reimplemented in LabelGlyphHandle, and LabelTextHandle.

References RefreshCode::RefreshNone.

Referenced by LabelTextHandle::Drag(), and LabelGlyphHandle::Drag().

LabelDefaultClickHandle& LabelDefaultClickHandle::operator= ( const LabelDefaultClickHandle )
UIHandle::Result LabelDefaultClickHandle::Release ( const TrackPanelMouseEvent event,
AudacityProject pProject,
wxWindow *  pParent 
void LabelDefaultClickHandle::RestoreState ( AudacityProject pProject)

Member Data Documentation

std::shared_ptr< LabelState > LabelDefaultClickHandle::mLabelState

Referenced by RestoreState(), and SaveState().

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