]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Thu, 24 Sep 2009 21:22:53 +0000 (21:22 +0000)
committersr55 <sr55.hb@outlook.com>
Thu, 24 Sep 2009 21:22:53 +0000 (21:22 +0000)
- 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

win/C#/Controls/PictureSettings.Designer.cs
win/C#/Controls/PictureSettings.cs
win/C#/frmPreview.Designer.cs

index 853d61982f96dac66fa530958cff362345c51a35..30a893392f0fb9175b957d03bc07e1ec445bdb74 100644 (file)
@@ -386,6 +386,7 @@ namespace Handbrake.Controls
             this.lbl_max.Size = new System.Drawing.Size(15, 13);\r
             this.lbl_max.TabIndex = 83;\r
             this.lbl_max.Text = "--";\r
+            this.lbl_max.DoubleClick += new System.EventHandler(this.lbl_max_DoubleClick);\r
             // \r
             // label4\r
             // \r
index eed7ba560e66246775511325bc83581723fc6a19..70273cc643d3d54168894e5fe5ccb36b9772f07e 100644 (file)
@@ -489,5 +489,13 @@ namespace Handbrake.Controls
             if (remainder == 0) return value;\r
             return (value + remainder);\r
         }\r
+\r
+        // Hidden UI feature to drop the MaxWidth / Height with the MaxWidth/Height label is double clicked\r
+        private void lbl_max_DoubleClick(object sender, EventArgs e)\r
+        {\r
+            PresetMaximumResolution = new Size(0,0);\r
+            if (PictureSettingsChanged != null)\r
+                PictureSettingsChanged(this, new EventArgs());\r
+        }\r
     }\r
 }
\ No newline at end of file
index cbbf5e5394a0e520688339d12f77f3ada32c684f..14a90a937319eb5a8927b685c3dab4ba46c59562 100644 (file)
@@ -68,7 +68,7 @@
             // \r
             this.lbl_preview.BackColor = System.Drawing.Color.Transparent;\r
             this.lbl_preview.Name = "lbl_preview";\r
-            this.lbl_preview.Size = new System.Drawing.Size(91, 22);\r
+            this.lbl_preview.Size = new System.Drawing.Size(89, 22);\r
             this.lbl_preview.Text = "Start at Preview:";\r
             // \r
             // cb_preview\r
@@ -95,7 +95,7 @@
             // \r
             this.toolStripLabel2.BackColor = System.Drawing.Color.Transparent;\r
             this.toolStripLabel2.Name = "toolStripLabel2";\r
-            this.toolStripLabel2.Size = new System.Drawing.Size(107, 22);\r
+            this.toolStripLabel2.Size = new System.Drawing.Size(98, 22);\r
             this.toolStripLabel2.Text = "Duration (seconds)";\r
             // \r
             // cb_duration\r
             this.btn_playQT.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
             this.btn_playQT.ImageTransparentColor = System.Drawing.Color.Magenta;\r
             this.btn_playQT.Name = "btn_playQT";\r
-            this.btn_playQT.Size = new System.Drawing.Size(96, 22);\r
+            this.btn_playQT.Size = new System.Drawing.Size(89, 22);\r
             this.btn_playQT.Text = "Play with QT";\r
             this.btn_playQT.Click += new System.EventHandler(this.btn_playQT_Click);\r
             // \r
             this.btn_playVLC.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
             this.btn_playVLC.ImageTransparentColor = System.Drawing.Color.Magenta;\r
             this.btn_playVLC.Name = "btn_playVLC";\r
-            this.btn_playVLC.Size = new System.Drawing.Size(101, 22);\r
+            this.btn_playVLC.Size = new System.Drawing.Size(93, 22);\r
             this.btn_playVLC.Text = "Play with VLC";\r
             this.btn_playVLC.Click += new System.EventHandler(this.btn_playVLC_Click);\r
             // \r
             this.Name = "frmPreview";\r
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
             this.Text = "Video Preview";\r
-            this.TopMost = true;\r
             this.toolBar.ResumeLayout(false);\r
             this.toolBar.PerformLayout();\r
             ((System.ComponentModel.ISupportInitialize)(this.QTControl)).EndInit();\r