diff options
author | sr55 <[email protected]> | 2010-02-20 21:59:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-02-20 21:59:23 +0000 |
commit | b59b7b8733533aed4b97da6679e455df63049e23 (patch) | |
tree | 9035a3438491bc3d8290af9bced2320da11edb21 /win/C#/Model | |
parent | b9d00019295781bed79eca280bac798b7bb7c64f (diff) |
WinGui:
- Some tweaks to the StyleCop Settings File.
- Some abbreviations added to the ReSharper config file.
- Some more warnings cleaned up.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3130 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Model')
-rw-r--r-- | win/C#/Model/AudioTrack.cs | 32 | ||||
-rw-r--r-- | win/C#/Model/DriveInformation.cs | 14 | ||||
-rw-r--r-- | win/C#/Model/SourceType.cs | 10 | ||||
-rw-r--r-- | win/C#/Model/Subtitle.cs | 53 |
4 files changed, 55 insertions, 54 deletions
diff --git a/win/C#/Model/AudioTrack.cs b/win/C#/Model/AudioTrack.cs index 822488b8e..410cfa59e 100644 --- a/win/C#/Model/AudioTrack.cs +++ b/win/C#/Model/AudioTrack.cs @@ -1,8 +1,7 @@ /* AudioTrack.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. */
+ 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. */
namespace Handbrake.Model
{
@@ -12,46 +11,47 @@ namespace Handbrake.Model public class AudioTrack
{
/// <summary>
+ /// Initializes a new instance of the <see cref="AudioTrack"/> class.
/// Audio Track instance
/// </summary>
public AudioTrack()
{
// Default Values
- Track = "Automatic";
- MixDown = "Automatic";
- SampleRate = "Auto";
- Bitrate = "Auto";
- DRC = "1";
+ this.Track = "Automatic";
+ this.MixDown = "Automatic";
+ this.SampleRate = "Auto";
+ this.Bitrate = "Auto";
+ this.DRC = "1";
}
/// <summary>
- /// Audio Track Name
+ /// Gets or sets Audio Track Name
/// </summary>
public string Track { get; set; }
/// <summary>
- /// Audio Mixdown
+ /// Gets or sets Audio Mixdown
/// </summary>
public string MixDown { get; set; }
/// <summary>
- /// Audio Encoder
+ /// Gets or sets Audio Encoder
/// </summary>
public string Encoder { get; set; }
/// <summary>
- /// Audio Bitrate
+ /// Gets or sets Audio Bitrate
/// </summary>
public string Bitrate { get; set; }
/// <summary>
- /// Audio SampleRate
+ /// Gets or sets Audio SampleRate
/// </summary>
public string SampleRate { get; set; }
/// <summary>
- /// Dynamic Range Compression
+ /// Gets or sets Dynamic Range Compression
/// </summary>
public string DRC { get; set; }
}
-}
+}
\ No newline at end of file diff --git a/win/C#/Model/DriveInformation.cs b/win/C#/Model/DriveInformation.cs index 9367e7e50..8db3ed8f8 100644 --- a/win/C#/Model/DriveInformation.cs +++ b/win/C#/Model/DriveInformation.cs @@ -1,20 +1,22 @@ /* DriveInformation.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. */
+ 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. */
namespace Handbrake.Model
{
+ /// <summary>
+ /// Information about a DVD drive
+ /// </summary>
public class DriveInformation
{
/// <summary>
- /// The Drive Volume Name
+ /// Gets or sets The Drive Volume Name
/// </summary>
public string VolumeLabel { get; set; }
/// <summary>
- /// The Root Directory
+ /// Gets or sets The Root Directory
/// </summary>
public string RootDirectory { get; set; }
}
diff --git a/win/C#/Model/SourceType.cs b/win/C#/Model/SourceType.cs index c5a1bf417..4cc8b416d 100644 --- a/win/C#/Model/SourceType.cs +++ b/win/C#/Model/SourceType.cs @@ -1,11 +1,13 @@ /* SourceType.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. */
+ 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. */
namespace Handbrake.Model
{
+ /// <summary>
+ /// The Type of source that the user has scanned
+ /// </summary>
public enum SourceType
{
/// <summary>
diff --git a/win/C#/Model/Subtitle.cs b/win/C#/Model/Subtitle.cs index 0eead5908..9254ab438 100644 --- a/win/C#/Model/Subtitle.cs +++ b/win/C#/Model/Subtitle.cs @@ -1,89 +1,86 @@ /* Subtitle.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. */
-using System.Windows.Forms;
+ 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. */
namespace Handbrake.Model
{
+ using System.Windows.Forms;
+
/// <summary>
/// Subtitle Information
/// </summary>
public class SubtitleInfo
{
/// <summary>
- /// Subtitle Track
+ /// Gets or sets the Subtitle Track
/// </summary>
public string Track { get; set; }
/// <summary>
- /// Forced Subtitle
+ /// Gets or sets the Forced Subtitle
/// </summary>
public string Forced { get; set; }
/// <summary>
- /// Burned In Subtitle
+ /// Gets or sets the Burned In Subtitle
/// </summary>
public string Burned { get; set; }
/// <summary>
- /// Default Subtitle Track
+ /// Gets or sets the Default Subtitle Track
/// </summary>
public string Default { get; set; }
/// <summary>
- /// SRT Language
+ /// Gets or sets the SRT Language
/// </summary>
public string SrtLang { get; set; }
/// <summary>
- /// SRT Character Code
+ /// Gets or sets the SRT Character Code
/// </summary>
public string SrtCharCode { get; set; }
/// <summary>
- /// SRT Offset
+ /// Gets or sets the SRT Offset
/// </summary>
public int SrtOffset { get; set; }
/// <summary>
- /// Path to the SRT file
+ /// Gets or sets the Path to the SRT file
/// </summary>
public string SrtPath { get; set; }
/// <summary>
- /// SRT Filename
+ /// Gets or sets the SRT Filename
/// </summary>
public string SrtFileName { get; set; }
/// <summary>
- /// Returns if this is an SRT subtitle.
+ /// Gets a value indicating whether this is an SRT subtitle.
/// </summary>
public bool IsSrtSubtitle
{
- get
- {
- return SrtFileName != "-";
- }
+ get { return this.SrtFileName != "-"; }
}
/// <summary>
- /// A ListViewItem Containing information about this subitlte
+ /// Gets A ListViewItem Containing information about this subitlte
/// </summary>
public ListViewItem ListView
{
get
{
- ListViewItem listTrack = new ListViewItem(Track);
- listTrack.SubItems.Add(Forced);
- listTrack.SubItems.Add(Burned);
- listTrack.SubItems.Add(Default);
- listTrack.SubItems.Add(SrtLang);
- listTrack.SubItems.Add(SrtCharCode);
- listTrack.SubItems.Add(SrtOffset.ToString());
+ var listTrack = new ListViewItem(this.Track);
+ listTrack.SubItems.Add(this.Forced);
+ listTrack.SubItems.Add(this.Burned);
+ listTrack.SubItems.Add(this.Default);
+ listTrack.SubItems.Add(this.SrtLang);
+ listTrack.SubItems.Add(this.SrtCharCode);
+ listTrack.SubItems.Add(this.SrtOffset.ToString());
return listTrack;
}
}
}
-}
+}
\ No newline at end of file |