From edc9bf98907f9f794443facc7ce9072ee27af08c Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 21 Aug 2013 16:07:48 +0000 Subject: WinGui: Initial work around around a when done countdown. When a queue finishes it will now popup a window giving the user 60 seconds to cancel the when done operation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5728 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Services/QueueProcessor.cs | 4 + win/CS/HandBrake10.sln.DotSettings | 1 + win/CS/HandBrakeWPF/HandBrakeWPF.csproj | 13 +- .../HandBrakeWPF/Services/PrePostActionService.cs | 71 +++++++--- win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs | 3 +- .../ViewModels/CountdownAlertViewModel.cs | 152 +++++++++++++++++++++ .../Interfaces/ICountdownAlertViewModel.cs | 30 ++++ win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 2 - win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml | 39 ++++++ .../HandBrakeWPF/Views/CountdownAlertView.xaml.cs | 27 ++++ win/CS/HandBrakeWPF/Views/Images/Advanced.png | Bin 0 -> 1133 bytes 11 files changed, 317 insertions(+), 25 deletions(-) create mode 100644 win/CS/HandBrakeWPF/ViewModels/CountdownAlertViewModel.cs create mode 100644 win/CS/HandBrakeWPF/ViewModels/Interfaces/ICountdownAlertViewModel.cs create mode 100644 win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml create mode 100644 win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml.cs create mode 100644 win/CS/HandBrakeWPF/Views/Images/Advanced.png (limited to 'win') diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs index 92558f6cc..d80a485ec 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs @@ -546,6 +546,8 @@ namespace HandBrake.ApplicationServices.Services /// private void InvokeQueuePaused(EventArgs e) { + this.IsProcessing = false; + EventHandler handler = this.QueuePaused; if (handler != null) { @@ -566,6 +568,8 @@ namespace HandBrake.ApplicationServices.Services { handler(this, e); } + + this.IsProcessing = false; } /// diff --git a/win/CS/HandBrake10.sln.DotSettings b/win/CS/HandBrake10.sln.DotSettings index d55f220ff..4d549497f 100644 --- a/win/CS/HandBrake10.sln.DotSettings +++ b/win/CS/HandBrake10.sln.DotSettings @@ -3,6 +3,7 @@ True True False + True HINT HINT DO_NOT_SHOW diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index 1422d2d5a..331bbc331 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -133,6 +133,11 @@ + + + + CountdownAlertView.xaml + TimeSpanBox.xaml @@ -335,6 +340,10 @@ + + Designer + MSBuild:Compile + MSBuild:Compile Designer @@ -500,7 +509,9 @@ HandBrake.Server - + + +