diff options
author | sr55 <[email protected]> | 2008-09-09 19:01:38 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-09-09 19:01:38 +0000 |
commit | ebf4b4d663b9eeeed5d9632b5a2076355cff7145 (patch) | |
tree | 50d33a1d0b661a9840b6bee3666949803306b339 /win | |
parent | 69699d2343472ad6fd1af454abd213e71287cb25 (diff) |
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://svn.handbrake.fr/HandBrake/trunk@1684 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/frmMain.Designer.cs | 12 | ||||
-rw-r--r-- | win/C#/frmMain.cs | 5 | ||||
-rw-r--r-- | win/C#/frmMain.resx | 6 |
3 files changed, 12 insertions, 11 deletions
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index 4ece9098a..768db1111 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 bd51c7da6..323d49f8e 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 d0c9f18a9..1b5323eb3 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!</value>
</data>
- <metadata name="number.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="name.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="DVD_Open.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>223, 15</value>
</metadata>
|