summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-20 02:07:56 +0000
committersr55 <[email protected]>2012-05-20 02:07:56 +0000
commita74a875a44e65737bf1b913d94c806498aac1efe (patch)
treef44711db67fcb8ada728df0d1f64355d0d89ea1d /win/CS/HandBrakeWPF/ViewModels
parent332f03f3f68dca799a2e50ceb7e34578ac0bcd5f (diff)
WinGui: Status overlay when scanning. Not sure if this is going to stay, just experimenting with ideas.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4690 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs29
1 files changed, 26 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 80b56edea..9feef3555 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -124,6 +124,11 @@ namespace HandBrakeWPF.ViewModels
private bool isEncoding;
/// <summary>
+ /// An Indicated to show the status window
+ /// </summary>
+ private bool showStatusWindow;
+
+ /// <summary>
/// Backing field for the selected preset.
/// </summary>
private Preset selectedPreset;
@@ -529,7 +534,24 @@ namespace HandBrakeWPF.ViewModels
set
{
this.isEncoding = value;
- this.NotifyOfPropertyChange("IsEncoding");
+ this.NotifyOfPropertyChange(() => this.IsEncoding);
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether ShowStatusWindow.
+ /// </summary>
+ public bool ShowStatusWindow
+ {
+ get
+ {
+ return this.showStatusWindow;
+ }
+
+ set
+ {
+ this.showStatusWindow = value;
+ this.NotifyOfPropertyChange(() => this.ShowStatusWindow);
}
}
@@ -1321,6 +1343,7 @@ namespace HandBrakeWPF.ViewModels
private void ScanStatusChanged(object sender, HandBrake.ApplicationServices.EventArgs.ScanProgressEventArgs e)
{
this.SourceLabel = "Scanning Title " + e.CurrentTitle + " of " + e.Titles;
+ this.StatusLabel = "Scanning Title " + e.CurrentTitle + " of " + e.Titles;
}
/// <summary>
@@ -1346,13 +1369,12 @@ namespace HandBrakeWPF.ViewModels
this.JobContextService.CurrentSource = this.ScannedSource;
this.JobContextService.CurrentTask = this.CurrentTask;
this.SetupTabs();
+ this.ShowStatusWindow = false;
}
this.SourceLabel = "Scan Completed";
this.StatusLabel = "Scan Completed";
});
-
- // TODO Re-enable GUI.
}
/// <summary>
@@ -1370,6 +1392,7 @@ namespace HandBrakeWPF.ViewModels
() =>
{
this.StatusLabel = "Scanning source, please wait...";
+ this.ShowStatusWindow = true;
});
// TODO - Disable relevant parts of the UI.
}