11#ifndef __AUDACITY_SLIDER_HANDLE__
12#define __AUDACITY_SLIDER_HANDLE__
14#include "../../UIHandle.h"
30 (
SliderFn sliderFn,
const wxRect &rect,
31 const std::shared_ptr<Track> &pTrack );
35 std::shared_ptr<const Track>
FindTrack()
const override;
36 std::shared_ptr<Track>
GetTrack()
const {
return mpTrack.lock(); }
71 wxWindow *pParent)
final override;
81 float mStartingValue {};
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Lightweight version of ASlider. In other words it does not have a window permanently associated with ...
virtual Result SetValue(AudacityProject *pProject, float newValue)=0
SliderHandle & operator=(const SliderHandle &)=default
LWSlider *(*)(AudacityProject *, const wxRect &, Track *) SliderFn
std::shared_ptr< Track > GetTrack() const
SliderHandle(const SliderHandle &)=delete
virtual TranslatableString Tip(const wxMouseState &state, AudacityProject &project) const =0
virtual Result CommitChanges(const wxMouseEvent &event, AudacityProject *pProject)=0
virtual float GetValue()=0
std::weak_ptr< Track > mpTrack
Abstract base class for an object holding data associated with points on a time axis.
Holds a msgid for the translation catalog; may also bind format arguments.
Short-lived drawing and event-handling object associated with a TrackPanelCell.
virtual void Enter(bool forward, AudacityProject *pProject)
virtual Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject)=0
virtual Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0
virtual std::shared_ptr< const Track > FindTrack() const =0
virtual bool IsDragging() const
virtual HitTestPreview Preview(const TrackPanelMouseState &state, AudacityProject *pProject)=0
virtual Result Cancel(AudacityProject *pProject)=0
virtual Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject)=0