From 754e130f3401e2ff630d2746b5f99ea66330f119 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 1 Aug 2008 18:15:19 +0000 Subject: WinGui: - Changed the layout of the Options window. - Added a "Stop" button to stop encodes. - Moved Encode status label onto a status bar at the bottom of the window. Now includes scanning status. - Added and Removed some png images git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1600 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmOptions.cs | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'win/C#/frmOptions.cs') diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 66e5460d5..a314046e4 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -16,45 +16,41 @@ namespace Handbrake { public partial class frmOptions : Form { + private frmMain mainWindow; /// /// When the form loads, Initialise all the setting components with their correct values /// - public frmOptions() + public frmOptions(frmMain window) { InitializeComponent(); + mainWindow = window; + + // Enable Tooltips. + if (Properties.Settings.Default.tooltipEnable == "Checked") + ToolTip.Active = true; + // Setup Widgets to match settings. if (Properties.Settings.Default.updateStatus == "Checked") - { check_updateCheck.CheckState = CheckState.Checked; - } if (Properties.Settings.Default.defaultSettings == "Checked") - { check_userDefaultSettings.CheckState = CheckState.Checked; - } + drp_processors.Text = Properties.Settings.Default.Processors; drp_Priority.Text = Properties.Settings.Default.processPriority; drp_completeOption.Text = Properties.Settings.Default.CompletionOption; if (Properties.Settings.Default.tooltipEnable == "Checked") - { check_tooltip.CheckState = CheckState.Checked; - } if (Properties.Settings.Default.autoNaming == "Checked") - { check_autoNaming.CheckState = CheckState.Checked; - } if (Properties.Settings.Default.drive_detection == "Checked") - { btn_drive_detect.CheckState = CheckState.Checked; - } if (Properties.Settings.Default.cli_minimized == "Checked") - { check_cli_minimized.CheckState = CheckState.Checked; - } text_an_path.Text = Properties.Settings.Default.autoNamePath; @@ -92,6 +88,16 @@ namespace Handbrake private void check_tooltip_CheckedChanged(object sender, EventArgs e) { Properties.Settings.Default.tooltipEnable = check_tooltip.CheckState.ToString(); + if (check_tooltip.Checked) + { + ToolTip.Active = true; + mainWindow.ToolTip.Active = true; + } + else + { + ToolTip.Active = false; + mainWindow.ToolTip.Active = false; + } } private void drp_completeOption_SelectedIndexChanged(object sender, EventArgs e) @@ -132,5 +138,6 @@ namespace Handbrake } #endregion + } } \ No newline at end of file -- cgit v1.2.3