#include <TrackButtonHandles.h>
|
| CloseButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect) |
|
CloseButtonHandle & | operator= (const CloseButtonHandle &)=default |
|
virtual | ~CloseButtonHandle () |
|
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 &project) const override |
|
bool | StopsOnKeystroke () 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 45 of file TrackButtonHandles.h.
◆ CloseButtonHandle() [1/2]
◆ CloseButtonHandle() [2/2]
CloseButtonHandle::CloseButtonHandle |
( |
const std::shared_ptr< Track > & |
pTrack, |
|
|
const wxRect & |
rect |
|
) |
| |
|
explicit |
◆ ~CloseButtonHandle()
CloseButtonHandle::~CloseButtonHandle |
( |
| ) |
|
|
virtual |
◆ CommitChanges()
Implements ButtonHandle.
Definition at line 95 of file TrackButtonHandles.cpp.
97{
100
102 if (pTrack) {
107
109
110
111
113 }
114 }
115
116 return result;
117}
Track & SubstitutePendingChangedTrack(Track &track) const
static PendingTracks & Get(AudacityProject &project)
bool IsAudioActive() const
static ProjectAudioIO & Get(AudacityProject &project)
static ProjectAudioManager & Get(AudacityProject &project)
Namespace containing an enum 'what to do on a refresh?'.
AUDACITY_DLL_API void DoRemoveTrack(AudacityProject &project, Track &toRemove)
References RefreshCode::DestroyedCell, TrackUtilities::DoRemoveTrack(), RefreshCode::FixScrollbars, ProjectAudioIO::Get(), PendingTracks::Get(), ProjectAudioManager::Get(), ProjectAudioIO::IsAudioActive(), ButtonHandle::mpTrack, RefreshCode::RefreshAll, RefreshCode::RefreshNone, RefreshCode::Resize, ProjectAudioManager::StopIfPaused(), and PendingTracks::SubstitutePendingChangedTrack().
◆ HitTest()
◆ operator=()
◆ StopsOnKeystroke()
bool CloseButtonHandle::StopsOnKeystroke |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ Tip()
Implements ButtonHandle.
Definition at line 119 of file TrackButtonHandles.cpp.
121{
122 auto name =
XO(
"Delete Track");
123 auto focused =
125 if (!focused)
127
130 return commandManager.DescribeCommandsAndShortcuts( &command, 1u );
131}
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
static CommandManager & Get(AudacityProject &project)
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
References TrackFocus::Get(), CommandManager::Get(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), ButtonHandle::GetTrack(), name, project, wxT(), and XO().
The documentation for this class was generated from the following files: