Audacity 3.2.0
WaveTrackAffordanceHandle.h
Go to the documentation of this file.
1/*!********************************************************************
2*
3 Audacity: A Digital Audio Editor
4
5 @file WaveTrackAffordanceHandle.h
6
7 Vitaly Sverchinsky
8
9 **********************************************************************/
10
11#pragma once
12
13#include "../../../ui/AffordanceHandle.h"
14
15class ClipTimes;
16
19{
20 std::shared_ptr<ClipTimes> mTarget;
21public:
22 WaveTrackAffordanceHandle(const std::shared_ptr<Track>& track, const std::shared_ptr<ClipTimes>& target);
23
25
27
28 bool HandlesRightClick() override;
29
30 UIHandle::Result Release(const TrackPanelMouseEvent& event, AudacityProject* pProject, wxWindow* pParent) override;
31};
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
unsigned Result
Definition: UIHandle.h:40
Implements some features which are specific to Wave Clips.
bool HandlesRightClick() override
Whether the handle has any special right-button handling.
std::shared_ptr< ClipTimes > mTarget
WaveTrackAffordanceHandle(const std::shared_ptr< Track > &track, const std::shared_ptr< ClipTimes > &target)
Result Click(const TrackPanelMouseEvent &event, AudacityProject *project) override
UIHandle::Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
UIHandle::Result SelectAt(const TrackPanelMouseEvent &event, AudacityProject *project) override