mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added marquee progress bar
This commit is contained in:
parent
1e3c20b582
commit
5b2c10c185
2 changed files with 18 additions and 2 deletions
12
ShareX.MediaLib/Forms/VideoConverterForm.Designer.cs
generated
12
ShareX.MediaLib/Forms/VideoConverterForm.Designer.cs
generated
|
@ -44,6 +44,7 @@ private void InitializeComponent()
|
||||||
this.lblCLI = new System.Windows.Forms.Label();
|
this.lblCLI = new System.Windows.Forms.Label();
|
||||||
this.txtCLI = new System.Windows.Forms.TextBox();
|
this.txtCLI = new System.Windows.Forms.TextBox();
|
||||||
this.lblVideoQualityUnit = new System.Windows.Forms.Label();
|
this.lblVideoQualityUnit = new System.Windows.Forms.Label();
|
||||||
|
this.pbProgress = new System.Windows.Forms.ProgressBar();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudVideoQuality)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudVideoQuality)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
|
@ -191,6 +192,15 @@ private void InitializeComponent()
|
||||||
this.lblVideoQualityUnit.TabIndex = 15;
|
this.lblVideoQualityUnit.TabIndex = 15;
|
||||||
this.lblVideoQualityUnit.Text = "CRF";
|
this.lblVideoQualityUnit.Text = "CRF";
|
||||||
//
|
//
|
||||||
|
// pbProgress
|
||||||
|
//
|
||||||
|
this.pbProgress.Location = new System.Drawing.Point(16, 264);
|
||||||
|
this.pbProgress.MarqueeAnimationSpeed = 50;
|
||||||
|
this.pbProgress.Name = "pbProgress";
|
||||||
|
this.pbProgress.Size = new System.Drawing.Size(424, 24);
|
||||||
|
this.pbProgress.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
|
||||||
|
this.pbProgress.TabIndex = 16;
|
||||||
|
//
|
||||||
// VideoConverterForm
|
// VideoConverterForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -213,6 +223,7 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.btnInputFilePathBrowse);
|
this.Controls.Add(this.btnInputFilePathBrowse);
|
||||||
this.Controls.Add(this.txtInputFilePath);
|
this.Controls.Add(this.txtInputFilePath);
|
||||||
this.Controls.Add(this.lblInputFilePath);
|
this.Controls.Add(this.lblInputFilePath);
|
||||||
|
this.Controls.Add(this.pbProgress);
|
||||||
this.Name = "VideoConverterForm";
|
this.Name = "VideoConverterForm";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "ShareX - Video converter";
|
this.Text = "ShareX - Video converter";
|
||||||
|
@ -240,5 +251,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.Label lblCLI;
|
private System.Windows.Forms.Label lblCLI;
|
||||||
private System.Windows.Forms.TextBox txtCLI;
|
private System.Windows.Forms.TextBox txtCLI;
|
||||||
private System.Windows.Forms.Label lblVideoQualityUnit;
|
private System.Windows.Forms.Label lblVideoQualityUnit;
|
||||||
|
private System.Windows.Forms.ProgressBar pbProgress;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -147,11 +147,15 @@ private void nudVideoQuality_ValueChanged(object sender, EventArgs e)
|
||||||
|
|
||||||
private async void btnEncode_Click(object sender, EventArgs e)
|
private async void btnEncode_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
btnEncode.Enabled = false;
|
UpdateOptions();
|
||||||
|
|
||||||
|
pbProgress.Visible = true;
|
||||||
|
btnEncode.Visible = false;
|
||||||
|
|
||||||
await StartEncodingAsync();
|
await StartEncodingAsync();
|
||||||
|
|
||||||
btnEncode.Enabled = true;
|
btnEncode.Visible = true;
|
||||||
|
pbProgress.Visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue