From ee03feea6ff45d159bd4060e5f7492ac727ec600 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 30 Oct 2011 22:08:47 +0000 Subject: WinGui: (WPF) Initial setup for the Log Window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4331 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/HandBrakeWPF.csproj | 1 + .../ViewModels/Interfaces/ILogViewModel.cs | 18 ++++++++++++++ win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs | 4 ++- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 9 +++++++ win/CS/HandBrakeWPF/Views/LogView.xaml | 29 ++++++++++++++++++++-- win/CS/HandBrakeWPF/Views/MainView.xaml | 8 +++--- 6 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 win/CS/HandBrakeWPF/ViewModels/Interfaces/ILogViewModel.cs (limited to 'win') diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index c600cd1a4..48710e7df 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -81,6 +81,7 @@ + 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 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// The Log View Model Interface +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.ViewModels.Interfaces +{ + /// + /// The Log View Model Interface + /// + 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; + /// /// The Log View Model /// - public class LogViewModel : ViewModelBase + public class LogViewModel : ViewModelBase, ILogViewModel { /// /// Initializes a new instance of the 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 @@ -220,6 +220,15 @@ namespace HandBrakeWPF.ViewModels this.WindowManager.ShowWindow(new OptionsViewModel(this.WindowManager, this.userSettingService)); } + /// + /// Open the Log Window + /// + public void OpenLogWindow() + { + this.WindowManager.ShowWindow(new LogViewModel(this.WindowManager)); + } + + /// /// Open the Queue Window. /// diff --git a/win/CS/HandBrakeWPF/Views/LogView.xaml b/win/CS/HandBrakeWPF/Views/LogView.xaml index ee6656788..908cee484 100644 --- a/win/CS/HandBrakeWPF/Views/LogView.xaml +++ b/win/CS/HandBrakeWPF/Views/LogView.xaml @@ -1,8 +1,33 @@  + Title="LogView" Height="600" Width="420"> - + + + + + + + + + + + + + + + + diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 6b0e9ca66..1994f7434 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -26,10 +26,10 @@ - - - + + + @@ -81,7 +81,7 @@