Audacity 3.2.0
|
#include <HighlitClipButtonHandle.h>
Public Member Functions | |
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) |
Protected Member Functions | |
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 | |
ClipButtonId | mButtonId |
std::shared_ptr< WaveTrack > | mTrack |
std::shared_ptr< WaveTrack::Interval > | mClip |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Static Private Member Functions | |
static void | Highlight (const wxRect &rect, wxDC &dc) |
Private Attributes | |
std::weak_ptr< TrackPanelCell > | mwCell |
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) |
Definition at line 29 of file HighlitClipButtonHandle.h.
HighlitClipButtonHandle::HighlitClipButtonHandle | ( | ClipButtonId | id, |
std::shared_ptr< WaveTrack > | track, | ||
std::shared_ptr< WaveTrack::Interval > | clip | ||
) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 30 of file HighlitClipButtonHandle.cpp.
|
overridevirtual |
Implements UIHandle.
Definition at line 92 of file HighlitClipButtonHandle.cpp.
|
overridevirtual |
Implements UIHandle.
Definition at line 55 of file HighlitClipButtonHandle.cpp.
References mwCell.
|
pure virtual |
Implemented in ClipOverflowButtonHandle, and ClipPitchAndSpeedButtonHandle.
Referenced by Draw().
|
protectedpure virtual |
Implemented in ClipOverflowButtonHandle, and ClipPitchAndSpeedButtonHandle.
Referenced by Release().
|
overridevirtual |
Implements UIHandle.
Definition at line 62 of file HighlitClipButtonHandle.cpp.
References RefreshCode::Cancelled, ViewInfo::Get(), LowlitClipButton::Detail::GetButtonRectangle(), mButtonId, mClip, mwCell, TrackPanelMouseEvent::pCell, and RefreshCode::RefreshCell.
|
overridevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 39 of file HighlitClipButtonHandle.cpp.
References TrackPanelDrawingContext::dc, DoDraw(), TrackArtist::Get(), LowlitClipButton::Detail::GetButtonInnerRectangle(), Highlight(), mButtonId, mClip, and TrackArtist::PassSnapping.
|
overridevirtual |
Reimplemented from UIHandle.
Definition at line 125 of file HighlitClipButtonHandle.cpp.
References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.
|
overridevirtual |
Implements UIHandle.
Definition at line 120 of file HighlitClipButtonHandle.cpp.
References mTrack.
|
staticprivate |
Definition at line 130 of file HighlitClipButtonHandle.cpp.
References ThemeBase::Colour(), and theTheme.
Referenced by Draw().
|
overridevirtual |
Implements UIHandle.
Definition at line 82 of file HighlitClipButtonHandle.cpp.
References DoRelease(), UIHandle::mChangeHighlight, RefreshCode::RefreshNone, and UpdateTrackSelection().
|
protected |
|
protected |
Definition at line 97 of file HighlitClipButtonHandle.cpp.
References RefreshCode::Cancelled, ProjectHistory::Get(), ViewInfo::Get(), SelectionState::Get(), TrackList::Get(), mClip, ProjectHistory::ModifyState(), mTrack, RefreshCode::RefreshAll, and RefreshCode::RefreshNone.
Referenced by Release().
|
protected |
Definition at line 69 of file HighlitClipButtonHandle.h.
|
protected |
Definition at line 71 of file HighlitClipButtonHandle.h.
Referenced by ClipOverflowButtonHandle::DoDraw(), ClipPitchAndSpeedButtonHandle::DoDraw(), ClipOverflowButtonHandle::DoRelease(), ClipPitchAndSpeedButtonHandle::DoRelease(), Drag(), Draw(), and UpdateTrackSelection().
|
protected |
Definition at line 70 of file HighlitClipButtonHandle.h.
Referenced by ClipPitchAndSpeedButtonHandle::DoRelease(), FindTrack(), and UpdateTrackSelection().
|
private |
Definition at line 75 of file HighlitClipButtonHandle.h.