Audacity 3.2.0
|
#include <NoteTrackSliderHandles.h>
Public Member Functions | |
VelocitySliderHandle (SliderFn sliderFn, const wxRect &rect, const std::shared_ptr< Track > &pTrack) | |
VelocitySliderHandle & | operator= (const VelocitySliderHandle &)=default |
virtual | ~VelocitySliderHandle () |
Public Member Functions inherited from SliderHandle | |
SliderHandle (SliderFn sliderFn, const wxRect &rect, const std::shared_ptr< Track > &pTrack) | |
SliderHandle & | operator= (const SliderHandle &)=default |
std::shared_ptr< const Track > | FindTrack () const override |
std::shared_ptr< Track > | GetTrack () const |
bool | IsDragging () const 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< VelocitySliderHandle > &holder, const wxMouseState &state, const wxRect &rect, const std::shared_ptr< Track > &pTrack) |
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 | |
float | GetValue () override |
Result | SetValue (AudacityProject *pProject, float newValue) override |
Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject) override |
TranslatableString | Tip (const wxMouseState &state, AudacityProject &) const override |
bool | StopsOnKeystroke () override |
Protected Member Functions inherited from SliderHandle | |
virtual | ~SliderHandle () |
virtual float | GetValue ()=0 |
virtual Result | SetValue (AudacityProject *pProject, float newValue)=0 |
virtual Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject)=0 |
virtual TranslatableString | Tip (const wxMouseState &state, AudacityProject &project) const =0 |
void | Enter (bool forward, AudacityProject *) override |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) final override |
Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) final override |
HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *pProject) final override |
Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) final override |
Result | Cancel (AudacityProject *pProject) final override |
LWSlider * | GetSlider (AudacityProject *pProject) |
Private Member Functions | |
VelocitySliderHandle (const VelocitySliderHandle &)=delete | |
std::shared_ptr< NoteTrack > | GetNoteTrack () const |
Additional Inherited Members | |
Public Types inherited from SliderHandle | |
using | SliderFn = LWSlider *(*)(AudacityProject *, const wxRect &, Track *) |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Protected Attributes inherited from SliderHandle | |
std::weak_ptr< Track > | mpTrack |
wxRect | mRect {} |
SliderFn | mSliderFn |
float | mStartingValue {} |
bool | mIsDragging {} |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 19 of file NoteTrackSliderHandles.h.
|
privatedelete |
|
explicit |
Definition at line 21 of file NoteTrackSliderHandles.cpp.
|
virtual |
Definition at line 27 of file NoteTrackSliderHandles.cpp.
|
overrideprotectedvirtual |
Implements SliderHandle.
Definition at line 57 of file NoteTrackSliderHandles.cpp.
References CONSOLIDATE, ProjectHistory::Get(), ProjectHistory::PushState(), RefreshCode::RefreshCell, and XO().
|
private |
Definition at line 31 of file NoteTrackSliderHandles.cpp.
References SliderHandle::mpTrack.
Referenced by GetValue(), SetValue(), and Tip().
|
overrideprotectedvirtual |
Implements SliderHandle.
Definition at line 36 of file NoteTrackSliderHandles.cpp.
References GetNoteTrack().
|
static |
Definition at line 90 of file NoteTrackSliderHandles.cpp.
References AssignUIHandlePtr(), TrackPanel::Get(), NoteTrackControls::GetVelocityRect(), CommonTrackInfo::HideTopItem(), kTrackInfoSliderAllowance, and NoteTrackControls::VelocitySlider().
Referenced by NoteTrackControls::HitTest().
|
default |
|
overrideprotectedvirtual |
Implements SliderHandle.
Definition at line 44 of file NoteTrackSliderHandles.cpp.
References GetNoteTrack(), and RefreshCode::RefreshCell.
|
inlineoverrideprotectedvirtual |
Reimplemented from UIHandle.
Definition at line 44 of file NoteTrackSliderHandles.h.
|
overrideprotectedvirtual |
Implements SliderHandle.
Definition at line 66 of file NoteTrackSliderHandles.cpp.
References TranslatableString::Format(), GetNoteTrack(), Verbatim(), and XO().