15#include "../../../HitTestResult.h"
17#include "../../../RefreshCode.h"
18#include "../../../TrackPanelMouseEvent.h"
43 pairs.push_back( std::make_pair(
44 lt->SharedPointer<
LabelTrack>(), view.SaveFlags() ) );
54 view.RestoreFlags( pair.second );
67 if (evt.
event.LeftDown())
71 const auto pLT = evt.
pCell.get();
91 wxWindow *WXUNUSED(pParent))
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static ChannelView & Get(Channel &channel)
Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
std::shared_ptr< LabelState > mLabelState
Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
void RestoreState(AudacityProject *pProject)
Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
LabelDefaultClickHandle()
void SaveState(AudacityProject *pProject)
Result Cancel(AudacityProject *pProject) override
virtual ~LabelDefaultClickHandle()
A LabelTrack is a Track that holds labels (LabelStruct).
static LabelTrackView & Get(LabelTrack &)
std::shared_ptr< Subclass > Lock(const std::weak_ptr< Subclass > &wTrack)
auto Any() -> TrackIterRange< TrackType >
static TrackList & Get(AudacityProject &project)
Namespace containing an enum 'what to do on a refresh?'.
std::vector< std::pair< std::weak_ptr< LabelTrack >, LabelTrackView::Flags > > mPairs
std::shared_ptr< TrackPanelCell > pCell