Audacity  2.2.0
LabelDefaultClickHandle Class Reference

#include <LabelDefaultClickHandle.h>

Inheritance diagram for LabelDefaultClickHandle:
UIHandle LabelGlyphHandle LabelTextHandle

Classes

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 ( )
virtual

Member Function Documentation

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

Implements UIHandle.

Reimplemented in LabelGlyphHandle, and LabelTextHandle.

References RefreshCode::RefreshNone.

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

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

Member Data Documentation

std::shared_ptr< LabelState > LabelDefaultClickHandle::mLabelState
private

Referenced by RestoreState(), and SaveState().


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