diff options
author | sr55 <[email protected]> | 2010-11-07 18:46:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-11-07 18:46:56 +0000 |
commit | 49d822742b2035d1f03378bafa0c41b16e453cdf (patch) | |
tree | cf6303d9626bda9b880422eb0d09cbaad6460d94 /win/C#/frmPreview.cs | |
parent | eb25aaa29fa9295286d22be6fd7b2f568e9af063 (diff) |
WinGui:
- Collaspe the preview window if QT is not installed. Hide the QuickTime playback options.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3659 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmPreview.cs')
-rw-r--r-- | win/C#/frmPreview.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index bbf8c78e4..3a8a2207c 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -10,6 +10,7 @@ namespace Handbrake using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
+ using System.Windows;
using System.Windows.Forms;
using Functions;
@@ -19,6 +20,8 @@ namespace Handbrake using QTOControlLib;
using QTOLibrary;
+ using MessageBox = System.Windows.Forms.MessageBox;
+
/// <summary>
/// The Preview Window
/// </summary>
@@ -73,6 +76,13 @@ namespace Handbrake catch (Exception)
{
this.noQt = true;
+
+ int borderWidth = (this.Width - this.ClientSize.Width) / 2;
+ int titlebarAndBorder = this.Height - this.ClientSize.Height;
+
+ this.Height = toolBar.Height + titlebarAndBorder + 1;
+ btn_playQT.Enabled = false;
+ btn_playQT.Visible = false;
}
this.mainWindow = mw;
@@ -400,7 +410,7 @@ namespace Handbrake QTControl.Show();
this.ClientSize = QTControl.Size;
- this.Height += 25;
+ this.Height += toolBar.Height;
}
catch (COMException ex)
{
|