diff options
author | sr55 <[email protected]> | 2011-04-16 15:21:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-16 15:21:42 +0000 |
commit | 680ed831fb94849f57565665ed4f467f2d3283e5 (patch) | |
tree | 784b72fd4521cf5fc21b097a406d56051f5cd5c5 /win/CS/HandBrake.ApplicationServices | |
parent | a05f96f954d41c88f91b1a254f8fa6982cb0e86b (diff) |
WinGui:
- Moved DRC onto the advanced audio panel and tweaked the UI slightly.
- Updated to Stylecop 4.5
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3934 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
3 files changed, 30 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj b/win/CS/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj index 7f4592241..65a1b3e5f 100644 --- a/win/CS/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj +++ b/win/CS/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj @@ -180,7 +180,7 @@ </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.4\Microsoft.StyleCop.targets" />
+ <Import Project="$(ProgramFiles)\MSBuild\StyleCop\v4.5\StyleCop.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs index a6db51572..159beb8e8 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs @@ -15,6 +15,11 @@ namespace HandBrake.ApplicationServices.Model.Encoding /// The gain value
/// </summary>
private int gain;
+
+ /// <summary>
+ /// The DRC Value
+ /// </summary>
+ private double drc;
#endregion
/// <summary>
@@ -99,7 +104,21 @@ namespace HandBrake.ApplicationServices.Model.Encoding /// <summary>
/// Gets or sets Dynamic Range Compression
/// </summary>
- public double DRC { get; set; }
+ public double DRC
+ {
+ get
+ {
+ return this.drc;
+ }
+ set
+ {
+ if (!object.Equals(value, this.drc))
+ {
+ this.drc = value;
+ this.OnPropertyChanged("DRC");
+ }
+ }
+ }
/// <summary>
/// Gets or sets the Gain for the audio track
diff --git a/win/CS/HandBrake.ApplicationServices/Settings.StyleCop b/win/CS/HandBrake.ApplicationServices/Settings.StyleCop index 7f55ce6c6..c8383e569 100644 --- a/win/CS/HandBrake.ApplicationServices/Settings.StyleCop +++ b/win/CS/HandBrake.ApplicationServices/Settings.StyleCop @@ -1 +1,9 @@ -<StyleCopSettings Version="4.3" />
\ No newline at end of file +<StyleCopSettings Version="105">
+ <Parsers>
+ <Parser ParserId="StyleCop.CSharp.CsParser">
+ <ParserSettings>
+ <BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
+ </ParserSettings>
+ </Parser>
+ </Parsers>
+</StyleCopSettings>
\ No newline at end of file |