mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Visual sync "Sync done" message is not longer as messagebox, but just a label (one less click) - thx Arjen :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1345 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
2654d7aa88
commit
82b58d938e
18
src/Forms/VisualSync.Designer.cs
generated
18
src/Forms/VisualSync.Designer.cs
generated
@ -58,6 +58,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.labelTip = new System.Windows.Forms.Label();
|
||||
this.timerProgressBarRefresh = new System.Windows.Forms.Timer(this.components);
|
||||
this.labelSyncDone = new System.Windows.Forms.Label();
|
||||
this.groupBoxStartScene.SuspendLayout();
|
||||
this.panelControlsStart.SuspendLayout();
|
||||
this.groupBoxEndScene.SuspendLayout();
|
||||
@ -111,6 +112,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
this.MediaPlayerStart.FontSizeFactor = 1F;
|
||||
this.MediaPlayerStart.Location = new System.Drawing.Point(6, 34);
|
||||
this.MediaPlayerStart.Name = "MediaPlayerStart";
|
||||
this.MediaPlayerStart.ShowFullscreenButton = true;
|
||||
this.MediaPlayerStart.ShowMuteButton = true;
|
||||
this.MediaPlayerStart.ShowStopButton = true;
|
||||
this.MediaPlayerStart.Size = new System.Drawing.Size(450, 287);
|
||||
this.MediaPlayerStart.SubtitleText = "";
|
||||
@ -215,6 +218,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
this.MediaPlayerEnd.FontSizeFactor = 1F;
|
||||
this.MediaPlayerEnd.Location = new System.Drawing.Point(6, 34);
|
||||
this.MediaPlayerEnd.Name = "MediaPlayerEnd";
|
||||
this.MediaPlayerEnd.ShowFullscreenButton = true;
|
||||
this.MediaPlayerEnd.ShowMuteButton = true;
|
||||
this.MediaPlayerEnd.ShowStopButton = true;
|
||||
this.MediaPlayerEnd.Size = new System.Drawing.Size(438, 287);
|
||||
this.MediaPlayerEnd.SubtitleText = "";
|
||||
@ -364,11 +369,23 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
//
|
||||
this.timerProgressBarRefresh.Tick += new System.EventHandler(this.timerProgressBarRefresh_Tick);
|
||||
//
|
||||
// labelSyncDone
|
||||
//
|
||||
this.labelSyncDone.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||
this.labelSyncDone.AutoSize = true;
|
||||
this.labelSyncDone.ForeColor = System.Drawing.Color.Gray;
|
||||
this.labelSyncDone.Location = new System.Drawing.Point(546, 502);
|
||||
this.labelSyncDone.Name = "labelSyncDone";
|
||||
this.labelSyncDone.Size = new System.Drawing.Size(77, 13);
|
||||
this.labelSyncDone.TabIndex = 16;
|
||||
this.labelSyncDone.Text = "labelSyncDone";
|
||||
//
|
||||
// VisualSync
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(927, 525);
|
||||
this.Controls.Add(this.labelSyncDone);
|
||||
this.Controls.Add(this.buttonSync);
|
||||
this.Controls.Add(this.labelTip);
|
||||
this.Controls.Add(this.groupBoxMovieInfo);
|
||||
@ -431,5 +448,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private Nikse.SubtitleEdit.Controls.VideoPlayerContainer MediaPlayerEnd;
|
||||
private System.Windows.Forms.Label labelTip;
|
||||
private System.Windows.Forms.Timer timerProgressBarRefresh;
|
||||
private System.Windows.Forms.Label labelSyncDone;
|
||||
}
|
||||
}
|
@ -24,6 +24,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
double _endStopPosition = -1.0;
|
||||
readonly LanguageStructure.VisualSync _language;
|
||||
readonly LanguageStructure.General _languageGeneral;
|
||||
Timer timerHideSyncLabel = new Timer();
|
||||
|
||||
public string VideoFileName { get; set; }
|
||||
public int AudioTrackNumber { get; set; }
|
||||
@ -59,6 +60,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
MediaPlayerStart.InitializeVolume(Configuration.Settings.General.VideoPlayerDefaultVolume);
|
||||
MediaPlayerEnd.InitializeVolume(Configuration.Settings.General.VideoPlayerDefaultVolume);
|
||||
|
||||
labelSyncDone.Text = string.Empty;
|
||||
_language = Configuration.Settings.Language.VisualSync;
|
||||
_languageGeneral = Configuration.Settings.Language.General;
|
||||
Text = _language.Title;
|
||||
@ -82,6 +84,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
|
||||
labelTip.Text = _language.Tip;
|
||||
FixLargeFonts();
|
||||
timerHideSyncLabel.Tick += new EventHandler(timerHideSyncLabel_Tick);
|
||||
timerHideSyncLabel.Interval = 1000;
|
||||
}
|
||||
|
||||
void timerHideSyncLabel_Tick(object sender, EventArgs e)
|
||||
{
|
||||
labelSyncDone.Text = string.Empty;
|
||||
}
|
||||
|
||||
private void FixLargeFonts()
|
||||
@ -265,6 +274,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
private void FormVisualSync_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
timerHideSyncLabel.Stop();
|
||||
labelSyncDone.Text = string.Empty;
|
||||
timer1.Stop();
|
||||
timerProgressBarRefresh.Stop();
|
||||
if (MediaPlayerStart != null)
|
||||
@ -428,7 +439,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
comboBoxStartTexts.SelectedIndex = startSaveIdx;
|
||||
comboBoxEndTexts.SelectedIndex = endSaveIdx;
|
||||
|
||||
MessageBox.Show(_language.SynchronizationDone, "", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
labelSyncDone.Text = _language.SynchronizationDone;
|
||||
timerHideSyncLabel.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user