diff options
author | sr55 <[email protected]> | 2009-09-24 21:22:53 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-09-24 21:22:53 +0000 |
commit | 7d3099c1490d3ff43c220218fadf2c97afd043a2 (patch) | |
tree | d39ba87b90a318e0ac97f8ff9dc0721943094683 /win/C# | |
parent | d4dfa80f7c75c0d21d442c74b00494cda6174de3 (diff) |
WinGui:
- Video Preview window is not forced to topMost. Stops VLC window appearing below it.
- Double click the max width label to switch to standard (-w) width
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2838 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Controls/PictureSettings.Designer.cs | 1 | ||||
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 8 | ||||
-rw-r--r-- | win/C#/frmPreview.Designer.cs | 9 |
3 files changed, 13 insertions, 5 deletions
diff --git a/win/C#/Controls/PictureSettings.Designer.cs b/win/C#/Controls/PictureSettings.Designer.cs index 853d61982..30a893392 100644 --- a/win/C#/Controls/PictureSettings.Designer.cs +++ b/win/C#/Controls/PictureSettings.Designer.cs @@ -386,6 +386,7 @@ namespace Handbrake.Controls this.lbl_max.Size = new System.Drawing.Size(15, 13);
this.lbl_max.TabIndex = 83;
this.lbl_max.Text = "--";
+ this.lbl_max.DoubleClick += new System.EventHandler(this.lbl_max_DoubleClick);
//
// label4
//
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index eed7ba560..70273cc64 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -489,5 +489,13 @@ namespace Handbrake.Controls if (remainder == 0) return value;
return (value + remainder);
}
+
+ // Hidden UI feature to drop the MaxWidth / Height with the MaxWidth/Height label is double clicked
+ private void lbl_max_DoubleClick(object sender, EventArgs e)
+ {
+ PresetMaximumResolution = new Size(0,0);
+ if (PictureSettingsChanged != null)
+ PictureSettingsChanged(this, new EventArgs());
+ }
}
}
\ No newline at end of file diff --git a/win/C#/frmPreview.Designer.cs b/win/C#/frmPreview.Designer.cs index cbbf5e539..14a90a937 100644 --- a/win/C#/frmPreview.Designer.cs +++ b/win/C#/frmPreview.Designer.cs @@ -68,7 +68,7 @@ //
this.lbl_preview.BackColor = System.Drawing.Color.Transparent;
this.lbl_preview.Name = "lbl_preview";
- this.lbl_preview.Size = new System.Drawing.Size(91, 22);
+ this.lbl_preview.Size = new System.Drawing.Size(89, 22);
this.lbl_preview.Text = "Start at Preview:";
//
// cb_preview
@@ -95,7 +95,7 @@ //
this.toolStripLabel2.BackColor = System.Drawing.Color.Transparent;
this.toolStripLabel2.Name = "toolStripLabel2";
- this.toolStripLabel2.Size = new System.Drawing.Size(107, 22);
+ this.toolStripLabel2.Size = new System.Drawing.Size(98, 22);
this.toolStripLabel2.Text = "Duration (seconds)";
//
// cb_duration
@@ -127,7 +127,7 @@ this.btn_playQT.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.btn_playQT.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btn_playQT.Name = "btn_playQT";
- this.btn_playQT.Size = new System.Drawing.Size(96, 22);
+ this.btn_playQT.Size = new System.Drawing.Size(89, 22);
this.btn_playQT.Text = "Play with QT";
this.btn_playQT.Click += new System.EventHandler(this.btn_playQT_Click);
//
@@ -137,7 +137,7 @@ this.btn_playVLC.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.btn_playVLC.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btn_playVLC.Name = "btn_playVLC";
- this.btn_playVLC.Size = new System.Drawing.Size(101, 22);
+ this.btn_playVLC.Size = new System.Drawing.Size(93, 22);
this.btn_playVLC.Text = "Play with VLC";
this.btn_playVLC.Click += new System.EventHandler(this.btn_playVLC_Click);
//
@@ -188,7 +188,6 @@ this.Name = "frmPreview";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Video Preview";
- this.TopMost = true;
this.toolBar.ResumeLayout(false);
this.toolBar.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.QTControl)).EndInit();
|