Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions | Variables
WaveTrackView.cpp File Reference
#include "WaveTrackView.h"
#include <unordered_set>
#include "CutlineHandle.h"
#include <numeric>
#include <wx/dc.h>
#include <wx/graphics.h>
#include "AColor.h"
#include "../../../../WaveClip.h"
#include "../../../../WaveTrack.h"
#include "../../../../../images/Cursors.h"
#include "AllThemeResources.h"
#include "../../../../commands/CommandContext.h"
#include "../../../../HitTestResult.h"
#include "ProjectHistory.h"
#include "../../../../RefreshCode.h"
#include "../../../../SyncLock.h"
#include "../../../../TrackArtist.h"
#include "../../../../TrackPanel.h"
#include "../../../../TrackPanelAx.h"
#include "../../../../TrackPanelDrawingContext.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "../../../../TrackPanelResizeHandle.h"
#include "ViewInfo.h"
#include "../../../../prefs/TracksPrefs.h"
#include "../../../ui/TimeShiftHandle.h"
#include "../../../ui/ButtonHandle.h"
#include "../../../../TrackInfo.h"
#include "../WaveTrackUtils.h"
#include "WaveTrackAffordanceControls.h"
#include "WaveTrackAffordanceHandle.h"
#include "WaveClipTrimHandle.h"
Include dependency graph for WaveTrackView.cpp:

Go to the source code of this file.

Classes

struct  SubViewAdjuster
 
class  SubViewAdjustHandle
 
class  SubViewRearrangeHandle
 
class  SubViewCloseHandle
 

Namespaces

namespace  anonymous_namespace{WaveTrackView.cpp}
 

Typedefs

using WaveTrackSubViewPtrs = std::vector< std::shared_ptr< WaveTrackSubView > >
 
using DoGetWaveTrackView = DoGetView::Override< WaveTrack >
 
using GetWaveTrackSyncLockPolicy = GetSyncLockPolicy::Override< const WaveTrack >
 

Functions

template<typename Iter , typename Comp >
const WaveClipanonymous_namespace{WaveTrackView.cpp}::NextClipLooped (ViewInfo &viewInfo, Iter begin, Iter end, Comp comp)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (DoGetWaveTrackView)
 
double anonymous_namespace{WaveTrackView.cpp}::CalculateAdjustmentForZoomLevel (const wxRect &viewRect, const ZoomInfo &zoomInfo, int rate, double &outAveragePPS, bool &outShowSamples)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (GetWaveTrackSyncLockPolicy)
 

Variables

constexpr int kClipDetailedViewMinimumWidth { 3 }
 

Typedef Documentation

◆ DoGetWaveTrackView

Definition at line 1453 of file WaveTrackView.cpp.

◆ GetWaveTrackSyncLockPolicy

Definition at line 1719 of file WaveTrackView.cpp.

◆ WaveTrackSubViewPtrs

using WaveTrackSubViewPtrs = std::vector< std::shared_ptr< WaveTrackSubView > >

Definition at line 54 of file WaveTrackView.cpp.

Function Documentation

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE() [1/2]

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( DoGetWaveTrackView  )

Definition at line 1454 of file WaveTrackView.cpp.

1454 {
1455 return [](WaveTrack &track) {
1456 return std::make_shared<WaveTrackView>( track.SharedPointer() );
1457 };
1458}
A Track that contains audio waveform data.
Definition: WaveTrack.h:57

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE() [2/2]

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( GetWaveTrackSyncLockPolicy  )

Definition at line 1721 of file WaveTrackView.cpp.

1721 {
1722 return [](auto &) { return SyncLockPolicy::Grouped; };
1723}
@ Grouped
Can be part of a group.

References Grouped.

Variable Documentation

◆ kClipDetailedViewMinimumWidth

constexpr int kClipDetailedViewMinimumWidth { 3 }
constexpr