summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Controls')
-rw-r--r--win/C#/Controls/Filters.cs39
-rw-r--r--win/C#/Controls/PictureSettings.cs16
-rw-r--r--win/C#/Controls/Subtitles.cs33
-rw-r--r--win/C#/Controls/x264Panel.cs10
4 files changed, 59 insertions, 39 deletions
diff --git a/win/C#/Controls/Filters.cs b/win/C#/Controls/Filters.cs
index 9f75f69d3..1ee72d6c9 100644
--- a/win/C#/Controls/Filters.cs
+++ b/win/C#/Controls/Filters.cs
@@ -8,14 +8,12 @@ namespace Handbrake.Controls
using System;
using System.Windows.Forms;
+ /// <summary>
+ /// The Filters Panel
+ /// </summary>
public partial class Filters : UserControl
{
/// <summary>
- /// The Filter settings have changed
- /// </summary>
- public event EventHandler FilterSettingsChanged;
-
- /// <summary>
/// Initializes a new instance of the <see cref="Filters"/> class.
/// Creates a new instance of Filters
/// </summary>
@@ -29,6 +27,11 @@ namespace Handbrake.Controls
}
/// <summary>
+ /// The Filter settings have changed
+ /// </summary>
+ public event EventHandler FilterSettingsChanged;
+
+ /// <summary>
/// Gets the CLI query for the query generator.
/// </summary>
public string GetCliQuery
@@ -260,6 +263,12 @@ namespace Handbrake.Controls
}
// Controls
+
+ /// <summary>
+ /// Delecine Selected Index Changed
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The EventArgs</param>
private void DropDetelecineSelectedIndexChanged(object sender, EventArgs e)
{
text_customDT.Visible = drop_detelecine.Text == "Custom";
@@ -268,6 +277,11 @@ namespace Handbrake.Controls
this.FilterSettingsChanged(this, new EventArgs());
}
+ /// <summary>
+ /// Decomb Selected Index Changed
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The EventArgs</param>
private void DropDecombSelectedIndexChanged(object sender, EventArgs e)
{
text_customDC.Visible = drop_decomb.Text == "Custom";
@@ -279,6 +293,11 @@ namespace Handbrake.Controls
this.FilterSettingsChanged(this, new EventArgs());
}
+ /// <summary>
+ /// DeInterlace Selected Index Changed
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The EventArgs</param>
private void DropDeinterlaceSelectedIndexChanged(object sender, EventArgs e)
{
text_customDI.Visible = drop_deinterlace.Text == "Custom";
@@ -290,6 +309,11 @@ namespace Handbrake.Controls
this.FilterSettingsChanged(this, new EventArgs());
}
+ /// <summary>
+ /// DeNoise Selected Index Changed
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The EventArgs</param>
private void DropDenoiseSelectedIndexChanged(object sender, EventArgs e)
{
text_customDN.Visible = drop_denoise.Text == "Custom";
@@ -299,6 +323,11 @@ namespace Handbrake.Controls
this.FilterSettingsChanged(this, new EventArgs());
}
+ /// <summary>
+ /// Deblock Changed
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The EventArgs</param>
private void SliderDeblockScroll(object sender, EventArgs e)
{
lbl_deblockVal.Text = slider_deblock.Value == 4 ? "Off" : slider_deblock.Value.ToString();
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs
index e0319a690..534cc0fd5 100644
--- a/win/C#/Controls/PictureSettings.cs
+++ b/win/C#/Controls/PictureSettings.cs
@@ -7,7 +7,6 @@ namespace Handbrake.Controls
{
using System;
using System.Drawing;
- using System.Globalization;
using System.Windows.Forms;
using HandBrake.ApplicationServices.Parsing;
@@ -19,7 +18,6 @@ namespace Handbrake.Controls
/// </summary>
public partial class PictureSettings : UserControl
{
- private readonly CultureInfo culture = new CultureInfo("en-US", false);
private bool preventChangingWidth;
private bool preventChangingHeight;
private bool preventChangingCustom;
@@ -152,9 +150,6 @@ namespace Handbrake.Controls
// Picture Controls
private void TextWidthValueChanged(object sender, EventArgs e)
{
- if (Properties.Settings.Default.disableResCalc)
- return;
-
if (preventChangingWidth)
return;
@@ -214,9 +209,6 @@ namespace Handbrake.Controls
private void TextHeightValueChanged(object sender, EventArgs e)
{
- if (Properties.Settings.Default.disableResCalc)
- return;
-
if (preventChangingHeight)
return;
@@ -277,9 +269,6 @@ namespace Handbrake.Controls
private void CheckKeepArCheckedChanged(object sender, EventArgs e)
{
- if (Properties.Settings.Default.disableResCalc)
- return;
-
// Force TextWidth to recalc height
if (check_KeepAR.Checked)
TextWidthValueChanged(this, new EventArgs());
@@ -298,9 +287,6 @@ namespace Handbrake.Controls
private void UpdownDisplayWidthValueChanged(object sender, EventArgs e)
{
- if (Properties.Settings.Default.disableResCalc)
- return;
-
if (preventChangingDisplayWidth == false && check_KeepAR.CheckState == CheckState.Unchecked)
{
preventChangingCustom = true;
@@ -326,7 +312,7 @@ namespace Handbrake.Controls
// Update value
preventChangingHeight = true;
- text_height.Value = (decimal)modulusHeight;
+ text_height.Value = modulusHeight;
updownParWidth.Value = updownDisplayWidth.Value;
updownParHeight.Value = text_width.Value;
preventChangingHeight = false;
diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs
index e923598e7..8baf18eae 100644
--- a/win/C#/Controls/Subtitles.cs
+++ b/win/C#/Controls/Subtitles.cs
@@ -195,7 +195,7 @@ namespace Handbrake.Controls
srtFile = drp_subtitleTracks.SelectedItem.ToString();
srtLangVal = srt_lang.SelectedItem.ToString();
srtCode = srt_charcode.SelectedItem.ToString();
- srtOffsetMs = (int) srt_offset.Value;
+ srtOffsetMs = (int)srt_offset.Value;
if (defaultSub == "Yes") SetNoSrtDefault();
}
else
@@ -210,14 +210,14 @@ namespace Handbrake.Controls
SubtitleInfo track = new SubtitleInfo
{
- Track = trackName,
- Forced = forcedVal,
- Burned = burnedVal,
- Default = defaultSub,
- SrtLang = srtLangVal,
- SrtCharCode = srtCode,
- SrtOffset = srtOffsetMs,
- SrtPath = srtPath,
+ Track = trackName,
+ Forced = forcedVal,
+ Burned = burnedVal,
+ Default = defaultSub,
+ SrtLang = srtLangVal,
+ SrtCharCode = srtCode,
+ SrtOffset = srtOffsetMs,
+ SrtPath = srtPath,
SrtFileName = srtFile
};
@@ -286,7 +286,7 @@ namespace Handbrake.Controls
int c = 0;
if (lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[0].Text.ToLower().Contains(".srt"))
- // We have an SRT
+ // We have an SRT
{
foreach (var item in drp_subtitleTracks.Items)
{
@@ -388,7 +388,7 @@ namespace Handbrake.Controls
lv_subList.Select();
subList[lv_subList.SelectedIndices[0]].Forced = check_forced.Checked ? "Yes" : "No";
- // Update SubList List<SubtitleInfo>
+ // Update SubList List<SubtitleInfo>
}
/// <summary>
@@ -411,7 +411,7 @@ namespace Handbrake.Controls
lv_subList.Select();
subList[lv_subList.SelectedIndices[0]].Burned = check_burned.Checked ? "Yes" : "No";
- // Update SubList List<SubtitleInfo>
+ // Update SubList List<SubtitleInfo>
}
/// <summary>
@@ -437,7 +437,7 @@ namespace Handbrake.Controls
lv_subList.Select();
subList[lv_subList.SelectedIndices[0]].Default = check_default.Checked ? "Yes" : "No";
- // Update SubList List<SubtitleInfo>
+ // Update SubList List<SubtitleInfo>
}
/// <summary>
@@ -458,8 +458,7 @@ namespace Handbrake.Controls
lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[6].Text = srt_offset.Value.ToString();
lv_subList.Select();
- subList[lv_subList.SelectedIndices[0]].SrtOffset = (int) srt_offset.Value;
- // Update SubList List<SubtitleInfo>
+ subList[lv_subList.SelectedIndices[0]].SrtOffset = (int)srt_offset.Value;
}
/// <summary>
@@ -479,7 +478,7 @@ namespace Handbrake.Controls
lv_subList.Select();
subList[lv_subList.SelectedIndices[0]].SrtCharCode = srt_charcode.SelectedItem.ToString();
- // Update SubList List<SubtitleInfo>
+ // Update SubList List<SubtitleInfo>
}
/// <summary>
@@ -499,7 +498,7 @@ namespace Handbrake.Controls
lv_subList.Select();
subList[lv_subList.SelectedIndices[0]].SrtLang = srt_lang.SelectedItem.ToString();
- // Update SubList List<SubtitleInfo>
+ // Update SubList List<SubtitleInfo>
}
/* Right Click Menu */
diff --git a/win/C#/Controls/x264Panel.cs b/win/C#/Controls/x264Panel.cs
index 8d223f6ab..f63214b23 100644
--- a/win/C#/Controls/x264Panel.cs
+++ b/win/C#/Controls/x264Panel.cs
@@ -8,6 +8,9 @@ namespace Handbrake.Controls
using System;
using System.Windows.Forms;
+ /// <summary>
+ /// The Advanced Panel
+ /// </summary>
public partial class x264Panel : UserControl
{
/*
@@ -38,7 +41,10 @@ namespace Handbrake.Controls
{
return rtf_x264Query.Text;
}
- set { rtf_x264Query.Text = value; }
+ set
+ {
+ rtf_x264Query.Text = value;
+ }
}
/// <summary>
@@ -999,7 +1005,7 @@ namespace Handbrake.Controls
private void widgetControlChanged(object sender, EventArgs e)
{
- Control changedControlName = (Control) sender;
+ Control changedControlName = (Control)sender;
string controlName = string.Empty;
switch (changedControlName.Name.Trim())