summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Model/Encoding
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-14 19:08:34 +0000
committersr55 <[email protected]>2012-06-14 19:08:34 +0000
commita53a05ae0921b38cc1c9d3dd3dd5bab09a6c7f5f (patch)
tree0b967e1f37804b649977a7be327036241e6f7ec9 /win/CS/HandBrake.ApplicationServices/Model/Encoding
parent6b07388d5ea2ee6fdb8613d024913062dbcbd72a (diff)
WinGui: Code Cleanup
- New file headers for App Services - Update Interop to include an IWindsorInstaller implementation - Update Interop Converter (new framerates and fflac) - Many stylecop warnings fixed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4734 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model/Encoding')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs12
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs61
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs18
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/FramerateMode.cs12
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/OutputFormat.cs12
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/PointToPointMode.cs12
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs1
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleType.cs12
8 files changed, 71 insertions, 69 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs
index 31447355b..7b407f297 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs
@@ -1,7 +1,11 @@
-/* AllowedPassthru.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="AllowedPassthru.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Allowed Passthru Options
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
index a9d42861a..49348048f 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
@@ -13,6 +13,8 @@ namespace HandBrake.ApplicationServices.Model.Encoding
using System.ComponentModel;
using System.Globalization;
+ using Caliburn.Micro;
+
using HandBrake.ApplicationServices.Functions;
using HandBrake.ApplicationServices.Parsing;
using HandBrake.Interop.Model.Encoding;
@@ -20,7 +22,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
/// <summary>
/// An Audio Track for the Audio Panel
/// </summary>
- public class AudioTrack : ModelBase
+ public class AudioTrack : PropertyChangedBase
{
#region Constants and Fields
@@ -100,7 +102,6 @@ namespace HandBrake.ApplicationServices.Model.Encoding
this.mixDown = track.MixDown;
this.sampleRate = track.SampleRate;
this.scannedTrack = new Audio();
- this.trackName = track.TrackName;
}
#endregion
@@ -159,7 +160,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
this.bitrate = value;
- this.OnPropertyChanged("Bitrate");
+ this.NotifyOfPropertyChange("Bitrate");
}
}
@@ -178,7 +179,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
if (!object.Equals(value, this.drc))
{
this.drc = value;
- this.OnPropertyChanged("DRC");
+ this.NotifyOfPropertyChange("DRC");
}
}
}
@@ -196,9 +197,9 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
this.encoder = value;
- this.OnPropertyChanged("Encoder");
- this.OnPropertyChanged("IsPassthru");
- this.OnPropertyChanged("TrackReference");
+ this.NotifyOfPropertyChange(() => this.Encoder);
+ this.NotifyOfPropertyChange("IsPassthru");
+ this.NotifyOfPropertyChange("TrackReference");
}
}
@@ -217,7 +218,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
if (!object.Equals(value, this.gain))
{
this.gain = value;
- this.OnPropertyChanged("Gain");
+ this.NotifyOfPropertyChange("Gain");
}
}
}
@@ -235,8 +236,8 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
this.mixDown = value;
- this.OnPropertyChanged("MixDown");
- this.OnPropertyChanged("TrackReference");
+ this.NotifyOfPropertyChange("MixDown");
+ this.NotifyOfPropertyChange("TrackReference");
}
}
@@ -253,7 +254,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
this.sampleRate = value;
- this.OnPropertyChanged("SampleRate");
+ this.NotifyOfPropertyChange("SampleRate");
}
}
@@ -295,8 +296,8 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
this.scannedTrack = value;
- this.OnPropertyChanged("ScannedTrack");
- this.OnPropertyChanged("TrackDisplay");
+ this.NotifyOfPropertyChange("ScannedTrack");
+ this.NotifyOfPropertyChange("TrackDisplay");
}
}
@@ -317,34 +318,6 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
/// <summary>
- /// Gets the Display Value for this model.
- /// </summary>
- public string TrackDisplay
- {
- get
- {
- return this.ScannedTrack == null ? string.Empty : this.ScannedTrack.ToString();
- }
- }
-
- /// <summary>
- /// Gets or sets TrackName.
- /// </summary>
- public string TrackName
- {
- get
- {
- return this.trackName;
- }
-
- set
- {
- this.trackName = value;
- this.OnPropertyChanged("TrackName");
- }
- }
-
- /// <summary>
/// Gets a value indicating whether IsPassthru.
/// </summary>
public bool IsPassthru
@@ -361,6 +334,9 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
}
+ /// <summary>
+ /// Gets a value indicating whether IsLossless.
+ /// </summary>
public bool IsLossless
{
get
@@ -369,6 +345,9 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
}
+ /// <summary>
+ /// Gets TrackReference.
+ /// </summary>
public AudioTrack TrackReference
{
get { return this; }
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
index 0e0eb4b12..db3794151 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
@@ -1,7 +1,11 @@
-/* ChapterMarker.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="ChapterMarker.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// A Movie Chapter
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
@@ -30,12 +34,12 @@ namespace HandBrake.ApplicationServices.Model.Encoding
/// <param name="number">
/// The number.
/// </param>
- /// <param name="Name">
+ /// <param name="name">
/// The name.
/// </param>
- public ChapterMarker(int number, string Name)
+ public ChapterMarker(int number, string name)
{
- this.ChapterName = Name;
+ this.ChapterName = name;
this.ChapterNumber = number;
}
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/FramerateMode.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/FramerateMode.cs
index 508e63ced..6392578a6 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/FramerateMode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/FramerateMode.cs
@@ -1,7 +1,11 @@
-/* VideoEncoderMode.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="FramerateMode.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// The Mode of Video Encoding. CFR, VFR, PFR
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/OutputFormat.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/OutputFormat.cs
index fa5c3225f..813418264 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/OutputFormat.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/OutputFormat.cs
@@ -1,7 +1,11 @@
-/* OutputFormat.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="OutputFormat.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// The Output format.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/PointToPointMode.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/PointToPointMode.cs
index 00eac35f0..df0bc437c 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/PointToPointMode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/PointToPointMode.cs
@@ -1,7 +1,11 @@
-/* PointToPoint.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="PointToPointMode.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Point to Point Mode
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
index d944dea97..92eb55b73 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
@@ -155,7 +155,6 @@ namespace HandBrake.ApplicationServices.Model.Encoding
/// </summary>
public string SrtCharCode { get; set; }
-
/// <summary>
/// Gets or sets the SRT Filename
/// </summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleType.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleType.cs
index 5b533f829..64e8f8ff8 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleType.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleType.cs
@@ -1,7 +1,11 @@
-/* SubtitleType.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SubtitleType.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Subtitle Type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{