mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
Highlighting of envelopes
This commit is contained in:
@@ -10,6 +10,7 @@ Paul Licameli split from TrackPanel.cpp
|
||||
|
||||
#include "../../Audacity.h"
|
||||
#include "EnvelopeHandle.h"
|
||||
#include "../../Experimental.h"
|
||||
|
||||
#include "../../MemoryX.h"
|
||||
|
||||
@@ -28,12 +29,17 @@ Paul Licameli split from TrackPanel.cpp
|
||||
|
||||
EnvelopeHandle::EnvelopeHandle( Envelope *pEnvelope )
|
||||
: mEnvelope{ pEnvelope }
|
||||
{}
|
||||
{
|
||||
#ifdef EXPERIMENTAL_TRACK_PANEL_HIGHLIGHTING
|
||||
mChangeHighlight = RefreshCode::RefreshCell;
|
||||
#endif
|
||||
}
|
||||
|
||||
EnvelopeHandle::~EnvelopeHandle()
|
||||
{}
|
||||
|
||||
HitTestPreview EnvelopeHandle::HitPreview(const AudacityProject *pProject, bool unsafe)
|
||||
HitTestPreview EnvelopeHandle::HitPreview
|
||||
(const AudacityProject *pProject, bool unsafe)
|
||||
{
|
||||
static auto disabledCursor =
|
||||
::MakeCursor(wxCURSOR_NO_ENTRY, DisabledCursorXpm, 16, 16);
|
||||
|
||||
@@ -28,7 +28,8 @@ class EnvelopeHandle final : public UIHandle
|
||||
{
|
||||
EnvelopeHandle(const EnvelopeHandle&) = delete;
|
||||
EnvelopeHandle &operator=(const EnvelopeHandle&) = delete;
|
||||
static HitTestPreview HitPreview(const AudacityProject *pProject, bool unsafe);
|
||||
static HitTestPreview HitPreview
|
||||
(const AudacityProject *pProject, bool unsafe);
|
||||
|
||||
static UIHandlePtr HitEnvelope
|
||||
(std::weak_ptr<EnvelopeHandle> &holder,
|
||||
|
||||
Reference in New Issue
Block a user