<Compile Include="UserSettingConstants.cs" />\r
<Compile Include="ViewModels\AboutViewModel.cs" />\r
<Compile Include="ViewModels\AddPresetViewModel.cs" />\r
+ <Compile Include="ViewModels\Interfaces\ILogViewModel.cs" />\r
<Compile Include="ViewModels\Interfaces\IAboutViewModel.cs" />\r
<Compile Include="ViewModels\Interfaces\IMainViewModel.cs" />\r
<Compile Include="ViewModels\Interfaces\IOptionsViewModel.cs" />\r
--- /dev/null
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="ILogViewModel.cs" company="HandBrake Project (http://handbrake.fr)">\r
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+// The Log View Model Interface\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
+\r
+namespace HandBrakeWPF.ViewModels.Interfaces\r
+{\r
+ /// <summary>\r
+ /// The Log View Model Interface\r
+ /// </summary>\r
+ public interface ILogViewModel\r
+ {\r
+ }\r
+}
\ No newline at end of file
{\r
using Caliburn.Micro;\r
\r
+ using HandBrakeWPF.ViewModels.Interfaces;\r
+\r
/// <summary>\r
/// The Log View Model\r
/// </summary>\r
- public class LogViewModel : ViewModelBase\r
+ public class LogViewModel : ViewModelBase, ILogViewModel\r
{\r
/// <summary>\r
/// Initializes a new instance of the <see cref="LogViewModel"/> class.\r
this.WindowManager.ShowWindow(new OptionsViewModel(this.WindowManager, this.userSettingService));\r
}\r
\r
+ /// <summary>\r
+ /// Open the Log Window\r
+ /// </summary>\r
+ public void OpenLogWindow()\r
+ {\r
+ this.WindowManager.ShowWindow(new LogViewModel(this.WindowManager));\r
+ }\r
+\r
+\r
/// <summary>\r
/// Open the Queue Window.\r
/// </summary>\r
<Window x:Class="HandBrakeWPF.Views.LogView"\r
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"\r
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"\r
- Title="LogView" Height="300" Width="300">\r
+ Title="LogView" Height="600" Width="420">\r
<Grid>\r
- \r
+ <Grid>\r
+ <Grid.RowDefinitions>\r
+ <RowDefinition Height="Auto" />\r
+ <RowDefinition Height="*" />\r
+ </Grid.RowDefinitions>\r
+ <ToolBar Grid.Row="0">\r
+ <Button>\r
+ <StackPanel Orientation="Horizontal">\r
+ <Image Source="Images/copy.png" Width="16"/>\r
+ <TextBlock Text="Copy" Margin="2,0,0,0" />\r
+ </StackPanel>\r
+ </Button>\r
+ <Button Margin="5,0,0,0" >\r
+ <StackPanel Orientation="Horizontal">\r
+ <Image Source="Images/folder.png" Width="16"/>\r
+ <TextBlock Text="Open Log Directory" Margin="2,0,0,0" />\r
+ </StackPanel>\r
+ </Button>\r
+ \r
+ <ComboBox Width="75" HorizontalAlignment="Right">\r
+ </ComboBox>\r
+ </ToolBar>\r
+\r
+ <RichTextBox Grid.Row="1" />\r
+ </Grid>\r
+\r
</Grid>\r
</Window>\r
</MenuItem>\r
\r
<MenuItem Header="Tools">\r
- <MenuItem Header="Options" Micro:Message.Attach="[Event Click] = [Action OpenOptionsWindow]" />\r
- \r
<MenuItem Header="Show Queue" Micro:Message.Attach="[Event Click] = [Action ExitApplication]" />\r
- <MenuItem Header="Activity Window" Micro:Message.Attach="[Event Click] = [Action ExitApplication]" />\r
+ <MenuItem Header="Activity Window" Micro:Message.Attach="[Event Click] = [Action OpenLogWindow]" />\r
+ <Separator />\r
+ <MenuItem Header="Options" Micro:Message.Attach="[Event Click] = [Action OpenOptionsWindow]" />\r
</MenuItem>\r
\r
<MenuItem Header="Help">\r
<Label Content="Preview" Margin="8,0,0,0" VerticalAlignment="Center" />\r
</StackPanel>\r
</Button>\r
- <Button Name="ActivityWindow">\r
+ <Button Name="ActivityWindow" Micro:Message.Attach="[Event Click] = [Action OpenLogWindow]"> \r
<StackPanel Orientation="Horizontal">\r
<Image Source="Images/ActivityWindow.png" Height="32" Width="32" />\r
<Label Content="Activity Window" Margin="8,0,0,0" VerticalAlignment="Center" />\r