-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/multiple memory views (#716)
* UI: refactored the error dialogs into a single one Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * feature: editable memory view range Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * feature: additional memory views (WIP) Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * Debugger: catch IndexOutOfRangeException Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * UI: Pause the software mixer on emulator Pause Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * UI:Additonnal memory and disasm views feature Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * fix: UI did not respond while visiting emulator Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * fix: MemoryView crashes, new DISASM view button Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * Debugger: refactored into a tab Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * removed disasm duplicated view datatemplate Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: Removed reflection bindings for commands Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: Configuration is a sealed class Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: removed ViewLocator antipattern Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: ViewModelBaseWithErrrorDialog Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: removed ctors for Designer from VMs Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * fix: UI reads memory without trigerring read breakpoints Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * fix: Edit Memory button reacts to pause status Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: merged DI branches in Program.cs Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: inverted if to reduce indentation Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * doc: corrected grammar Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: memory read/write methods without trigerring breakpoints Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: removed some unused ViewModel code Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: removed SelectedTab ObservableProperty Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: Debugger is its own window again Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * Expanded XML documentation, polished DebugWindow Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * feature: close Memory/Disassembly views Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * doc: documented the fact that IReadOnlyBitRangeUnion endAdress is not included Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * MemoryView: better layout (DockPanel) Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * fix: Close DebugWindow on new program launch Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * UI: Debug Window icon Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> * refactor: removed unused usings. Co-authored-by: Joris van Eijden <joris.vaneijden@gmail.com> --------- Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com> Co-authored-by: Joris van Eijden <joris.vaneijden@gmail.com>
- Loading branch information
1 parent
fb6285d
commit 55d13fa
Showing
44 changed files
with
940 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
src/Spice86.Core/Emulator/InternalDebugger/IInternalDebugger.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
namespace Spice86.Core.Emulator.InternalDebugger; | ||
public interface IInternalDebugger | ||
{ | ||
|
||
/// <summary> | ||
/// Interface for the internal debuggers implemented by the UI ViewModels. | ||
/// </summary> | ||
public interface IInternalDebugger { | ||
/// <summary> | ||
/// Visit an emulator component that accepts the internal debugger. | ||
/// </summary> | ||
/// <param name="component">The emulator component that accepts the internal debugger</param> | ||
/// <typeparam name="T">A class that implements the <see cref="IDebuggableComponent"/> interface.</typeparam> | ||
void Visit<T>(T component) where T : IDebuggableComponent; | ||
|
||
/// <summary> | ||
/// Tells if the ViewModel for the internal debugger needs to visit the emulator. Either to get references to internal objects or refresh UI data. | ||
/// </summary> | ||
public bool NeedsToVisitEmulator { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Spice86.Infrastructure; | ||
|
||
using Spice86.ViewModels; | ||
|
||
/// <summary> | ||
/// Service used for showing the debug window. | ||
/// </summary> | ||
public interface IWindowService { | ||
/// <summary> | ||
/// Shows the debug window. | ||
/// </summary> | ||
/// <param name="viewModel">The <see cref="DebugWindowViewModel"/> used as DataContext in case the window needs to be created.</param> | ||
Task ShowDebugWindow(DebugWindowViewModel viewModel); | ||
|
||
/// <summary> | ||
/// Close the debug window. | ||
/// </summary> | ||
void CloseDebugWindow(); | ||
} |
Oops, something went wrong.