From b4d1f7d6c3ea2873d3a073150bc22b25ac17e495 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 28 Feb 2021 02:28:53 -0800 Subject: [PATCH] LogWindow -> LogOutput --- CHANGELIST.md | 1 + MPF/Constants.cs | 2 - .../LogOutput.xaml} | 21 +- .../LogOutput.xaml.cs} | 54 +---- MPF/ViewModels.cs | 32 --- MPF/Windows/DiscInformationWindow.xaml.cs | 9 - MPF/Windows/MainWindow.xaml | 222 +++++++++--------- MPF/Windows/MainWindow.xaml.cs | 152 +++--------- MPF/Windows/OptionsWindow.xaml.cs | 2 - 9 files changed, 163 insertions(+), 332 deletions(-) rename MPF/{Windows/LogWindow.xaml => UserControls/LogOutput.xaml} (81%) rename MPF/{Windows/LogWindow.xaml.cs => UserControls/LogOutput.xaml.cs} (89%) diff --git a/CHANGELIST.md b/CHANGELIST.md index 110e38f4..a3c0207b 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -26,6 +26,7 @@ - Add internal support for 3- and 4-layer discs - Revamp disc information window - Add PIC layerbreak extraction +- Overhaul main window and logging panel ### 1.18 (2020-11-10) - Add more information extraction and generation for Aaru diff --git a/MPF/Constants.cs b/MPF/Constants.cs index afc5fce5..52a00569 100644 --- a/MPF/Constants.cs +++ b/MPF/Constants.cs @@ -10,8 +10,6 @@ namespace MPF /// public static class Constants { - public const int LogWindowMarginFromMainWindow = 10; - // Private lists of known drive speed ranges private static IReadOnlyList cd { get; } = new List { 1, 2, 3, 4, 6, 8, 12, 16, 20, 24, 32, 40, 44, 48, 52, 56, 72 }; private static IReadOnlyList dvd { get; } = cd.Where(s => s <= 24).ToList(); diff --git a/MPF/Windows/LogWindow.xaml b/MPF/UserControls/LogOutput.xaml similarity index 81% rename from MPF/Windows/LogWindow.xaml rename to MPF/UserControls/LogOutput.xaml index d718e4a6..1a7a2263 100644 --- a/MPF/Windows/LogWindow.xaml +++ b/MPF/UserControls/LogOutput.xaml @@ -1,10 +1,11 @@ - + @@ -45,12 +46,8 @@ IsChecked="{Binding Path=OpenLogWindowAtStartup}" />