diff options
author | sr55 <[email protected]> | 2009-06-29 20:05:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-29 20:05:04 +0000 |
commit | fafb7a774fba159de59fd54e5bf10b53a2382f7d (patch) | |
tree | 7e6ec763fb01a49e12f204dbfe3ca011557d3979 /win/C#/Controls/PictureSettings.cs | |
parent | 36d3b711916f38c606a4ed5db77608a07d5efbbe (diff) |
WinGui:
- Added Global Event Handlers to parts of some of the user controls.
- Added register and deregister event handler functions for widget changes. (This allows the preset label to be changed to custom when a user changes a widget). This isn't finalised.
- Misc UI tweaks
- Few bug fixes:
* Preset update notification appearing behind splashscreen
* Tweaks to the preset loader to make it work a bit better.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2640 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index c35c2fa51..e490c2e63 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -1,5 +1,4 @@ using System;
-using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using Handbrake.Parsing;
@@ -24,6 +23,8 @@ namespace Handbrake.Controls private Boolean looseAnamorphicHeightGuard;
private Boolean heightModJumpGaurd;
+ public event EventHandler PictureSettingsChanged;
+
// Window Setup
public PictureSettings()
{
@@ -112,7 +113,9 @@ namespace Handbrake.Controls customAnamorphic(text_width);
break;
}
-
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
private void text_height_ValueChanged(object sender, EventArgs e)
{
@@ -160,6 +163,10 @@ namespace Handbrake.Controls heightChangeGuard = false;
looseAnamorphicHeightGuard = false;
heightModJumpGaurd = false;
+
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
private void check_KeepAR_CheckedChanged(object sender, EventArgs e)
{
@@ -254,6 +261,10 @@ namespace Handbrake.Controls break;
}
+
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
// Custom Anamorphic Controls
|