The following methods operate controls on specified tracks, This will pop up the track panning dialog for specified track
| 928 | ///The following methods operate controls on specified tracks, |
| 929 | ///This will pop up the track panning dialog for specified track |
| 930 | void 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 | |
| 943 | void OnTrackPanLeft(const CommandContext &context) |
| 944 | { |
nothing calls this directly
no test coverage detected