mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Merge pull request #7142 from ivandrofly/feature/main-clean
Remove redundant UI control methods
This commit is contained in:
commit
db060c77be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user