#include <SliderHandle.h>
|
| SliderHandle (SliderFn sliderFn, const wxRect &rect, const std::shared_ptr< Track > &pTrack) |
|
SliderHandle & | operator= (const SliderHandle &)=default |
|
std::shared_ptr< const Channel > | FindChannel () 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 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) |
|
Definition at line 22 of file SliderHandle.h.
◆ SliderFn
◆ SliderHandle() [1/2]
◆ SliderHandle() [2/2]
SliderHandle::SliderHandle |
( |
SliderFn |
sliderFn, |
|
|
const wxRect & |
rect, |
|
|
const std::shared_ptr< Track > & |
pTrack |
|
) |
| |
|
explicit |
◆ ~SliderHandle()
SliderHandle::~SliderHandle |
( |
| ) |
|
|
protectedvirtual |
◆ Cancel()
|
finaloverrideprotectedvirtual |
◆ Click()
|
finaloverrideprotectedvirtual |
◆ CommitChanges()
◆ Drag()
|
finaloverrideprotectedvirtual |
◆ Enter()
◆ FindChannel()
std::shared_ptr< const Channel > SliderHandle::FindChannel |
( |
| ) |
const |
|
overridevirtual |
- Returns
- pointer to associated channel, if any
Implements UIHandle.
Definition at line 37 of file SliderHandle.cpp.
38{
39 return std::dynamic_pointer_cast<const Channel>(
mpTrack.lock());
40}
References mpTrack.
◆ GetSlider()
◆ GetTrack()
std::shared_ptr< Track > SliderHandle::GetTrack |
( |
| ) |
const |
|
inline |
◆ GetValue()
virtual float SliderHandle::GetValue |
( |
| ) |
|
|
protectedpure virtual |
◆ IsDragging()
bool SliderHandle::IsDragging |
( |
| ) |
const |
|
overridevirtual |
Whether the handle is dragging, affecting other panel painting; default returns false
Reimplemented from UIHandle.
Definition at line 42 of file SliderHandle.cpp.
References mIsDragging.
◆ operator=()
◆ Preview()
|
finaloverrideprotectedvirtual |
Implements UIHandle.
Definition at line 86 of file SliderHandle.cpp.
88{
89
93 return { message, {}, message };
94}
virtual TranslatableString Tip(const wxMouseState &state, AudacityProject &project) const =0
Holds a msgid for the translation catalog; may also bind format arguments.
References project, TrackPanelMouseState::state, and Tip().
◆ Release()
|
finaloverrideprotectedvirtual |
◆ SetValue()
◆ Tip()
◆ mIsDragging
bool SliderHandle::mIsDragging {} |
|
protected |
◆ mpTrack
std::weak_ptr<Track> SliderHandle::mpTrack |
|
protected |
◆ mRect
wxRect SliderHandle::mRect {} |
|
protected |
◆ mSliderFn
◆ mStartingValue
float SliderHandle::mStartingValue {} |
|
protected |
The documentation for this class was generated from the following files: