![]() |
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 Channel > | FindChannel () 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 |
![]() | |
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 Channel > | FindChannel () const =0 |
virtual bool | IsDragging () const |
Result | GetChangeHighlight () const |
void | SetChangeHighlight (Result val) |
![]() | |
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 UIHandle::Result | NeedChangeHighlight (const UIHandle &, const UIHandle &) |
![]() | |
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 | |
![]() | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
![]() | |
Result | mChangeHighlight { 0 } |
Definition at line 19 of file NoteTrackVZoomHandle.h.
|
private |
|
explicit |
Definition at line 54 of file NoteTrackVZoomHandle.cpp.
|
virtual |
Definition at line 103 of file NoteTrackVZoomHandle.cpp.
|
overridevirtual |
Implements UIHandle.
Definition at line 364 of file NoteTrackVZoomHandle.cpp.
References RefreshCode::RefreshAll.
|
overridevirtual |
Implements UIHandle.
Definition at line 117 of file NoteTrackVZoomHandle.cpp.
References RefreshCode::RefreshNone.
|
overridevirtual |
Implements UIHandle.
Definition at line 126 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 371 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 385 of file NoteTrackVZoomHandle.cpp.
References TrackArtist::PassZooming, and ChannelVRulerControls::ZoomingArea().
|
overridevirtual |
Reimplemented from UIHandle.
Definition at line 60 of file NoteTrackVZoomHandle.cpp.
References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.
|
overridevirtual |
Implements UIHandle.
Definition at line 107 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 112 of file NoteTrackVZoomHandle.cpp.
|
staticprivate |
Definition at line 67 of file NoteTrackVZoomHandle.cpp.
References bVZoom, gPrefs, MakeCursor(), audacity::BasicSettings::Read(), wxT(), and XO().
Referenced by Preview().
|
static |
Definition at line 89 of file NoteTrackVZoomHandle.cpp.
References AssignUIHandlePtr().
Referenced by NoteTrackVRulerControls::HitTest().
|
default |
|
overridevirtual |
Implements UIHandle.
Definition at line 144 of file NoteTrackVZoomHandle.cpp.
References HitPreview(), and TrackPanelMouseState::state.
|
overridevirtual |
Implements UIHandle.
Definition at line 295 of file NoteTrackVZoomHandle.cpp.
References PopupMenuTable::BuildMenu(), bVZoom, ProjectHistory::Get(), TrackList::Get(), NoteTrackRange::Get(), gPrefs, NoteTrackVRulerMenuTable::Instance(), anonymous_namespace{NoteTrackVZoomHandle.cpp}::IsDragZooming(), kCaptureLostEventId, TrackList::Lock(), ProjectHistory::ModifyState(), audacity::BasicSettings::Read(), RefreshCode::RefreshAll, RefreshCode::RefreshNone, wxT(), and NoteTrackDisplayData::ZoomTo().
|
private |
Definition at line 69 of file NoteTrackVZoomHandle.h.
Referenced by Drag(), Draw(), and FindChannel().
|
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.