![]() |
Audacity 3.2.0
|
#include <CommonTrackControls.h>
Classes | |
struct | InitMenuData |
Public Member Functions | |
virtual const TCPLines & | GetTCPLines () const |
TrackControls (std::shared_ptr< Track > pTrack) | |
![]() | |
TrackControls (std::shared_ptr< Track > pTrack) | |
virtual | ~TrackControls ()=0 |
![]() | |
CommonTrackCell (const std::shared_ptr< Track > &pTrack) | |
~CommonTrackCell () | |
std::shared_ptr< Track > | DoFindTrack () override |
void | Reparent (const std::shared_ptr< Track > &parent) override |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
![]() | |
CommonTrackPanelCell () | |
virtual | ~CommonTrackPanelCell ()=0 |
HitTestPreview | DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override |
std::shared_ptr< Track > | FindTrack () |
std::shared_ptr< const Track > | FindTrack () const |
virtual std::vector< MenuItem > | GetMenuItems (const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject) |
Return a list of items for DoContextMenu() (empties for separators) More... | |
![]() | |
TrackPanelCell ()=default | |
TrackPanelCell (const TrackPanelCell &) PROHIBITED | |
TrackPanelCell & | operator= (const TrackPanelCell &) PROHIBITED |
virtual | ~TrackPanelCell ()=0 |
virtual HitTestPreview | DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject) |
virtual std::vector< UIHandlePtr > | HitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0 |
virtual unsigned | HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) |
virtual std::shared_ptr< TrackPanelCell > | ContextMenuDelegate () |
virtual unsigned | DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) |
virtual unsigned | CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) |
virtual unsigned | LoseFocus (AudacityProject *project) |
![]() | |
TrackPanelNode () | |
virtual | ~TrackPanelNode ()=0 |
![]() | |
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) |
![]() | |
virtual | ~TrackAttachment () |
virtual void | CopyTo (Track &track) const |
Copy state, for undo/redo purposes. More... | |
virtual void | Reparent (const std::shared_ptr< Track > &parent) |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
virtual void | WriteXMLAttributes (XMLWriter &) const |
Serialize persistent attributes. More... | |
virtual bool | HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView) |
Deserialize an attribute, returning true if recognized. More... | |
![]() | |
virtual | ~Base () |
Static Public Member Functions | |
static const TCPLines & | StaticTCPLines () |
![]() | |
static TrackControls & | Get (Track &track) |
static const TrackControls & | Get (const Track &track) |
![]() | |
static wxRect | MaximizeWidth (const wxRect &rect, const wxRect &panelRect) |
static wxRect | MaximizeHeight (const wxRect &rect, const wxRect &panelRect) |
Protected Member Functions | |
virtual std::vector< UIHandlePtr > | HitTest (const TrackPanelMouseState &state, const AudacityProject *) override=0 |
unsigned | DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) override |
virtual PopupMenuTable * | GetMenuExtension (Track *pTrack)=0 |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
wxRect | DrawingArea (TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override |
![]() | |
virtual std::shared_ptr< Track > | DoFindTrack ()=0 |
unsigned | DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) override |
unsigned | HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Protected Attributes | |
std::weak_ptr< CloseButtonHandle > | mCloseHandle |
std::weak_ptr< MenuButtonHandle > | mMenuHandle |
std::weak_ptr< MinimizeButtonHandle > | mMinimizeHandle |
std::weak_ptr< SelectButtonHandle > | mSelectButtonHandle |
std::weak_ptr< TrackSelectHandle > | mSelectHandle |
Definition at line 26 of file CommonTrackControls.h.
|
overrideprotectedvirtual |
Reimplemented from TrackPanelCell.
Definition at line 273 of file CommonTrackControls.cpp.
References PopupMenuTable::BuildMenu(), PopupMenuTable::ExtendMenu(), CommonTrackPanelCell::FindTrack(), GetMenuExtension(), TrackInfo::GetTitleBarRect(), TrackMenuTable::Instance(), and RefreshCode::RefreshNone.
|
overrideprotectedvirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 354 of file CommonTrackControls.cpp.
References AColor::BevelTrackInfo(), TrackPanelDrawingContext::dc, TrackInfo::DrawItems(), CommonTrackPanelCell::FindTrack(), AColor::MediumTrackInfo(), TrackArtist::PassControls, and TrackArtist::PassMargins.
|
overrideprotectedvirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 419 of file CommonTrackControls.cpp.
References TrackArtist::PassControls.
|
protectedpure virtual |
Implemented in LabelTrackControls, NoteTrackControls, WaveTrackControls, and TimeTrackControls.
Referenced by DoContextMenu().
|
virtual |
Reimplemented in NoteTrackControls, and WaveTrackControls.
Definition at line 191 of file TrackInfo.cpp.
References commonTrackTCPLines().
Referenced by TrackInfo::DrawItems().
|
overrideprotectedpure virtual |
Implements TrackPanelCell.
Implemented in LabelTrackControls, NoteTrackControls, WaveTrackControls, and TimeTrackControls.
Definition at line 35 of file CommonTrackControls.cpp.
References CommonTrackPanelCell::FindTrack(), TrackSelectHandle::HitAnywhere(), CloseButtonHandle::HitTest(), MenuButtonHandle::HitTest(), MinimizeButtonHandle::HitTest(), SelectButtonHandle::HitTest(), mCloseHandle, mMenuHandle, mMinimizeHandle, mSelectButtonHandle, mSelectHandle, TrackPanelMouseState::rect, and TrackPanelMouseState::state.
Referenced by LabelTrackControls::HitTest(), NoteTrackControls::HitTest(), WaveTrackControls::HitTest(), and TimeTrackControls::HitTest().
|
static |
Definition at line 123 of file TrackInfo.cpp.
References commonTrackTCPLines().
Referenced by PlayableTrackControls::StaticNoteTCPLines(), and PlayableTrackControls::StaticWaveTCPLines().
|
explicit |
Definition at line 26 of file TrackControls.cpp.
References AttachedVirtualFunction< Tag, Return, This, Arguments >::Call().
|
protected |
Definition at line 70 of file CommonTrackControls.h.
Referenced by HitTest().
|
protected |
Definition at line 71 of file CommonTrackControls.h.
Referenced by HitTest().
|
protected |
Definition at line 72 of file CommonTrackControls.h.
Referenced by HitTest().
|
protected |
Definition at line 73 of file CommonTrackControls.h.
Referenced by HitTest().
|
protected |
Definition at line 74 of file CommonTrackControls.h.
Referenced by HitTest().