Audacity 3.2.0
|
#include <NoteTrackVZoomHandle.h>
Public Member Functions | |
NoteTrackVZoomHandle (const std::shared_ptr< NoteTrack > &pTrack, const wxRect &rect, int y) | |
NoteTrackVZoomHandle & | operator= (const NoteTrackVZoomHandle &)=default |
virtual | ~NoteTrackVZoomHandle () |
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) |
Static Public Member Functions | |
static UIHandlePtr | HitTest (std::weak_ptr< NoteTrackVZoomHandle > &holder, const wxMouseState &state, const std::shared_ptr< NoteTrack > &pTrack, const wxRect &rect) |
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) |
Private Member Functions | |
NoteTrackVZoomHandle (const NoteTrackVZoomHandle &) | |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
wxRect | DrawingArea (TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override |
Static Private Member Functions | |
static HitTestPreview | HitPreview (const wxMouseState &state) |
Private Attributes | |
std::weak_ptr< NoteTrack > | mpTrack |
int | mZoomStart |
int | mZoomEnd |
wxRect | mRect |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 19 of file NoteTrackVZoomHandle.h.
|
private |
|
explicit |
Definition at line 52 of file NoteTrackVZoomHandle.cpp.
|
virtual |
Definition at line 96 of file NoteTrackVZoomHandle.cpp.
|
overridevirtual |
Implements UIHandle.
Definition at line 349 of file NoteTrackVZoomHandle.cpp.
References RefreshCode::RefreshAll.
|
overridevirtual |
Implements UIHandle.
Definition at line 110 of file NoteTrackVZoomHandle.cpp.
References RefreshCode::RefreshNone.
|
overridevirtual |
Implements UIHandle.
Definition at line 119 of file NoteTrackVZoomHandle.cpp.
References Cancelled, TrackPanelMouseEvent::event, TrackList::Get(), anonymous_namespace{NoteTrackVZoomHandle.cpp}::IsDragZooming(), TrackList::Lock(), mpTrack, mZoomEnd, mZoomStart, RefreshCode::RefreshAll, and RefreshCode::RefreshNone.
|
overrideprivatevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 356 of file NoteTrackVZoomHandle.cpp.
References ChannelVRulerControls::DrawZooming(), anonymous_namespace{NoteTrackVZoomHandle.cpp}::IsDragZooming(), mpTrack, mZoomEnd, mZoomStart, and TrackArtist::PassZooming.
|
overrideprivatevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 370 of file NoteTrackVZoomHandle.cpp.
References TrackArtist::PassZooming, and ChannelVRulerControls::ZoomingArea().
|
overridevirtual |
Reimplemented from UIHandle.
Definition at line 58 of file NoteTrackVZoomHandle.cpp.
References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.
|
overridevirtual |
Implements UIHandle.
Definition at line 100 of file NoteTrackVZoomHandle.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 105 of file NoteTrackVZoomHandle.cpp.
|
staticprivate |
Definition at line 65 of file NoteTrackVZoomHandle.cpp.
References MakeCursor(), and XO().
Referenced by Preview().
|
static |
Definition at line 82 of file NoteTrackVZoomHandle.cpp.
References AssignUIHandlePtr().
Referenced by NoteTrackVRulerControls::HitTest().
|
default |
|
overridevirtual |
Implements UIHandle.
Definition at line 137 of file NoteTrackVZoomHandle.cpp.
References HitPreview(), and TrackPanelMouseState::state.
|
overridevirtual |
Implements UIHandle.
Definition at line 283 of file NoteTrackVZoomHandle.cpp.
References PopupMenuTable::BuildMenu(), ProjectHistory::Get(), TrackList::Get(), NoteTrackRange::Get(), NoteTrackVRulerMenuTable::Instance(), anonymous_namespace{NoteTrackVZoomHandle.cpp}::IsDragZooming(), kCaptureLostEventId, TrackList::Lock(), ProjectHistory::ModifyState(), RefreshCode::RefreshAll, RefreshCode::RefreshNone, and NoteTrackDisplayData::ZoomTo().
|
private |
Definition at line 69 of file NoteTrackVZoomHandle.h.
Referenced by Drag(), Draw(), and FindTrack().
|
private |
Definition at line 72 of file NoteTrackVZoomHandle.h.
|
private |
Definition at line 71 of file NoteTrackVZoomHandle.h.
|
private |
Definition at line 71 of file NoteTrackVZoomHandle.h.