Audacity 3.2.0
|
#include <ClipOverflowButtonHandle.h>
Public Member Functions | |
ClipOverflowButtonHandle (const std::shared_ptr< WaveTrack > &track, const std::shared_ptr< WaveTrack::Interval > &clip, std::weak_ptr< TrackPanelCell > cell) | |
Public Member Functions inherited from HighlitClipButtonHandle | |
HighlitClipButtonHandle (ClipButtonId id, std::shared_ptr< WaveTrack > track, std::shared_ptr< WaveTrack::Interval > clip) | |
void | Enter (bool forward, AudacityProject *pProject) override |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Result | Cancel (AudacityProject *pProject) override |
std::shared_ptr< const Track > | FindTrack () const override |
Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
virtual void | DoDraw (const wxRect &args, wxDC &dc)=0 |
Public Member Functions inherited from UIHandle | |
virtual | ~UIHandle ()=0 |
virtual void | Enter (bool forward, AudacityProject *pProject) |
virtual bool | HasRotation () const |
virtual bool | Rotate (bool forward) |
virtual bool | HasEscape (AudacityProject *pProject) const |
virtual bool | Escape (AudacityProject *pProject) |
virtual bool | HandlesRightClick () |
Whether the handle has any special right-button handling. More... | |
virtual Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject)=0 |
virtual Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject)=0 |
virtual HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *pProject)=0 |
virtual Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0 |
virtual Result | Cancel (AudacityProject *pProject)=0 |
virtual bool | StopsOnKeystroke () |
virtual void | OnProjectChange (AudacityProject *pProject) |
virtual std::shared_ptr< const Track > | FindTrack () const =0 |
virtual bool | IsDragging () const |
Result | GetChangeHighlight () const |
void | SetChangeHighlight (Result val) |
Public Member Functions inherited from TrackPanelDrawable | |
virtual | ~TrackPanelDrawable ()=0 |
virtual void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) |
virtual wxRect | DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass) |
Private Member Functions | |
Result | DoRelease (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *pProject) override |
void | DoDraw (const wxRect &rect, wxDC &dc) override |
Private Attributes | |
std::weak_ptr< TrackPanelCell > | mCell |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Static Public Member Functions inherited from UIHandle | |
static UIHandle::Result | NeedChangeHighlight (const UIHandle &, const UIHandle &) |
static std::shared_ptr< const Track > | TrackFromChannel (const std::shared_ptr< const Channel > &pChannel) |
A frequent convenience in the definition of UIHandles. More... | |
Static Public Member Functions inherited from TrackPanelDrawable | |
static wxRect | MaximizeWidth (const wxRect &rect, const wxRect &panelRect) |
static wxRect | MaximizeHeight (const wxRect &rect, const wxRect &panelRect) |
Protected Member Functions inherited from HighlitClipButtonHandle | |
virtual Result | DoRelease (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0 |
UIHandle::Result | UpdateTrackSelection (const TrackPanelMouseEvent &event, AudacityProject *pProject) |
UIHandle::Result | SelectAt (const TrackPanelMouseEvent &event, AudacityProject *project) |
Protected Attributes inherited from HighlitClipButtonHandle | |
ClipButtonId | mButtonId |
std::shared_ptr< WaveTrack > | mTrack |
std::shared_ptr< WaveTrack::Interval > | mClip |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 16 of file ClipOverflowButtonHandle.h.
ClipOverflowButtonHandle::ClipOverflowButtonHandle | ( | const std::shared_ptr< WaveTrack > & | track, |
const std::shared_ptr< WaveTrack::Interval > & | clip, | ||
std::weak_ptr< TrackPanelCell > | cell | ||
) |
Definition at line 39 of file ClipOverflowButtonHandle.cpp.
References Overflow.
|
overrideprivatevirtual |
Implements HighlitClipButtonHandle.
Definition at line 48 of file ClipOverflowButtonHandle.cpp.
References ClipButtonSpecializations< id >::DrawOnClip(), and HighlitClipButtonHandle::mClip.
|
overrideprivatevirtual |
Implements HighlitClipButtonHandle.
Definition at line 55 of file ClipOverflowButtonHandle.cpp.
References mCell, HighlitClipButtonHandle::mClip, TrackPanelMouseEvent::rect, RefreshCode::RefreshNone, and anonymous_namespace{ClipOverflowButtonHandle.cpp}::SelectInterval().
|
overrideprivatevirtual |
|
private |
Definition at line 34 of file ClipOverflowButtonHandle.h.
Referenced by DoRelease().