diff options
author | sr55 <[email protected]> | 2017-09-17 15:43:47 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-09-17 15:44:02 +0100 |
commit | 361f4d9e6c055faa48c3ca61a97872d0216261f6 (patch) | |
tree | c298da50abab13e5f7ae07cece8a0bc77fa6fe3d /win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs | |
parent | 491e02354e74118ba9aca4ef201c8d2c3a42bda4 (diff) |
WinGui: Initial ground work on code that will detect when the user modifies settings that don't match the currently selected preset.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs index 9a9e905e0..806b763be 100644 --- a/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs @@ -16,6 +16,7 @@ namespace HandBrakeWPF.ViewModels using HandBrake.ApplicationServices.Interop.Model.Encoding;
+ using HandBrakeWPF.EventArgs;
using HandBrakeWPF.Helpers;
using HandBrakeWPF.Model;
using HandBrakeWPF.Services.Presets.Model;
@@ -190,6 +191,8 @@ namespace HandBrakeWPF.ViewModels #endregion
+ public event EventHandler<TabStatusEventArgs> TabStatusChanged;
+
#region Properties
/// <summary>
@@ -954,6 +957,11 @@ namespace HandBrakeWPF.ViewModels this.AdvancedOptionsString = task.AdvancedEncoderOptions;
}
+ public bool MatchesPreset(Preset preset)
+ {
+ return false;
+ }
+
/// <summary>
/// Setup this window for a new source
/// </summary>
@@ -981,6 +989,11 @@ namespace HandBrakeWPF.ViewModels #region Methods
+ protected virtual void OnTabStatusChanged(TabStatusEventArgs e)
+ {
+ this.TabStatusChanged?.Invoke(this, e);
+ }
+
/// <summary>
/// The set advanced to defaults.
/// </summary>
|