summaryrefslogtreecommitdiffstats
path: root/win/C#/frmOptions.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-08-01 18:15:19 +0000
committersr55 <[email protected]>2008-08-01 18:15:19 +0000
commit754e130f3401e2ff630d2746b5f99ea66330f119 (patch)
tree64dc4230cae7a2c1e71512fc39742fa21ee5a358 /win/C#/frmOptions.cs
parent7dde8068656d19ee95b0b9231e53d1c669806efe (diff)
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
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r--win/C#/frmOptions.cs33
1 files changed, 20 insertions, 13 deletions
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;
/// <summary>
/// When the form loads, Initialise all the setting components with their correct values
/// </summary>
- 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