Audacity 3.2.0
|
#include <WaveChannelView.h>
Public Types | |
using | Display = WaveChannelViewConstants::Display |
Public Types inherited from ChannelView | |
enum | : unsigned { DefaultHeight = 150 } |
using | Refinement = std::vector< std::pair< wxCoord, std::shared_ptr< ChannelView > > > |
Public Types inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy > | |
using | DataType = ClientData |
using | DataPointer = Pointer< ClientData > |
using | DataFactory = std::function< DataPointer(Host &) > |
Type of function from which RegisteredFactory is constructed; it builds attachments. More... | |
Public Member Functions | |
~WaveChannelView () override | |
std::shared_ptr< WaveChannel > | FindWaveChannel () |
void | CopyTo (Track &track, size_t iChannel) const override |
Copy state, for undo/redo purposes. More... | |
std::shared_ptr< ChannelVRulerControls > | DoGetVRulerControls () override |
void | Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) override |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
std::vector< WaveChannelSubView::Type > | GetDisplays () const |
void | SetDisplay (Display display, bool exclusive=true) |
const WaveChannelSubViewPlacements & | SavePlacements () const |
void | RestorePlacements (const WaveChannelSubViewPlacements &placements) |
bool | ToggleSubView (Display id) |
std::vector< std::shared_ptr< WaveChannelSubView > > | GetAllSubViews () |
wxCoord | GetLastHeight () const |
bool | GetMultiView () const |
void | SetMultiView (bool value) |
WaveTrack::IntervalHolder | GetSelectedClip () |
Refinement | GetSubViews (const wxRect *rect=nullptr) |
unsigned | CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override |
unsigned | KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override |
unsigned | Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project) override |
unsigned | LoseFocus (AudacityProject *project) override |
bool | CutSelectedText (AudacityProject &project) |
bool | CopySelectedText (AudacityProject &project) |
bool | PasteText (AudacityProject &project) |
bool | SelectAllText (AudacityProject &project) |
std::shared_ptr< CommonTrackCell > | GetAffordanceControls () override |
Public Member Functions inherited from CommonChannelView | |
std::shared_ptr< TrackPanelCell > | ContextMenuDelegate () override |
std::vector< UIHandlePtr > | HitTest (const TrackPanelMouseState &, const AudacityProject *pProject) final |
void | TimeShiftHitTest () |
virtual int | GetMinimizedHeight () const override |
ChannelView (const std::shared_ptr< Channel > &pChannel) | |
Public Member Functions inherited from ChannelView | |
ChannelView (const std::shared_ptr< Channel > &pChannel) | |
virtual | ~ChannelView ()=0 |
void | Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) override |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
void | CopyTo (Track &track, size_t iChannel) const override |
Copy state, for undo/redo purposes. More... | |
bool | GetMinimized () const |
void | SetMinimized (bool minimized) |
int | GetCumulativeHeightBefore () const |
int | GetExpandedHeight () const |
virtual int | GetMinimizedHeight () const =0 |
int | GetHeight () const |
void | SetCumulativeHeightBefore (int y) |
Set cached value dependent on position within the track list. More... | |
void | SetExpandedHeight (int height) |
std::shared_ptr< ChannelVRulerControls > | GetVRulerControls () |
std::shared_ptr< const ChannelVRulerControls > | GetVRulerControls () const |
virtual std::shared_ptr< CommonTrackCell > | GetAffordanceControls () |
void | WriteXMLAttributes (XMLWriter &writer, size_t iChannel) const override |
Serialize persistent attributes. More... | |
bool | HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView, size_t iChannel) override |
Deserialize an attribute, returning true if recognized. More... | |
virtual Refinement | GetSubViews (const wxRect &rect) |
virtual bool | IsSpectral () const |
virtual void | DoSetMinimized (bool isMinimized) |
Public Member Functions inherited from CommonChannelCell | |
CommonChannelCell (const std::shared_ptr< Channel > &pChannel) | |
Construct from a channel. More... | |
~CommonChannelCell () | |
std::shared_ptr< Track > | DoFindTrack () override |
void | Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) override |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
template<typename Subtype = Channel> | |
auto | FindChannel () -> std::shared_ptr< Subtype > |
May return null. More... | |
template<typename Subtype = const Channel> | |
auto | FindChannel () const -> std::enable_if_t< std::is_const_v< Subtype >, std::shared_ptr< Subtype > > |
May return null. More... | |
Public Member Functions inherited from CommonTrackPanelCell | |
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... | |
Public Member Functions inherited from TrackPanelCell | |
TrackPanelCell ()=default | |
TrackPanelCell (const TrackPanelCell &)=delete | |
TrackPanelCell & | operator= (const TrackPanelCell &)=delete |
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) |
Public Member Functions inherited from TrackPanelNode | |
TrackPanelNode () | |
virtual | ~TrackPanelNode ()=0 |
Public Member Functions inherited from TrackPanelDrawable | |
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) |
Public Member Functions inherited from ChannelAttachment | |
virtual | ~ChannelAttachment () |
virtual void | CopyTo (Track &track, size_t iChannel) const |
Copy state, for undo/redo purposes. More... | |
virtual void | Reparent (const std::shared_ptr< Track > &parent, size_t iChannel) |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it. More... | |
virtual void | WriteXMLAttributes (XMLWriter &writer, size_t iChannel) const |
Serialize persistent attributes. More... | |
virtual bool | HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView, size_t iChannel) |
Deserialize an attribute, returning true if recognized. More... | |
Public Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy > | |
~Site () | |
Site () | |
Site (const Site &other) | |
Site & | operator= (const Site &other) |
Site (Site &&other) | |
Site & | operator= (Site &&other) |
size_t | size () const |
How many attachment pointers are in the Site. More... | |
template<typename Subclass = ClientData> | |
Subclass & | Get (const RegisteredFactory &key) |
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More... | |
template<typename Subclass = const ClientData> | |
auto | Get (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass & > |
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More... | |
template<typename Subclass = ClientData> | |
Subclass * | Find (const RegisteredFactory &key) |
Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More... | |
template<typename Subclass = const ClientData> | |
auto | Find (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass * > |
Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More... | |
template<typename ReplacementPointer > | |
void | Assign (const RegisteredFactory &key, ReplacementPointer &&replacement) |
Reassign Site's pointer to ClientData. More... | |
Static Public Member Functions | |
static WaveChannelView & | Get (WaveChannel &channel) |
static const WaveChannelView & | Get (const WaveChannel &channel) |
static WaveChannelView * | Find (WaveChannel *pChannel) |
static const WaveChannelView * | Find (const WaveChannel *pChannel) |
static WaveChannelView & | GetFirst (WaveTrack &wt) |
Get the view of the first channel. More... | |
static const WaveChannelView & | GetFirst (const WaveTrack &wt) |
Get the view of the first channel. More... | |
static WaveChannelView * | FindFirst (WaveTrack *pWt) |
If pWt is not null, return a pointer to the view of the first channel. More... | |
static const WaveChannelView * | FindFirst (const WaveTrack *pWt) |
If pWt is not null, return a pointer to the view of the first channel. More... | |
static std::pair< bool, std::vector< UIHandlePtr > > | DoDetailedHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool, const std::shared_ptr< WaveChannel > &wt, CommonChannelView &view) |
static bool | ClipDetailsVisible (const ClipTimes &clip, const ZoomInfo &zoomInfo, const wxRect &viewRect) |
static wxRect | ClipHitTestArea (const ClipTimes &clip, const ZoomInfo &zoomInfo, const wxRect &viewRect) |
static bool | HitTest (const ClipTimes &clip, const ZoomInfo &zoomInfo, const wxRect &rect, const wxPoint &pos) |
Static Public Member Functions inherited from CommonChannelView | |
static void | GetEnvelopeValues (const Envelope &env, double aligned_time, double sampleDur, double *buffer, int bufferLen, int leftOffset, const ZoomInfo &zoomInfo) |
Get many envelope points for pixel columns at once, but don't assume uniform time per pixel. More... | |
Static Public Member Functions inherited from ChannelView | |
static ChannelView & | Get (Channel &channel) |
static const ChannelView & | Get (const Channel &channel) |
static ChannelView * | Find (Channel *pChannel) |
static const ChannelView * | Find (const Channel *pChannel) |
static int | GetChannelGroupHeight (const Track *pTrack) |
static int | GetCumulativeHeight (const Channel *pChannel) |
static int | GetCumulativeHeight (const Track *pTrack) |
static int | GetTotalHeight (const TrackList &list) |
Static Public Member Functions inherited from TrackPanelDrawable | |
static wxRect | MaximizeWidth (const wxRect &rect, const wxRect &panelRect) |
static wxRect | MaximizeHeight (const wxRect &rect, const wxRect &panelRect) |
Static Public Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy > | |
static size_t | numFactories () |
How many static factories have been registered with this specialization of Site. More... | |
Static Public Attributes | |
static constexpr int | kChannelSeparatorThickness { 8 } |
Private Member Functions | |
WaveChannelView (const WaveChannelView &)=delete | |
WaveChannelView & | operator= (const WaveChannelView &)=delete |
void | BuildSubViews () const |
void | DoSetDisplay (Display display, bool exclusive=true) |
bool | SelectNextClip (ViewInfo &viewInfo, AudacityProject *project, bool forward) |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
std::vector< UIHandlePtr > | DetailedHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool) override |
Refinement | GetSubViews (const wxRect &rect) override |
void | DoSetMinimized (bool minimized) override |
WaveChannelSubViewPlacements & | DoGetPlacements () |
const WaveChannelSubViewPlacements & | DoGetPlacements () const |
bool & | DoGetMultiView () |
bool | DoGetMultiView () const |
std::shared_ptr< CommonTrackCell > | DoGetAffordance (Track &track) |
Private Attributes | |
wxCoord | mLastHeight {} |
std::shared_ptr< CommonTrackCell > | mpAffordanceCellControl |
std::weak_ptr< TrackPanelCell > | mKeyEventDelegate |
std::weak_ptr< WaveTrackAffordanceHandle > | mAffordanceHandle |
Additional Inherited Members | |
Public Attributes inherited from CommonChannelView | |
std::weak_ptr< TimeShiftHandle > | mTimeShiftHandle |
Public Attributes inherited from ChannelView | |
std::pair< int, int > | vrulerSize |
virtual std::vector< UIHandlePtr > | DetailedHitTest (const TrackPanelMouseState &, const AudacityProject *pProject, int currentTool, bool bMultiTool)=0 |
virtual std::shared_ptr< ChannelVRulerControls > | DoGetVRulerControls ()=0 |
Protected Member Functions inherited from CommonTrackPanelCell | |
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 Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy > | |
template<typename Function > | |
void | ForEach (const Function &function) |
Invoke function on each ClientData object that has been created in this . More... | |
template<typename Function > | |
void | ForEach (const Function &function) const |
Invoke function on each ClientData object that has been created in this . More... | |
template<typename Function > | |
void | ForCorresponding (Site &other, const Function &function, bool create=true) |
template<typename Function > | |
ClientData * | FindIf (const Function &function) |
Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More... | |
template<typename Function > | |
const ClientData * | FindIf (const Function &function) const |
Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More... | |
template<typename Function > | |
void | EraseIf (const Function &function) |
Erase attached objects satisfying a predicate. More... | |
void | BuildAll () |
For each RegisteredFactory, if the corresponding attachment is absent in this , build and store it. More... | |
Protected Attributes inherited from CommonChannelView | |
std::weak_ptr< SelectHandle > | mSelectHandle |
Protected Attributes inherited from ChannelView | |
std::shared_ptr< ChannelVRulerControls > | mpVRulerControls |
Definition at line 97 of file WaveChannelView.h.
Definition at line 107 of file WaveChannelView.h.
|
privatedelete |
|
override |
Definition at line 970 of file WaveChannelView.cpp.
|
private |
Definition at line 1609 of file WaveChannelView.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::BuildAll(), WaveChannelSubViewType::Default(), ChannelView::DoSetMinimized(), ChannelView::GetMinimized(), WaveChannelViewConstants::MultiView, ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::size(), and TracksPrefs::ViewModeChoice().
Referenced by DoSetMinimized(), GetAllSubViews(), GetDisplays(), and SetDisplay().
|
overridevirtual |
Reimplemented from TrackPanelCell.
Definition at line 1339 of file WaveChannelView.cpp.
References TrackPanelCell::CaptureKey(), FindWaveChannel(), Get(), mKeyEventDelegate, project, and RefreshCode::RefreshNone.
|
overridevirtual |
Reimplemented from TrackPanelCell.
Definition at line 1418 of file WaveChannelView.cpp.
References mKeyEventDelegate, project, and RefreshCode::RefreshNone.
|
static |
Definition at line 1480 of file WaveChannelView.cpp.
References ClipParameters::GetClipRect(), and kClipDetailedViewMinimumWidth.
Referenced by WaveTrackAffordanceHandle::Click(), DoDetailedHitTest(), WaveTrackAffordanceControls::Draw(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), and WaveClipAdjustBorderHandle::HitAnywhere().
|
static |
Definition at line 1491 of file WaveChannelView.cpp.
References ClipParameters::GetClipRect(), and kClipDetailedViewMinimumWidth.
Referenced by HitTest().
bool WaveChannelView::CopySelectedText | ( | AudacityProject & | project | ) |
Definition at line 1474 of file WaveChannelView.cpp.
References anonymous_namespace{WaveChannelView.cpp}::AnyAffordance(), WaveTrackAffordanceControls::OnTextCopy(), and project.
|
overridevirtual |
Copy state, for undo/redo purposes.
iChannel | position of the attachment's channel in the group The default does nothing |
Reimplemented from ChannelAttachment.
Definition at line 979 of file WaveChannelView.cpp.
References ChannelView::CopyTo(), DoGetMultiView(), ChannelView::Get(), GetAllSubViews(), ChannelGroup::GetChannel(), anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, and SavePlacements().
bool WaveChannelView::CutSelectedText | ( | AudacityProject & | project | ) |
Definition at line 1468 of file WaveChannelView.cpp.
References anonymous_namespace{WaveChannelView.cpp}::AnyAffordance(), WaveTrackAffordanceControls::OnTextCut(), and project.
|
overrideprivatevirtual |
Implements CommonChannelView.
Definition at line 1000 of file WaveChannelView.cpp.
|
static |
Definition at line 1010 of file WaveChannelView.cpp.
References AssignUIHandlePtr(), ClipDetailsVisible(), ViewInfo::Get(), Get(), TimeShiftHandle::HitAnywhere(), HitTest(), CommonChannelView::mTimeShiftHandle, TrackPanelMouseState::rect, and TrackPanelMouseState::state.
Referenced by WaveChannelSubView::DoDetailedHitTest().
|
private |
Definition at line 1557 of file WaveChannelView.cpp.
References mpAffordanceCellControl, and Track::SharedPointer().
Referenced by GetAffordanceControls().
|
private |
Definition at line 95 of file WaveChannelView.cpp.
References FindWaveChannel(), and BasicUI::Get().
Referenced by CopyTo(), and DoGetMultiView().
|
private |
Definition at line 101 of file WaveChannelView.cpp.
References DoGetMultiView().
|
private |
Definition at line 84 of file WaveChannelView.cpp.
References FindWaveChannel(), and BasicUI::Get().
Referenced by DoGetPlacements(), DoSetDisplay(), GetDisplays(), and ToggleSubView().
|
private |
Definition at line 90 of file WaveChannelView.cpp.
References DoGetPlacements().
|
overridevirtual |
Implements ChannelView.
Definition at line 1576 of file WaveChannelView.cpp.
|
private |
Definition at line 1146 of file WaveChannelView.cpp.
References DoGetPlacements(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach(), and WaveChannelSubView::SubViewType().
Referenced by SetDisplay().
|
overrideprivatevirtual |
Reimplemented from ChannelView.
Definition at line 1545 of file WaveChannelView.cpp.
References BuildSubViews(), ChannelView::DoSetMinimized(), and ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach().
|
overrideprivatevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 1636 of file WaveChannelView.cpp.
References TrackPanelDrawable::Draw().
|
static |
Definition at line 928 of file WaveChannelView.cpp.
References Find().
|
static |
Definition at line 923 of file WaveChannelView.cpp.
References ChannelView::Find().
Referenced by Find().
|
static |
If pWt is not null, return a pointer to the view of the first channel.
Definition at line 949 of file WaveChannelView.cpp.
References GetFirst().
|
static |
If pWt is not null, return a pointer to the view of the first channel.
Definition at line 944 of file WaveChannelView.cpp.
References GetFirst().
std::shared_ptr< WaveChannel > WaveChannelView::FindWaveChannel | ( | ) |
Definition at line 974 of file WaveChannelView.cpp.
Referenced by anonymous_namespace{WaveChannelView.cpp}::AnyAffordance(), CaptureKey(), DoGetMultiView(), DoGetPlacements(), GetAffordanceControls(), GetSelectedClip(), WaveClipAdjustBorderHandle::HitTest(), and SelectNextClip().
|
static |
Definition at line 918 of file WaveChannelView.cpp.
References Get().
|
static |
Definition at line 913 of file WaveChannelView.cpp.
References ChannelView::Get().
Referenced by SetTrackVisualsCommand::ApplyInner(), CaptureKey(), WaveformPrefs::Commit(), DoDetailedHitTest(), Get(), GetFirst(), GetSelectedClip(), SpectrumPrefs::Rollback(), SpectrumPrefs::SpectrumPrefs(), and SubViewAdjuster::UpdateViews().
|
overridevirtual |
Reimplemented from ChannelView.
Definition at line 1533 of file WaveChannelView.cpp.
References DoGetAffordance(), and FindWaveChannel().
std::vector< std::shared_ptr< WaveChannelSubView > > WaveChannelView::GetAllSubViews | ( | ) |
Definition at line 1521 of file WaveChannelView.cpp.
References BuildSubViews(), and ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach().
Referenced by CopyTo(), and SubViewAdjuster::SubViewAdjuster().
auto WaveChannelView::GetDisplays | ( | ) | const |
Definition at line 1058 of file WaveChannelView.cpp.
References BuildSubViews(), DoGetPlacements(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach(), and WaveChannelSubView::SubViewType().
Referenced by anonymous_namespace{SpectrumView.cpp}::DoNextPeakFrequency(), and ToggleSubView().
|
static |
Get the view of the first channel.
Definition at line 939 of file WaveChannelView.cpp.
References GetFirst().
|
static |
Get the view of the first channel.
Definition at line 933 of file WaveChannelView.cpp.
References WaveTrack::Channels(), and Get().
Referenced by Append(), anonymous_namespace{SpectrumView.cpp}::DoNextPeakFrequency(), anonymous_namespace{EditMenus.cpp}::DoPasteText(), anonymous_namespace{WaveTrackAffordanceControls.cpp}::FindAffordance(), FindFirst(), for(), GetFirst(), WaveTrackAffordanceControls::HitTest(), anonymous_namespace{EditMenus.cpp}::OnCopy(), anonymous_namespace{EditMenus.cpp}::OnCut(), WaveTrackMenuTable::OnMergeStereo(), WaveTrackMenuTable::OnMultiView(), SelectActions::Handler::OnSelectAll(), and WaveTrackMenuTable::OnSetDisplay().
|
inline |
Definition at line 166 of file WaveChannelView.h.
Referenced by SubViewAdjustHandle::HitTest(), and SubViewRearrangeHandle::HitTest().
|
inline |
Definition at line 168 of file WaveChannelView.h.
Referenced by SubViewAdjustHandle::HitTest(), and SubViewRearrangeHandle::HitTest().
WaveTrack::IntervalHolder WaveChannelView::GetSelectedClip | ( | ) |
Definition at line 1594 of file WaveChannelView.cpp.
References FindWaveChannel(), and Get().
|
overrideprivatevirtual |
Reimplemented from ChannelView.
Definition at line 1265 of file WaveChannelView.cpp.
auto WaveChannelView::GetSubViews | ( | const wxRect * | rect = nullptr | ) |
Definition at line 1270 of file WaveChannelView.cpp.
References details::begin(), details::end(), and ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach().
|
static |
Definition at line 1502 of file WaveChannelView.cpp.
References ClipHitTestArea().
Referenced by DoDetailedHitTest(), WaveTrackAffordanceControls::HitTest(), WaveTrackShifter::HitTest(), and SubViewAdjustHandle::HitTest().
|
overridevirtual |
Reimplemented from TrackPanelCell.
Definition at line 1391 of file WaveChannelView.cpp.
References mKeyEventDelegate, project, RefreshCode::RefreshCell, RefreshCode::RefreshNone, and SelectNextClip().
|
overridevirtual |
Reimplemented from TrackPanelCell.
Definition at line 1437 of file WaveChannelView.cpp.
References mKeyEventDelegate, project, and RefreshCode::RefreshNone.
|
privatedelete |
bool WaveChannelView::PasteText | ( | AudacityProject & | project | ) |
Definition at line 1508 of file WaveChannelView.cpp.
References anonymous_namespace{WaveChannelView.cpp}::AnyAffordance(), WaveTrackAffordanceControls::OnTextPaste(), and project.
|
overridevirtual |
Object may be shared among tracks but hold a special back-pointer to one of them; reassign it.
iChannel | position of the attachment's channel in the group The default does nothing |
Reimplemented from ChannelAttachment.
Definition at line 1581 of file WaveChannelView.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::ForEach(), anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, mpAffordanceCellControl, and ChannelView::Reparent().
|
inline |
Definition at line 154 of file WaveChannelView.h.
Referenced by SpectrumPrefs::Rollback(), and SubViewAdjuster::UpdateViews().
|
inline |
Definition at line 152 of file WaveChannelView.h.
Referenced by CopyTo(), SpectrumPrefs::SpectrumPrefs(), and SubViewAdjuster::SubViewAdjuster().
bool WaveChannelView::SelectAllText | ( | AudacityProject & | project | ) |
Definition at line 1514 of file WaveChannelView.cpp.
References anonymous_namespace{WaveChannelView.cpp}::AnyAffordance(), WaveTrackAffordanceControls::OnTextSelect(), and project.
|
private |
Definition at line 1207 of file WaveChannelView.cpp.
References FindWaveChannel(), forward, TrackFocus::Get(), ProjectHistory::Get(), PitchAndSpeedDialog::Get(), ProjectHistory::ModifyState(), anonymous_namespace{WaveChannelView.cpp}::NextClipLooped(), project, PitchAndSpeedDialog::Retarget(), ViewInfo::selectedRegion, NotifyingSelectedRegion::setTimes(), WaveChannelUtilities::SortedClipArray(), and XP.
Referenced by KeyDown().
void WaveChannelView::SetDisplay | ( | Display | display, |
bool | exclusive = true |
||
) |
Definition at line 1081 of file WaveChannelView.cpp.
References BuildSubViews(), and DoSetDisplay().
Referenced by WaveformPrefs::Commit(), and WaveTrackMenuTable::OnSetDisplay().
|
inline |
Definition at line 169 of file WaveChannelView.h.
bool WaveChannelView::ToggleSubView | ( | Display | id | ) |
Definition at line 1087 of file WaveChannelView.cpp.
References DoGetPlacements(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::FindIf(), GetDisplays(), WaveChannelSubViewType::id, ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::size(), and WaveChannelSubView::SubViewType().
|
staticconstexpr |
Definition at line 105 of file WaveChannelView.h.
Referenced by WaveChannelSubView::DoDetailedHitTest().
|
private |
Definition at line 251 of file WaveChannelView.h.
|
private |
Definition at line 249 of file WaveChannelView.h.
Referenced by CaptureKey(), Char(), KeyDown(), and LoseFocus().
|
mutableprivate |
Definition at line 240 of file WaveChannelView.h.
|
private |
Definition at line 247 of file WaveChannelView.h.
Referenced by DoGetAffordance(), and Reparent().