diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index fcaf5aa02..28472343c 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -11,14 +11,11 @@ namespace HandBrakeWPF.ViewModels {
using System;
using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
- using System.Windows.Data;
using Caliburn.Micro;
@@ -176,7 +173,6 @@ namespace HandBrakeWPF.ViewModels this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged;
this.Presets = this.presetService.Presets;
-
}
#region View Model Properties
@@ -278,13 +274,13 @@ namespace HandBrakeWPF.ViewModels if (this.SelectedPreset != null)
{
- this.PictureSettingsViewModel.SetPreset(this.SelectedPreset);
- this.VideoViewModel.SetPreset(this.SelectedPreset);
- this.FiltersViewModel.SetPreset(this.SelectedPreset);
- this.AudioViewModel.SetPreset(this.SelectedPreset);
- this.SubtitleViewModel.SetPreset(this.SelectedPreset);
- this.ChaptersViewModel.SetPreset(this.SelectedPreset);
- this.AdvancedViewModel.SetPreset(this.SelectedPreset);
+ this.PictureSettingsViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.VideoViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.FiltersViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.AudioViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.SubtitleViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.ChaptersViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+ this.AdvancedViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
}
this.NotifyOfPropertyChange(() => this.SelectedPreset);
@@ -842,6 +838,18 @@ namespace HandBrakeWPF.ViewModels Application.Current.Shutdown();
}
+ /// <summary>
+ /// DEBUG: Show CLI Query for settings+6
+ /// </summary>
+ public void ShowCliQuery()
+ {
+ this.errorService.ShowMessageBox(
+ QueryGeneratorUtility.GenerateQuery(this.CurrentTask),
+ "CLI Query",
+ MessageBoxButton.OK,
+ MessageBoxImage.Information);
+ }
+
#endregion
#region Main Window Public Methods
|