summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-12-27 18:41:31 +0000
committersr55 <[email protected]>2011-12-27 18:41:31 +0000
commit20fd52b888f111ac2d7670fa3c41e495661cdebd (patch)
tree9f8f53b17435ed3a8a14df338ec26410a3ecba75 /win/CS/HandBrake.ApplicationServices
parent015a2a45691dee523047f3b2a1a3628a2dd106f9 (diff)
WinGui: (WPF) Initial work to implement the "Queue" and "Add Preset" Windows. Additional setup work around the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4389 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Preset.cs5
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs2
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs7
3 files changed, 10 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
index b9e52ca9f..a3bd673f3 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
@@ -41,6 +41,11 @@ namespace HandBrake.ApplicationServices.Model
public string Description { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether Picture Filters are used with this preset.
+ /// </summary>
+ public bool UsePictureFilters { get; set; }
+
+ /// <summary>
/// Gets or sets a value indicating whether this is a built in preset
/// </summary>
public bool IsBuildIn { get; set; }
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs
index e53871d53..b8b162d4f 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs
@@ -30,7 +30,7 @@ namespace HandBrake.ApplicationServices.Services.Interfaces
/// <summary>
/// Gets The current queue.
/// </summary>
- ReadOnlyCollection<QueueTask> Queue { get; }
+ ObservableCollection<QueueTask> Queue { get; }
/// <summary>
/// Gets the number of jobs in the queue
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs
index cec56f500..c138708a7 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs
@@ -41,7 +41,7 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// The Queue of Job objects
/// </summary>
- private readonly List<QueueTask> queue = new List<QueueTask>();
+ private readonly ObservableCollection<QueueTask> queue = new ObservableCollection<QueueTask>();
/// <summary>
/// HandBrakes Queue file with a place holder for an extra string.
@@ -74,6 +74,7 @@ namespace HandBrake.ApplicationServices.Services
/// </summary>
public QueueManager()
{
+ this.queueFile = "hb_queue_recovery.xml"; // TODO need to support multi-instance here.
}
/// <summary>
@@ -130,11 +131,11 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Gets The current queue.
/// </summary>
- public ReadOnlyCollection<QueueTask> Queue
+ public ObservableCollection<QueueTask> Queue
{
get
{
- return this.queue.AsReadOnly();
+ return this.queue;
}
}