diff options
author | sr55 <[email protected]> | 2011-10-30 22:08:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-10-30 22:08:47 +0000 |
commit | ee03feea6ff45d159bd4060e5f7492ac727ec600 (patch) | |
tree | 4fc617500921dd7bb764ebe759955b761b8afb70 /win/CS/HandBrakeWPF/ViewModels | |
parent | 1fae5640fafcc3a4613eba99dcbb56f3e98430ae (diff) |
WinGui: (WPF) Initial setup for the Log Window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4331 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/Interfaces/ILogViewModel.cs | 18 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 9 |
3 files changed, 30 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/Interfaces/ILogViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/Interfaces/ILogViewModel.cs new file mode 100644 index 000000000..6aa1020d4 --- /dev/null +++ b/win/CS/HandBrakeWPF/ViewModels/Interfaces/ILogViewModel.cs @@ -0,0 +1,18 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="ILogViewModel.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// The Log View Model Interface
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.ViewModels.Interfaces
+{
+ /// <summary>
+ /// The Log View Model Interface
+ /// </summary>
+ public interface ILogViewModel
+ {
+ }
+}
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs index b0159669f..aebdd7e73 100644 --- a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs @@ -11,10 +11,12 @@ namespace HandBrakeWPF.ViewModels {
using Caliburn.Micro;
+ using HandBrakeWPF.ViewModels.Interfaces;
+
/// <summary>
/// The Log View Model
/// </summary>
- public class LogViewModel : ViewModelBase
+ public class LogViewModel : ViewModelBase, ILogViewModel
{
/// <summary>
/// Initializes a new instance of the <see cref="LogViewModel"/> class.
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index e1976cbdd..6e5153e85 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -221,6 +221,15 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
+ /// Open the Log Window
+ /// </summary>
+ public void OpenLogWindow()
+ {
+ this.WindowManager.ShowWindow(new LogViewModel(this.WindowManager));
+ }
+
+
+ /// <summary>
/// Open the Queue Window.
/// </summary>
public void OpenQueueWindow()
|