Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions | Variables
WaveChannelView.cpp File Reference
#include "WaveChannelView.h"
#include <unordered_set>
#include "CutlineHandle.h"
#include <numeric>
#include <wx/dc.h>
#include <wx/graphics.h>
#include "AColor.h"
#include "WaveTrack.h"
#include "../../../../../images/Cursors.h"
#include "AllThemeResources.h"
#include "../../../../HitTestResult.h"
#include "../../../../RefreshCode.h"
#include "../../../../TrackArtist.h"
#include "../../../../TrackPanel.h"
#include "../../../../TrackPanelDrawingContext.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "../../../../TrackPanelResizeHandle.h"
#include "../../../../prefs/TracksPrefs.h"
#include "CommandContext.h"
#include "PitchAndSpeedDialog.h"
#include "ProjectHistory.h"
#include "SyncLock.h"
#include "TrackFocus.h"
#include "ViewInfo.h"
#include "../../../ui/TimeShiftHandle.h"
#include "../../../ui/ButtonHandle.h"
#include "../../../ui/CommonTrackInfo.h"
#include "ClipParameters.h"
#include "WaveChannelUtilities.h"
#include "WaveTrackAffordanceControls.h"
#include "WaveTrackAffordanceHandle.h"
#include "WaveTrackUtilities.h"
#include "WaveClipAdjustBorderHandle.h"
#include "WaveClipUIUtilities.h"
Include dependency graph for WaveChannelView.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{WaveChannelView.cpp}::PlacementArray
 
struct  SubViewAdjuster
 
class  SubViewAdjustHandle
 
class  SubViewRearrangeHandle
 
class  SubViewCloseHandle
 

Namespaces

namespace  anonymous_namespace{WaveChannelView.cpp}
 

Typedefs

using WaveChannelSubViewPtrs = std::vector< std::shared_ptr< WaveChannelSubView > >
 
using anonymous_namespace{WaveChannelView.cpp}::PMF = bool(WaveTrackAffordanceControls::*)(AudacityProject &)
 
using DoGetWaveChannelView = DoGetView::Override< WaveTrack >
 
using GetWaveTrackSyncLockPolicy = GetSyncLockPolicy::Override< const WaveTrack >
 

Functions

template<typename Iter >
Iter anonymous_namespace{WaveChannelView.cpp}::SelectedClip (const ViewInfo &viewInfo, Iter begin, Iter end)
 
template<typename Iter , typename Comp >
std::shared_ptr< WaveChannelIntervalanonymous_namespace{WaveChannelView.cpp}::NextClipLooped (ViewInfo &viewInfo, Iter begin, Iter end, Comp comp)
 
bool anonymous_namespace{WaveChannelView.cpp}::AnyAffordance (AudacityProject &project, WaveChannelView &view, PMF pmf)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (DoGetWaveChannelView)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (GetWaveTrackSyncLockPolicy)
 

Variables

constexpr int kClipDetailedViewMinimumWidth { 3 }
 
static const ChannelGroup::Attachments::RegisteredFactory anonymous_namespace{WaveChannelView.cpp}::key { [](auto &) { return std::make_unique<PlacementArray>(); } }
 

Typedef Documentation

◆ DoGetWaveChannelView

Definition at line 1565 of file WaveChannelView.cpp.

◆ GetWaveTrackSyncLockPolicy

Definition at line 1646 of file WaveChannelView.cpp.

◆ WaveChannelSubViewPtrs

using WaveChannelSubViewPtrs = std::vector<std::shared_ptr<WaveChannelSubView> >

Definition at line 56 of file WaveChannelView.cpp.

Function Documentation

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE() [1/2]

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( DoGetWaveChannelView  )

Definition at line 1566 of file WaveChannelView.cpp.

1566 {
1567 return [](WaveTrack &track, size_t iChannel) {
1568 auto channels = track.Channels();
1569 assert(iChannel < channels.size());
1570 auto &iter = channels.first;
1571 std::advance(iter, iChannel);
1572 return std::make_shared<WaveChannelView>(*iter);
1573 };
1574}
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
auto Channels()
Definition: WaveTrack.h:263

References WaveTrack::Channels(), and anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel.

Here is the call graph for this function:

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE() [2/2]

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( GetWaveTrackSyncLockPolicy  )

Definition at line 1648 of file WaveChannelView.cpp.

1648 {
1649 return [](auto &) { return SyncLockPolicy::Grouped; };
1650}
@ Grouped
Can be part of a group.

References Grouped.

Variable Documentation

◆ kClipDetailedViewMinimumWidth

constexpr int kClipDetailedViewMinimumWidth { 3 }
constexpr