MCPcopy Create free account
hub / github.com/audacity/audacity / OnTrackPan

Function OnTrackPan

src/menus/TrackMenus.cpp:930–941  ·  view source on GitHub ↗

The following methods operate controls on specified tracks, This will pop up the track panning dialog for specified track

Source from the content-addressed store, hash-verified

928///The following methods operate controls on specified tracks,
929///This will pop up the track panning dialog for specified track
930void OnTrackPan(const CommandContext &context)
931{
932 auto &project = context.project;
933 auto &trackPanel = TrackPanel::Get( project );
934
935 const auto track = TrackFocus::Get( project ).Get();
936 if (track) track->TypeSwitch( [&](WaveTrack &wt) {
937 LWSlider *slider = WaveTrackControls::PanSlider( trackPanel, wt );
938 if (slider->ShowDialog())
939 SetTrackPan(project, &wt, slider);
940 });
941}
942
943void OnTrackPanLeft(const CommandContext &context)
944{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
SetTrackPanFunction · 0.85
GetMethod · 0.45
ShowDialogMethod · 0.45

Tested by

no test coverage detected