From 479d9bb4b2f683aa86c40d4ab8649d317d95c95f Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Fri, 19 Jun 2020 15:41:02 +0200 Subject: [PATCH] Device debugger - Added placeholder --- .../Ninject/Factories/IVMFactory.cs | 6 ++ src/Artemis.UI/Screens/RootView.xaml | 5 +- .../Screens/Settings/Debug/DebugView.xaml | 70 +++++++++++-------- .../Settings/Debug/DeviceDebugView.xaml | 47 +++++++++++++ .../Settings/Debug/DeviceDebugViewModel.cs | 15 ++++ .../Tabs/Devices/DeviceSettingsViewModel.cs | 11 ++- 6 files changed, 120 insertions(+), 34 deletions(-) create mode 100644 src/Artemis.UI/Screens/Settings/Debug/DeviceDebugView.xaml create mode 100644 src/Artemis.UI/Screens/Settings/Debug/DeviceDebugViewModel.cs diff --git a/src/Artemis.UI/Ninject/Factories/IVMFactory.cs b/src/Artemis.UI/Ninject/Factories/IVMFactory.cs index 911a49d05..d8d368d7f 100644 --- a/src/Artemis.UI/Ninject/Factories/IVMFactory.cs +++ b/src/Artemis.UI/Ninject/Factories/IVMFactory.cs @@ -11,6 +11,7 @@ using Artemis.UI.Screens.Module.ProfileEditor.LayerProperties.Timeline; using Artemis.UI.Screens.Module.ProfileEditor.LayerProperties.Tree; using Artemis.UI.Screens.Module.ProfileEditor.ProfileTree.TreeItem; using Artemis.UI.Screens.Module.ProfileEditor.Visualization; +using Artemis.UI.Screens.Settings.Debug; using Artemis.UI.Screens.Settings.Tabs.Devices; using Stylet; @@ -30,6 +31,11 @@ namespace Artemis.UI.Ninject.Factories DeviceSettingsViewModel Create(ArtemisDevice device); } + public interface IDeviceDebugVmFactory : IVmFactory + { + DeviceDebugViewModel Create(ArtemisDevice device); + } + public interface IProfileEditorVmFactory : IVmFactory { ProfileEditorViewModel Create(ProfileModule module); diff --git a/src/Artemis.UI/Screens/RootView.xaml b/src/Artemis.UI/Screens/RootView.xaml index 505f2318e..7479bb388 100644 --- a/src/Artemis.UI/Screens/RootView.xaml +++ b/src/Artemis.UI/Screens/RootView.xaml @@ -7,7 +7,6 @@ xmlns:s="https://github.com/canton7/Stylet" xmlns:screens="clr-namespace:Artemis.UI.Screens" xmlns:mde="clr-namespace:MaterialDesignExtensions.Controls;assembly=MaterialDesignExtensions" - xmlns:tb="http://www.hardcodet.net/taskbar" mc:Ignorable="d" FadeContentIfInactive="False" Icon="/Resources/Images/Logo/logo-512.png" @@ -21,9 +20,7 @@ Activated="{s:Action WindowActivated}" KeyDown="{s:Action WindowKeyDown}" KeyUp="{s:Action WindowKeyUp}" - d:DesignHeight="640" - d:DesignWidth="1200" - d:DataContext="{d:DesignInstance screens:RootViewModel}"> + d:DesignHeight="640" d:DesignWidth="1200" d:DataContext="{d:DesignInstance screens:RootViewModel}">