OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 15:25:40 +0000 (15:25 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 15:25:40 +0000 (15:25 +0000)
- More stylecop warnings cleaned up

git-svn-id: svn://localhost/HandBrake/trunk@3259 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/QueryParser.cs
win/C#/Model/AudioTrack.cs
win/C#/Model/DriveInformation.cs
win/C#/Model/Job.cs
win/C#/frmQueue.cs

index 4e86422..4d01c91 100644 (file)
@@ -24,71 +24,266 @@ namespace Handbrake.Functions
 \r
         #region Varibles\r
 \r
-        // Source\r
-        public int DVDTitle { get; set; }\r
-        public int DVDChapterStart { get; set; }\r
-        public int DVDChapterFinish { get; set; }\r
+        #region Source Title / Chapters\r
+        /// <summary>\r
+        /// Gets or sets Title.\r
+        /// </summary>\r
+        public int Title { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets ChapterStart.\r
+        /// </summary>\r
+        public int ChapterStart { get; set; }\r
 \r
-        // Output Settings\r
+        /// <summary>\r
+        /// Gets or sets ChapterFinish.\r
+        /// </summary>\r
+        public int ChapterFinish { get; set; }\r
+        #endregion\r
+\r
+        #region Output Settings\r
+        /// <summary>\r
+        /// Gets or sets the file Format. e.g mkv or mp4\r
+        /// </summary>\r
         public string Format { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether LargeMP4 support is enabled.\r
+        /// This is the 64bit MP4 file that allows >4GB files\r
+        /// </summary>\r
         public bool LargeMP4 { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether IpodAtom is inserted\r
+        /// </summary>\r
         public bool IpodAtom { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether OptimizeMP4 is enabed for web streaming\r
+        /// </summary>\r
         public bool OptimizeMP4 { get; set; }\r
+        #endregion\r
+\r
+        #region Picture Settings\r
 \r
-        // Picture Settings\r
+        /// <summary>\r
+        /// Gets or sets Width.\r
+        /// </summary>\r
         public int Width { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets Height.\r
+        /// </summary>\r
         public int Height { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets MaxWidth.\r
+        /// </summary>\r
         public int MaxWidth { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets MaxHeight.\r
+        /// </summary>\r
         public int MaxHeight { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets CropValues.\r
+        /// </summary>\r
         public string CropValues { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets CropTop.\r
+        /// </summary>\r
         public string CropTop { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets CropBottom.\r
+        /// </summary>\r
         public string CropBottom { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets CropLeft.\r
+        /// </summary>\r
         public string CropLeft { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets CropRight.\r
+        /// </summary>\r
         public string CropRight { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets AnamorphicMode.\r
+        /// </summary>\r
         public int AnamorphicMode { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether KeepDisplayAsect.\r
+        /// </summary>\r
         public bool KeepDisplayAsect { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets DisplayWidthValue.\r
+        /// </summary>\r
         public double DisplayWidthValue { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets PixelAspectWidth.\r
+        /// </summary>\r
         public int PixelAspectWidth { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets PixelAspectHeight.\r
+        /// </summary>\r
         public int PixelAspectHeight { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets AnamorphicModulus.\r
+        /// </summary>\r
         public int AnamorphicModulus { get; set; }\r
+        #endregion\r
+\r
+        #region Video Filters\r
 \r
-        // Video Filters\r
+        /// <summary>\r
+        /// Gets or sets DeTelecine.\r
+        /// </summary>\r
         public string DeTelecine { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets DeBlock.\r
+        /// </summary>\r
         public int DeBlock { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets DeInterlace.\r
+        /// </summary>\r
         public string DeInterlace { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets DeNoise.\r
+        /// </summary>\r
         public string DeNoise { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets Decomb.\r
+        /// </summary>\r
         public string Decomb { get; set; }\r
+        #endregion\r
 \r
-        // Video Settings\r
+        #region Video Settings\r
+        /// <summary>\r
+        /// Gets or sets VideoEncoder.\r
+        /// </summary>\r
         public string VideoEncoder { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether Grayscale.\r
+        /// </summary>\r
         public bool Grayscale { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether TwoPass.\r
+        /// </summary>\r
         public bool TwoPass { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether TurboFirstPass.\r
+        /// </summary>\r
         public bool TurboFirstPass { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets VideoFramerate.\r
+        /// </summary>\r
         public string VideoFramerate { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets AverageVideoBitrate.\r
+        /// </summary>\r
         public string AverageVideoBitrate { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets VideoTargetSize.\r
+        /// </summary>\r
         public string VideoTargetSize { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets VideoQuality.\r
+        /// </summary>\r
         public float VideoQuality { get; set; }\r
+        #endregion\r
 \r
-        // Audio Settings\r
+        #region Audio Settings\r
+\r
+        /// <summary>\r
+        /// Gets or sets AudioInformation.\r
+        /// </summary>\r
         public ArrayList AudioInformation { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets Subtitles.\r
+        /// </summary>\r
         public string Subtitles { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether ForcedSubtitles.\r
+        /// </summary>\r
         public bool ForcedSubtitles { get; set; }\r
+        #endregion\r
 \r
-        // Chapter Markers\r
+        #region Other\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether ChapterMarkers.\r
+        /// </summary>\r
         public bool ChapterMarkers { get; set; }\r
 \r
-        // Other\r
+        /// <summary>\r
+        /// Gets or sets H264Query.\r
+        /// </summary>\r
         public string H264Query { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether Verbose.\r
+        /// </summary>\r
         public bool Verbose { get; set; }\r
+        #endregion\r
 \r
-        // Preset Information\r
+        #region Preset Information\r
+\r
+        /// <summary>\r
+        /// Gets or sets PresetBuildNumber.\r
+        /// </summary>\r
         public int PresetBuildNumber { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets PresetDescription.\r
+        /// </summary>\r
         public string PresetDescription { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets PresetName.\r
+        /// </summary>\r
         public string PresetName { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets Type.\r
+        /// </summary>\r
         public string Type { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether UsesMaxPictureSettings.\r
+        /// </summary>\r
         public bool UsesMaxPictureSettings { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether UsesPictureFilters.\r
+        /// </summary>\r
         public bool UsesPictureFilters { get; set; }\r
+\r
+        /// <summary>\r
+        /// Gets or sets a value indicating whether UsesPictureSettings.\r
+        /// </summary>\r
         public bool UsesPictureSettings { get; set; }\r
+        #endregion\r
 \r
         #endregion\r
 \r
@@ -181,19 +376,19 @@ namespace Handbrake.Functions
                 #region Source Tab\r
 \r
                 if (title.Success)\r
-                    thisQuery.DVDTitle = int.Parse(title.ToString().Replace("-t ", string.Empty));\r
+                    thisQuery.Title = int.Parse(title.ToString().Replace("-t ", string.Empty));\r
 \r
                 if (chapters.Success)\r
                 {\r
                     string[] actTitles = chapters.ToString().Replace("-c ", string.Empty).Split('-');\r
-                    thisQuery.DVDChapterStart = int.Parse(actTitles[0]);\r
+                    thisQuery.ChapterStart = int.Parse(actTitles[0]);\r
                     if (actTitles.Length > 1)\r
                     {\r
-                        thisQuery.DVDChapterFinish = int.Parse(actTitles[1]);\r
+                        thisQuery.ChapterFinish = int.Parse(actTitles[1]);\r
                     }\r
 \r
-                    if ((thisQuery.DVDChapterStart == 1) && (thisQuery.DVDChapterFinish == 0))\r
-                        thisQuery.DVDChapterFinish = thisQuery.DVDChapterStart;\r
+                    if ((thisQuery.ChapterStart == 1) && (thisQuery.ChapterFinish == 0))\r
+                        thisQuery.ChapterFinish = thisQuery.ChapterStart;\r
                 }\r
 \r
                 #endregion\r
index 410cfa5..04b12ce 100644 (file)
@@ -12,7 +12,6 @@ namespace Handbrake.Model
     {\r
         /// <summary>\r
         /// Initializes a new instance of the <see cref="AudioTrack"/> class. \r
-        /// Audio Track instance\r
         /// </summary>\r
         public AudioTrack()\r
         {\r
index f22cdf9..d7cef0e 100644 (file)
@@ -10,7 +10,6 @@ namespace Handbrake.Model
     /// </summary>\r
     public class DriveInformation\r
     {\r
-\r
         /// <summary>\r
         /// Gets or sets A Unique ID That represemts this model.\r
         /// </summary>\r
index a2ccc00..6f27212 100644 (file)
@@ -3,7 +3,6 @@
     Homepage: <http://handbrake.fr>.\r
     It may be used under the terms of the GNU General Public License. */\r
 \r
-\r
 namespace Handbrake.Model\r
 {\r
     /// <summary>\r
index b6d1904..89303b6 100644 (file)
@@ -237,17 +237,17 @@ namespace Handbrake
                 QueryParser parsed = Functions.QueryParser.Parse(qItem);\r
 \r
                 // Get the DVD Title\r
-                string title = parsed.DVDTitle == 0 ? "Auto" : parsed.DVDTitle.ToString();\r
+                string title = parsed.Title == 0 ? "Auto" : parsed.Title.ToString();\r
 \r
                 // Get the DVD Chapters\r
                 string chapters;\r
-                if (parsed.DVDChapterStart == 0)\r
+                if (parsed.ChapterStart == 0)\r
                     chapters = "Auto";\r
                 else\r
                 {\r
-                    chapters = parsed.DVDChapterStart.ToString();\r
-                    if (parsed.DVDChapterFinish != 0)\r
-                        chapters = chapters + " - " + parsed.DVDChapterFinish;\r
+                    chapters = parsed.ChapterStart.ToString();\r
+                    if (parsed.ChapterFinish != 0)\r
+                        chapters = chapters + " - " + parsed.ChapterFinish;\r
                 }\r
 \r
                 ListViewItem item = new ListViewItem();\r
@@ -300,19 +300,19 @@ namespace Handbrake
                 }\r
 \r
                 // found query is a global varible\r
-                QueryParser parsed = Functions.QueryParser.Parse(queue.LastEncode.Query);\r
+                QueryParser parsed = QueryParser.Parse(queue.LastEncode.Query);\r
                 lbl_source.Text = queue.LastEncode.Source;\r
                 lbl_dest.Text = queue.LastEncode.Destination;\r
 \r
-                lbl_title.Text = parsed.DVDTitle == 0 ? "Auto" : parsed.DVDTitle.ToString();\r
+                lbl_title.Text = parsed.Title == 0 ? "Auto" : parsed.Title.ToString();\r
 \r
-                if (Equals(parsed.DVDChapterStart, 0))\r
+                if (Equals(parsed.ChapterStart, 0))\r
                     lbl_chapt.Text = "Auto";\r
                 else\r
                 {\r
-                    string chapters = parsed.DVDChapterStart.ToString();\r
-                    if (parsed.DVDChapterFinish != 0)\r
-                        chapters = chapters + " - " + parsed.DVDChapterFinish;\r
+                    string chapters = parsed.ChapterStart.ToString();\r
+                    if (parsed.ChapterFinish != 0)\r
+                        chapters = chapters + " - " + parsed.ChapterFinish;\r
                     lbl_chapt.Text = chapters;\r
                 }\r
 \r