11#ifndef __AUDACITY_COMMON_TRACK_PANEL_CELL__
12#define __AUDACITY_COMMON_TRACK_PANEL_CELL__
35 unsigned(const TrackPanelMouseEvent &evt, AudacityProject *pProject)
47 std::shared_ptr<Track>
FindTrack() {
return DoFindTrack(); }
56 Action action = {},
bool enabled = true )
57 : symbol{
internal, msgid }, action{ move(action) }, enabled{ enabled }
81 virtual std::vector<MenuItem> GetMenuItems(
82 const wxRect &rect,
const wxPoint *pPosition,
AudacityProject *pProject );
106 std::shared_ptr<Track> DoFindTrack()
override;
108 void Reparent(
const std::shared_ptr<Track> &parent )
override;
abstract base class for structures that user interface associates with tracks
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
std::weak_ptr< Track > mwTrack
std::shared_ptr< Track > FindTrack()
std::shared_ptr< const Track > FindTrack() const
virtual std::shared_ptr< Track > DoFindTrack()=0
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Global function-valued variable, adding a convenient Call()
An explicitly nonlocalized string, not meant for the user to see.
Abstract base class for an object holding data associated with points on a time axis.
virtual unsigned DoContextMenu(const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject)
virtual HitTestPreview DefaultPreview(const TrackPanelMouseState &state, const AudacityProject *pProject)
virtual unsigned HandleWheelRotation(const TrackPanelMouseEvent &event, AudacityProject *pProject)
Holds a msgid for the translation catalog; may also bind format arguments.
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...