Audacity 3.2.0
|
#include <TimeTrackVZoomHandle.h>
Public Member Functions | |
TimeTrackVZoomHandle (const std::shared_ptr< TimeTrack > &pTrack, const wxRect &rect, int y) | |
TimeTrackVZoomHandle & | operator= (const TimeTrackVZoomHandle &)=default |
~TimeTrackVZoomHandle () override | |
std::shared_ptr< const Track > | FindTrack () const override |
void | Enter (bool forward, AudacityProject *) override |
bool | HandlesRightClick () override |
Whether the handle has any special right-button handling. More... | |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
HitTestPreview | Preview (const TrackPanelMouseState &state, 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, 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 | |
TimeTrackVZoomHandle (const TimeTrackVZoomHandle &) | |
Private Attributes | |
std::weak_ptr< TimeTrack > | mpTrack |
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 Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 18 of file TimeTrackVZoomHandle.h.
|
private |
|
explicit |
Definition at line 23 of file TimeTrackVZoomHandle.cpp.
|
overridedefault |
|
overridevirtual |
Implements UIHandle.
Definition at line 106 of file TimeTrackVZoomHandle.cpp.
References RefreshCode::RefreshAll.
|
overridevirtual |
Implements UIHandle.
Definition at line 48 of file TimeTrackVZoomHandle.cpp.
References RefreshCode::RefreshNone.
|
overridevirtual |
Implements UIHandle.
Definition at line 54 of file TimeTrackVZoomHandle.cpp.
References Cancelled, TrackList::Get(), TrackList::Lock(), mpTrack, and RefreshCode::RefreshNone.
|
overridevirtual |
Reimplemented from UIHandle.
Definition at line 36 of file TimeTrackVZoomHandle.cpp.
References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.
|
overridevirtual |
Implements UIHandle.
Definition at line 31 of file TimeTrackVZoomHandle.cpp.
References mpTrack.
|
overridevirtual |
Whether the handle has any special right-button handling.
If not, then Click() will not be called for right click. Default is always false
Reimplemented from UIHandle.
Definition at line 43 of file TimeTrackVZoomHandle.cpp.
|
default |
|
overridevirtual |
Implements UIHandle.
Definition at line 64 of file TimeTrackVZoomHandle.cpp.
References XO().
|
overridevirtual |
Implements UIHandle.
Definition at line 76 of file TimeTrackVZoomHandle.cpp.
References PopupMenuTable::BuildMenu(), TrackPanelMouseEvent::event, TrackList::Get(), TimeTrackMenuTable::Instance(), TrackList::Lock(), mpTrack, RefreshCode::RefreshAll, RefreshCode::RefreshNone, and RefreshCode::UpdateVRuler.
|
private |
Definition at line 53 of file TimeTrackVZoomHandle.h.
Referenced by Drag(), FindTrack(), and Release().