From 15d0a29bb2e3a6b6d57d6ca144b6554e67827641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A4ll=C3=A9n?= Date: Tue, 7 Jun 2022 23:40:24 +0200 Subject: [PATCH] Feature: show current selection in both panes of the CombinedCodeView (#1161) --- src/Drivers/reko.config | 1 + src/Gui/Forms/MainFormInteractor.cs | 3 + src/Gui/IServiceFactory.cs | 1 + src/Gui/SelectedAddressService.cs | 71 +++++++++++++++++++ src/Gui/Services/ISelectedAddressService.cs | 56 +++++++++++++++ src/UnitTests/Mocks/FakeCallingConvention.cs | 2 + .../Services/AvaloniaServiceFactory.cs | 5 ++ .../WindowsForms/CodeViewInteractor.cs | 2 +- .../CombinedCodeViewInteractor.cs | 34 ++++++++- .../Controls/MixedCodeDataControl.cs | 9 ++- .../MixedCodeDataModel.SpanGenerator.cs | 22 ++++-- .../Controls/MixedCodeDataModel.cs | 9 ++- .../WindowsForms/Controls/NestedTextModel.cs | 5 +- .../Controls/ProcedureCodeModel.cs | 13 +++- .../WindowsForms/Controls/TextView.cs | 1 + .../WindowsForms/Controls/TextViewLayout.cs | 6 +- .../WindowsForms/Controls/TextViewModel.cs | 4 +- .../WindowsForms/Controls/TextViewPainter.cs | 2 + .../WindowsForms/TextSpanFormatter.cs | 2 +- .../WindowsForms/WindowsServiceFactory.cs | 5 ++ src/WindowsItp/TreeViewDialog.cs | 2 +- 21 files changed, 232 insertions(+), 23 deletions(-) create mode 100644 src/Gui/SelectedAddressService.cs create mode 100644 src/Gui/Services/ISelectedAddressService.cs diff --git a/src/Drivers/reko.config b/src/Drivers/reko.config index be1687d678..2d33c2f1e8 100644 --- a/src/Drivers/reko.config +++ b/src/Drivers/reko.config @@ -787,5 +787,6 @@