summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-02-20 17:28:42 +0000
committersr55 <[email protected]>2016-02-20 17:28:42 +0000
commiteff231c2375c4056925c538332db44445de027e1 (patch)
treea554603ff5480b34e7cc1982b179a77de50eb473 /win/CS/HandBrakeWPF/ViewModels
parent2ffd38224aaed783471d7a6203782d27273e876b (diff)
WinGui: Adding a "Queue" Menu
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/Interfaces/IQueueViewModel.cs25
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs11
2 files changed, 36 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IQueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IQueueViewModel.cs
index 770869122..44d5d0f98 100644
--- a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IQueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IQueueViewModel.cs
@@ -21,5 +21,30 @@ namespace HandBrakeWPF.ViewModels.Interfaces
/// The action.
/// </param>
void WhenDone(string action);
+
+ /// <summary>
+ /// The import.
+ /// </summary>
+ void Import();
+
+ /// <summary>
+ /// The export.
+ /// </summary>
+ void Export();
+
+ /// <summary>
+ /// The clear completed.
+ /// </summary>
+ void ClearCompleted();
+
+ /// <summary>
+ /// The clear.
+ /// </summary>
+ void Clear();
+
+ /// <summary>
+ /// The remove selected jobs.
+ /// </summary>
+ void RemoveSelectedJobs();
}
} \ No newline at end of file
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 5eb792abb..0065bef6a 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -18,6 +18,7 @@ namespace HandBrakeWPF.ViewModels
using System.Linq;
using System.Threading;
using System.Windows;
+ using System.Windows.Input;
using Caliburn.Micro;
@@ -25,6 +26,7 @@ namespace HandBrakeWPF.ViewModels
using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Commands;
+ using HandBrakeWPF.Commands.Menu;
using HandBrakeWPF.EventArgs;
using HandBrakeWPF.Factories;
using HandBrakeWPF.Helpers;
@@ -221,6 +223,9 @@ namespace HandBrakeWPF.ViewModels
break;
}
+ // Setup Commands
+ this.QueueCommand = new QueueCommands(this.QueueViewModel);
+
HandBrakeInstanceManager.Init();
}
@@ -1176,6 +1181,12 @@ namespace HandBrakeWPF.ViewModels
#endregion
+ #region Commands
+
+ public ICommand QueueCommand { get; set; }
+
+ #endregion
+
#region Load and Shutdown Handling
/// <summary>