this.x264Preset = x264Preset.None;\r
this.x264Profile = x264Profile.None;\r
this.X264Tune = x264Tune.None;\r
+ this.Modulus = 16;\r
}\r
\r
/// <summary>\r
this.UpdatePresetFiles();\r
}\r
\r
-\r
/// <summary>\r
/// Get a Preset\r
/// </summary>\r
/// <summary>\r
/// Reads the CLI's CLI output format and load's them into the preset List Preset\r
/// </summary>\r
- /// <param name="cliPath">\r
- /// The Path to the CLI, leave blank for current folder.\r
- /// </param>\r
public void UpdateBuiltInPresets()\r
{\r
// Create a new tempory file and execute the CLI to get the built in Presets.\r
CropSettings = pic,\r
Description = string.Empty, // Maybe one day we will populate this.\r
IsBuildIn = true,\r
+ UsePictureFilters = true,\r
Task = QueryParserUtility.Parse(presetName[2])\r
};\r
\r
return EnumHelper<VideoEncoder>.GetEnumDisplayValuesSubset(encoders);\r
}\r
\r
- return EnumHelper<VideoEncoder>.GetDisplay((VideoEncoder)values[0]);\r
+ if (values[0].GetType() == typeof(VideoEncoder))\r
+ {\r
+ return EnumHelper<VideoEncoder>.GetDisplay((VideoEncoder)values[0]);\r
+ }\r
+\r
+ return null;\r
}\r
\r
/// <summary>\r
this.Height = preset.Task.Height ?? (sourceResolution.Height - this.CropTop - this.CropBottom);\r
}\r
\r
- if (this.Task.Anamorphic == Anamorphic.Custom)\r
+ if (preset.Task.Anamorphic == Anamorphic.Custom)\r
{\r
this.DisplayWidth = preset.Task.DisplayWidth != null ? int.Parse(preset.Task.DisplayWidth.ToString()) : 0;\r
this.ParWidth = preset.Task.PixelAspectX;\r
\r
this.MaintainAspectRatio = preset.Task.KeepDisplayAspect;\r
\r
- if (this.Task.Modulus.HasValue)\r
+ if (preset.Task.Modulus.HasValue)\r
{\r
this.SelectedModulus = preset.Task.Modulus;\r
}\r
/// The window manager.\r
/// </param>\r
/// <param name="queueProcessor">\r
- /// \r
/// The Queue Processor Service \r
/// </param>\r
/// <param name="errorService">\r
- /// \r
/// The Error Service \r
/// </param>\r
public QueueViewModel(IWindowManager windowManager, IQueueProcessor queueProcessor, IErrorService errorService)\r
/// </param>\r
private void QueueManager_QueueChanged(object sender, EventArgs e)\r
{\r
- // TODO\r
+ this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.QueueManager.Count);\r
}\r
\r
/// <summary>\r
<ColumnDefinition Width="Auto" />\r
</Grid.ColumnDefinitions>\r
<Button Content="Add" Name="AddTrack" Grid.Column="0" Width="75" Margin="0,0,10,0" cal:Message.Attach="[Event Click] = [Action Add]" />\r
- <Button Content="Import SRT" Grid.Column="2" Width="75" cal:Message.Attach="[Event Click] = [Action Import]" />\r
+ <Button Content="Import SRT" Grid.Column="2" Width="85" cal:Message.Attach="[Event Click] = [Action Import]" />\r
</Grid>\r
\r
<ListBox Grid.Row="2" ItemsSource="{Binding Task.SubtitleTracks}" \r
<TextBlock Text="Franerate (FPS):" Width="100"/>\r
<StackPanel Orientation="Vertical">\r
<ComboBox Width="120" ItemsSource="{Binding Framerates}" SelectedItem="{Binding SelectedFramerate}" />\r
- <RadioButton Content="Constant Framerate" IsChecked="{Binding IsConstantFramerate}" />\r
+ <RadioButton Content="Constant Framerate" IsChecked="{Binding IsConstantFramerate}" Margin="0,10,0,0" />\r
<RadioButton Content="Variable Framerate" IsChecked="{Binding IsVariableFramerate}" Visibility="{Binding ShowPeakFramerate, Converter={StaticResource boolToVisConverter}, ConverterParameter=true}" />\r
<RadioButton Content="Peak Framerate" IsChecked="{Binding IsPeakFramerate}" Visibility="{Binding ShowPeakFramerate, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />\r
</StackPanel>\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.Windows;\r
-using System.Windows.Controls;\r
-using System.Windows.Data;\r
-using System.Windows.Documents;\r
-using System.Windows.Input;\r
-using System.Windows.Media;\r
-using System.Windows.Media.Imaging;\r
-using System.Windows.Navigation;\r
-using System.Windows.Shapes;\r
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="VideoView.xaml.cs" company="HandBrake Project (http://handbrake.fr)">\r
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+// Interaction logic for VideoView.xaml\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
\r
namespace HandBrakeWPF.Views\r
{\r
+ using System.Windows.Controls;\r
+\r
/// <summary>\r
/// Interaction logic for VideoView.xaml\r
/// </summary>\r
public partial class VideoView : UserControl\r
{\r
+ /// <summary>\r
+ /// Initializes a new instance of the <see cref="VideoView"/> class.\r
+ /// </summary>\r
public VideoView()\r
{\r
InitializeComponent();\r