From aa5cedcbba395aebe93901ce622f71e7dfaf37a9 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 26 Jun 2015 10:17:32 +0100 Subject: [PATCH] Added Theme Editor window and added to Tools menu --- Filtration.Interface/IDocument.cs | 7 ++++ .../Properties/AssemblyInfo.cs | 36 +++++++++++++++++++ Filtration.Tests/Filtration.Tests.csproj | 4 +++ .../Filtration.ThemeEditor.csproj | 30 ++++++++++++++++ .../ViewModels/ThemeEditorViewModel.cs | 14 ++++++++ .../Views/ThemeEditorView.xaml | 13 +++++++ .../Views/ThemeEditorView.xaml.cs | 10 ++++++ .../WindsorInstallers/ViewModelsInstaller.cs | 18 ++++++++++ Filtration.ThemeEditor/packages.config | 5 +++ Filtration.sln | 6 ++++ Filtration/App.xaml.cs | 2 +- .../Converters/ActiveDocumentConverter.cs | 2 +- Filtration/Filtration.csproj | 9 ++++- .../AvalonDockWorkspaceViewModel.cs | 12 ++++--- Filtration/ViewModels/IDocument.cs | 7 ---- .../ViewModels/ItemFilterScriptViewModel.cs | 1 + Filtration/ViewModels/MainWindowViewModel.cs | 21 ++++++++++- Filtration/ViewModels/StartPageViewModel.cs | 3 +- .../AvalonDock/AvalonDockWorkspaceView.xaml | 6 ++++ .../Views/AvalonDock/PanesStyleSelector.cs | 2 +- .../Views/AvalonDock/PanesTemplateSelector.cs | 7 ++++ Filtration/Views/MainWindow.xaml | 1 + 22 files changed, 199 insertions(+), 17 deletions(-) create mode 100644 Filtration.Interface/IDocument.cs create mode 100644 Filtration.Interface/Properties/AssemblyInfo.cs create mode 100644 Filtration.ThemeEditor/ViewModels/ThemeEditorViewModel.cs create mode 100644 Filtration.ThemeEditor/Views/ThemeEditorView.xaml create mode 100644 Filtration.ThemeEditor/Views/ThemeEditorView.xaml.cs create mode 100644 Filtration.ThemeEditor/WindsorInstallers/ViewModelsInstaller.cs create mode 100644 Filtration.ThemeEditor/packages.config delete mode 100644 Filtration/ViewModels/IDocument.cs diff --git a/Filtration.Interface/IDocument.cs b/Filtration.Interface/IDocument.cs new file mode 100644 index 0000000..381a51e --- /dev/null +++ b/Filtration.Interface/IDocument.cs @@ -0,0 +1,7 @@ +namespace Filtration.Interface +{ + public interface IDocument + { + bool IsScript { get; } + } +} diff --git a/Filtration.Interface/Properties/AssemblyInfo.cs b/Filtration.Interface/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dbc479e --- /dev/null +++ b/Filtration.Interface/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Filtration.Interface")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Filtration.Interface")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f21659a3-839a-41ca-97b9-78cc6f6af353")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Filtration.Tests/Filtration.Tests.csproj b/Filtration.Tests/Filtration.Tests.csproj index 98e6d3a..5c0cdd0 100644 --- a/Filtration.Tests/Filtration.Tests.csproj +++ b/Filtration.Tests/Filtration.Tests.csproj @@ -64,6 +64,10 @@ + + {0f333344-7695-47b2-b0e6-172e4de74819} + Filtration.Interface + {4aac3beb-1dc1-483e-9d11-0e9334e80227} Filtration.ObjectModel diff --git a/Filtration.ThemeEditor/Filtration.ThemeEditor.csproj b/Filtration.ThemeEditor/Filtration.ThemeEditor.csproj index 4f94100..a50aa7e 100644 --- a/Filtration.ThemeEditor/Filtration.ThemeEditor.csproj +++ b/Filtration.ThemeEditor/Filtration.ThemeEditor.csproj @@ -30,24 +30,54 @@ 4 + + ..\packages\Castle.Core.3.3.0\lib\net45\Castle.Core.dll + + + ..\packages\Castle.Windsor.3.3.0\lib\net45\Castle.Windsor.dll + + + + + + + + + ThemeEditorView.xaml + + + + {0f333344-7695-47b2-b0e6-172e4de74819} + Filtration.Interface + {4aac3beb-1dc1-483e-9d11-0e9334e80227} Filtration.ObjectModel + + + + Designer + MSBuild:Compile + + + + +