From: sr55 Date: Tue, 9 Sep 2008 19:01:38 +0000 (+0000) Subject: WinGui: X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0e986ab5ee3a3e6b54923473123098e330037bba;p=handbrake-jp%2Fhandbrake-jp-git.git WinGui: - Fixed Crop values not set on title change. as per: http://forum.handbrake.fr/viewtopic.php?f=12&t=7050 git-svn-id: svn://localhost/HandBrake/trunk@1684 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index 4ece9098..768db111 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -38,7 +38,7 @@ namespace Handbrake System.Windows.Forms.Label Label38; System.Windows.Forms.ContextMenuStrip notifyIconMenu; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.btn_restore = new System.Windows.Forms.ToolStripMenuItem(); this.DVD_Save = new System.Windows.Forms.SaveFileDialog(); this.File_Save = new System.Windows.Forms.SaveFileDialog(); @@ -643,9 +643,9 @@ namespace Handbrake // // number // - dataGridViewCellStyle11.Format = "N0"; - dataGridViewCellStyle11.NullValue = null; - this.number.DefaultCellStyle = dataGridViewCellStyle11; + dataGridViewCellStyle1.Format = "N0"; + dataGridViewCellStyle1.NullValue = null; + this.number.DefaultCellStyle = dataGridViewCellStyle1; this.number.HeaderText = "Chapter Number"; this.number.MaxInputLength = 3; this.number.Name = "number"; @@ -1953,6 +1953,7 @@ namespace Handbrake // // text_bottom // + this.text_bottom.Enabled = false; this.text_bottom.Location = new System.Drawing.Point(96, 147); this.text_bottom.Maximum = new decimal(new int[] { 1080, @@ -1965,6 +1966,7 @@ namespace Handbrake // // text_top // + this.text_top.Enabled = false; this.text_top.Location = new System.Drawing.Point(96, 101); this.text_top.Maximum = new decimal(new int[] { 1080, @@ -1977,6 +1979,7 @@ namespace Handbrake // // text_left // + this.text_left.Enabled = false; this.text_left.Location = new System.Drawing.Point(45, 123); this.text_left.Maximum = new decimal(new int[] { 1920, @@ -1989,6 +1992,7 @@ namespace Handbrake // // text_right // + this.text_right.Enabled = false; this.text_right.Location = new System.Drawing.Point(147, 123); this.text_right.Maximum = new decimal(new int[] { 1920, diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index bd51c7da..323d49f8 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -477,7 +477,10 @@ namespace Handbrake lbl_duration.Text = selectedTitle.Duration.ToString(); // Set the Recommended Cropping values - //lbl_RecomendedCrop.Text = string.Format("{0}/{1}/{2}/{3}", selectedTitle.AutoCropDimensions[0], selectedTitle.AutoCropDimensions[1], selectedTitle.AutoCropDimensions[2], selectedTitle.AutoCropDimensions[3]); + text_top.Text = selectedTitle.AutoCropDimensions[0].ToString(); + text_bottom.Text = selectedTitle.AutoCropDimensions[1].ToString(); + text_left.Text = selectedTitle.AutoCropDimensions[2].ToString(); + text_right.Text = selectedTitle.AutoCropDimensions[3].ToString(); // Populate the Start chapter Dropdown drop_chapterStart.Items.Clear(); diff --git a/win/C#/frmMain.resx b/win/C#/frmMain.resx index d0c9f18a..1b5323eb 100644 --- a/win/C#/frmMain.resx +++ b/win/C#/frmMain.resx @@ -155,12 +155,6 @@ Make sure you have selected a "Title" from the "Source" box above otherwise the list will not be populated with the correct amount of chapters. Note: Do not change any of the chapter numbers! - - True - - - True - 223, 15