Merge pull request #7142 from ivandrofly/feature/main-clean

Remove redundant UI control methods
This commit is contained in:
Nikolaj Olsson 2023-07-23 09:58:31 -04:00 committed by GitHub
commit db060c77be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22976,36 +22976,6 @@ namespace Nikse.SubtitleEdit.Forms
ShowSubtitle();
}
private void ButtonStartHalfASecondBackClick(object sender, EventArgs e)
{
GoBackSeconds(0.5);
}
private void ButtonStartThreeSecondsBackClick(object sender, EventArgs e)
{
GoBackSeconds(3.0);
}
private void ButtonStartOneMinuteBackClick(object sender, EventArgs e)
{
GoBackSeconds(60);
}
private void ButtonStartHalfASecondAheadClick(object sender, EventArgs e)
{
GoBackSeconds(-0.5);
}
private void ButtonStartThreeSecondsAheadClick(object sender, EventArgs e)
{
GoBackSeconds(-3);
}
private void ButtonStartOneMinuteAheadClick(object sender, EventArgs e)
{
GoBackSeconds(-60);
}
private void ShowSubtitleTimerTick(object sender, EventArgs e)
{
if (_loading)
@ -26965,30 +26935,6 @@ namespace Nikse.SubtitleEdit.Forms
}
}
private void buttonWaveformZoomIn_Click(object sender, EventArgs e)
{
if (audioVisualizer.WavePeaks != null && audioVisualizer.Visible)
{
audioVisualizer.ZoomFactor += 0.1;
}
}
private void buttonWaveformZoomOut_Click(object sender, EventArgs e)
{
if (audioVisualizer.WavePeaks != null && audioVisualizer.Visible)
{
audioVisualizer.ZoomFactor -= 0.1;
}
}
private void buttonWaveformZoomReset_Click(object sender, EventArgs e)
{
if (audioVisualizer.WavePeaks != null && audioVisualizer.Visible)
{
audioVisualizer.ZoomFactor = 1.0;
}
}
private void toolStripMenuItemWaveformPlaySelection_Click(object sender, EventArgs e)
{
WaveformPlaySelection();
@ -28598,11 +28544,6 @@ namespace Nikse.SubtitleEdit.Forms
Main_ResizeEnd(null, null);
}
private void Bw_DoWork(object sender, DoWorkEventArgs e)
{
System.Threading.Thread.Sleep(1200);
}
internal void SetWaveformToggleOff()
{
toolStripButtonToggleWaveform.Checked = false;
@ -29263,11 +29204,6 @@ namespace Nikse.SubtitleEdit.Forms
ClipboardSetText(selectedLines.ToText(GetCurrentSubtitleFormat()).TrimEnd());
}
public void PlayPause()
{
mediaPlayer.TogglePlayPause();
}
public void SetEndMinusGapAndStartNextHere(int index)
{
var p = _subtitle.GetParagraphOrDefault(index);