#include <TrackButtonHandles.h>
|
| | SelectButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect) |
| |
| SelectButtonHandle & | operator= (const SelectButtonHandle &)=default |
| |
| virtual | ~SelectButtonHandle () |
| |
Public Member Functions inherited from ButtonHandle |
| 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) |
| |
| 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) |
| |
|
| Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
| |
| TranslatableString | Tip (const wxMouseState &state, AudacityProject &) const override |
| |
Protected Member Functions inherited from ButtonHandle |
| | ButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect) |
| |
| ButtonHandle & | operator= (const ButtonHandle &)=default |
| |
| virtual | ~ButtonHandle () |
| |
| std::shared_ptr< const Track > | FindTrack () const override |
| |
| virtual Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0 |
| |
| virtual TranslatableString | Tip (const wxMouseState &state, AudacityProject &project) const =0 |
| |
| void | Enter (bool forward, AudacityProject *) final 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 |
| |
Definition at line 44 of file TrackButtonHandles.h.
◆ SelectButtonHandle() [1/2]
◆ SelectButtonHandle() [2/2]
| SelectButtonHandle::SelectButtonHandle |
( |
const std::shared_ptr< Track > & |
pTrack, |
|
|
const wxRect & |
rect |
|
) |
| |
|
explicit |
◆ ~SelectButtonHandle()
| SelectButtonHandle::~SelectButtonHandle |
( |
| ) |
|
|
virtual |
◆ CommitChanges()
Implements ButtonHandle.
Definition at line 94 of file TrackButtonHandles.cpp.
96{
98
100 if (pTrack)
101 {
104 *pTrack, event.ShiftDown(), event.ControlDown(), !unsafe);
105
106 }
107
109}
bool IsAudioActive() const
static ProjectAudioIO & Get(AudacityProject &project)
Namespace containing an enum 'what to do on a refresh?'.
void DoListSelection(AudacityProject &project, Track &t, bool shift, bool ctrl, bool modifyState)
References SelectUtilities::DoListSelection(), ProjectAudioIO::Get(), ProjectAudioIO::IsAudioActive(), ButtonHandle::mpTrack, and RefreshCode::RefreshNone.
◆ HitTest()
◆ operator=()
◆ Tip()
The documentation for this class was generated from the following files: